mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +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.
40 lines
922 B
Nix
40 lines
922 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub, jdupes }:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "dracula-icon-theme";
|
|
version = "0-unstable-2024-05-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "m4thewz";
|
|
repo = "dracula-icons";
|
|
rev = "6232e5217429a3ae6396c9e054f5338cecdbb7a5";
|
|
hash = "sha256-u2cIUTLWYs8VIqg6ZAUyz0nmzuFAZC4oh7bE67+B1Vg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
jdupes
|
|
];
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
dontPatchELF = true;
|
|
dontRewriteSymlinks = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/share/icons/Dracula
|
|
cp -a * $out/share/icons/Dracula/
|
|
jdupes --quiet --link-soft --recurse $out/share
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Dracula Icon theme";
|
|
homepage = "https://github.com/m4thewz/dracula-icons";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ therealr5 ];
|
|
};
|
|
}
|