1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:47:06 +00:00
nixpkgs/pkgs/data/icons/paper-icon-theme/default.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, meson, ninja, gtk3, gnome, gnome-icon-theme, hicolor-icon-theme, jdupes }:
2016-05-22 14:41:15 +01:00
stdenv.mkDerivation rec {
2018-02-24 11:42:09 +00:00
pname = "paper-icon-theme";
version = "unstable-2020-03-12";
2016-05-22 14:41:15 +01:00
src = fetchFromGitHub {
owner = "snwh";
2018-02-24 11:42:09 +00:00
repo = pname;
rev = "aa3e8af7a1f0831a51fd7e638a4acb077a1e5188";
sha256 = "0x6qzch4rrc8firb1dcf926j93gpqxvd7h6dj5wwczxbvxi5bd77";
2016-05-22 14:41:15 +01:00
};
nativeBuildInputs = [
meson
ninja
gtk3
jdupes
];
2018-02-24 11:42:09 +00:00
propagatedBuildInputs = [
gnome.adwaita-icon-theme
gnome-icon-theme
hicolor-icon-theme
];
dontDropIconThemeCache = true;
# These fixup steps are slow and unnecessary for this package
dontPatchELF = true;
dontRewriteSymlinks = true;
postInstall = ''
# The cache for Paper-Mono-Dark is missing
gtk-update-icon-cache "$out"/share/icons/Paper-Mono-Dark;
# replace duplicate files with symlinks
jdupes -l -r $out/share/icons
'';
meta = with lib; {
2016-05-22 14:41:15 +01:00
description = "Modern icon theme designed around bold colours and simple geometric shapes";
homepage = "https://snwh.org/paper";
2016-05-22 14:41:15 +01:00
license = with licenses; [ cc-by-sa-40 lgpl3 ];
# darwin cannot deal with file names differing only in case
platforms = platforms.linux;
2016-05-22 14:41:15 +01:00
maintainers = with maintainers; [ romildo ];
};
}