From 89f26a475de0910219d45240cbe4d2474d4dae73 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Mon, 1 Jul 2019 00:34:46 -0400 Subject: accountsservice: cleanup style --- .../libraries/accountsservice/default.nix | 47 +++++++++++++++++----- 1 file changed, 38 insertions(+), 9 deletions(-) (limited to 'pkgs/development/libraries/accountsservice/default.nix') diff --git a/pkgs/development/libraries/accountsservice/default.nix b/pkgs/development/libraries/accountsservice/default.nix index c20167138b72..01f11ad3b2b0 100644 --- a/pkgs/development/libraries/accountsservice/default.nix +++ b/pkgs/development/libraries/accountsservice/default.nix @@ -1,22 +1,51 @@ -{ stdenv, fetchurl, pkgconfig, glib, intltool, makeWrapper, shadow -, gobject-introspection, polkit, systemd, coreutils, meson, dbus -, ninja, python3 }: +{ stdenv +, fetchurl +, pkgconfig +, glib +, intltool +, makeWrapper +, shadow +, gobject-introspection +, polkit +, systemd +, coreutils +, meson +, dbus +, ninja +, python3 +}: stdenv.mkDerivation rec { - name = "accountsservice-${version}"; + pname = "accountsservice"; version = "0.6.55"; src = fetchurl { - url = "https://www.freedesktop.org/software/accountsservice/accountsservice-${version}.tar.xz"; + url = "https://www.freedesktop.org/software/${pname}/${pname}-${version}.tar.xz"; sha256 = "16wwd633jak9ajyr1f1h047rmd09fhf3kzjz6g5xjsz0lwcj8azz"; }; - nativeBuildInputs = [ pkgconfig makeWrapper meson ninja python3 ]; + nativeBuildInputs = [ + makeWrapper + meson + ninja + pkgconfig + python3 + ]; + + buildInputs = [ + dbus + glib + gobject-introspection + intltool + polkit + systemd + ]; - buildInputs = [ glib intltool gobject-introspection polkit systemd dbus ]; + mesonFlags = [ + "-Dsystemdsystemunitdir=etc/systemd/system" + "-Dlocalstatedir=/var" + ]; - mesonFlags = [ "-Dsystemdsystemunitdir=etc/systemd/system" - "-Dlocalstatedir=/var" ]; prePatch = '' chmod +x meson_post_install.py patchShebangs meson_post_install.py -- cgit 1.4.1