mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
55 lines
1.3 KiB
Nix
55 lines
1.3 KiB
Nix
{ stdenvNoCC
|
|
, fetchFromGitHub
|
|
, lib
|
|
, gtk3
|
|
, jdupes
|
|
, nordzy-themes ? [ "all" ] # Override this to only install selected themes
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "nordzy-icon-theme";
|
|
version = "1.8.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alvatip";
|
|
repo = "Nordzy-icon";
|
|
rev = version;
|
|
sha256 = "sha256-r/WYGcHRAFX7TennestobjcJhwu3GE8aQXxnaeokQM0=";
|
|
};
|
|
|
|
# In the post patch phase we should first make sure to patch shebangs.
|
|
postPatch = ''
|
|
patchShebangs install.sh
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
gtk3
|
|
jdupes
|
|
];
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
name= ./install.sh --dest $out/share/icons \
|
|
${lib.optionalString (nordzy-themes != []) (lib.strings.concatMapStrings (theme: "-t ${theme} ") nordzy-themes)}
|
|
|
|
# Replace duplicate files with hardlinks to the first file in each
|
|
# set of duplicates, reducing the installed size in about 87%
|
|
jdupes -L -r $out/share
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
dontFixup = true;
|
|
|
|
meta = with lib; {
|
|
description = "Icon theme using the Nord color palette, based on WhiteSur and Numix icon themes";
|
|
homepage = "https://github.com/alvatip/Nordzy-icon";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ alexnortung ];
|
|
};
|
|
}
|