Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 nix-update-script, 6 meson, 7 ninja, 8 nixos-artwork, 9 glib, 10 pkg-config, 11 dbus, 12 polkit, 13 accountsservice, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "elementary-default-settings"; 18 version = "8.1.0"; 19 20 src = fetchFromGitHub { 21 owner = "elementary"; 22 repo = "default-settings"; 23 rev = version; 24 sha256 = "sha256-GUq7kXaidzvqbyeVh4ihcxRqZXOzZO3WMXEe8lf477I="; 25 }; 26 27 nativeBuildInputs = [ 28 glib # glib-compile-schemas 29 meson 30 ninja 31 pkg-config 32 ]; 33 34 buildInputs = [ 35 accountsservice 36 dbus 37 polkit 38 ]; 39 40 mesonFlags = [ 41 "--sysconfdir=${placeholder "out"}/etc" 42 "-Ddefault-wallpaper=${nixos-artwork.wallpapers.simple-dark-gray.gnomeFilePath}" 43 # Do not ship elementary OS specific config files. 44 "-Dapparmor-profiles=false" 45 "-Dgeoclue=false" 46 ]; 47 48 postFixup = '' 49 # https://github.com/elementary/default-settings/issues/55 50 rm -r $out/share/cups 51 rm -r $out/share/applications 52 ''; 53 54 passthru = { 55 updateScript = nix-update-script { }; 56 }; 57 58 meta = with lib; { 59 description = "Default settings and configuration files for elementary"; 60 homepage = "https://github.com/elementary/default-settings"; 61 license = licenses.gpl2Plus; 62 platforms = platforms.linux; 63 teams = [ teams.pantheon ]; 64 }; 65}