summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries/accountsservice/default.nix
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-07-01 00:34:46 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-07-01 00:34:46 -0400
commit89f26a475de0910219d45240cbe4d2474d4dae73 (patch)
tree2287ba505935d67fa7a1e7a8bdbd05bd927f26dc /pkgs/development/libraries/accountsservice/default.nix
parent76a50f0f85062390e35c88aee352defe1a226aee (diff)
accountsservice: cleanup style
Diffstat (limited to 'pkgs/development/libraries/accountsservice/default.nix')
-rw-r--r--pkgs/development/libraries/accountsservice/default.nix47
1 files changed, 38 insertions, 9 deletions
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