Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 59 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 nix-update-script, 6 meson, 7 python3, 8 ninja, 9 pkg-config, 10 vala, 11 glib, 12 libgee, 13 dbus, 14 glib-networking, 15 wrapGAppsHook3, 16}: 17 18stdenv.mkDerivation rec { 19 pname = "contractor"; 20 version = "0.3.5"; 21 22 src = fetchFromGitHub { 23 owner = "elementary"; 24 repo = pname; 25 rev = version; 26 sha256 = "1sqww7zlzl086pjww3d21ah1g78lfrc9aagrqhmsnnbji9gwb8ab"; 27 }; 28 29 nativeBuildInputs = [ 30 dbus 31 meson 32 ninja 33 pkg-config 34 python3 35 vala 36 wrapGAppsHook3 37 ]; 38 39 buildInputs = [ 40 glib 41 glib-networking 42 libgee 43 ]; 44 45 PKG_CONFIG_DBUS_1_SESSION_BUS_SERVICES_DIR = "${placeholder "out"}/share/dbus-1/services"; 46 47 passthru = { 48 updateScript = nix-update-script { }; 49 }; 50 51 meta = with lib; { 52 description = "Desktop-wide extension service used by elementary OS"; 53 homepage = "https://github.com/elementary/contractor"; 54 license = licenses.gpl3Plus; 55 platforms = platforms.linux; 56 teams = [ teams.pantheon ]; 57 mainProgram = "contractor"; 58 }; 59}