nixos-config/pkgs/dracula-icon-theme/default.nix

33 lines
763 B
Nix
Raw Normal View History

2023-05-03 16:22:42 +02:00
{ lib, stdenv, fetchFromGitHub }:
2023-01-26 10:38:58 +01:00
let
themeName = "Dracula";
2023-05-02 00:04:26 +02:00
version = "2021-07-21";
2023-01-26 10:38:58 +01:00
in
stdenv.mkDerivation {
pname = "dracula-icon-theme";
inherit version;
src = fetchFromGitHub {
owner = "m4thewz";
repo = "dracula-icons";
2023-05-02 00:04:26 +02:00
rev = "2d3c83caa8664e93d956cfa67a0f21418b5cdad8";
2023-01-26 10:38:58 +01:00
sha256 = "GY+XxTM22jyNq8kaB81zNfHRhfXujArFcyzDa8kjxCQ=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons/${themeName}
cp -a * $out/share/icons/${themeName}/
runHook postInstall
'';
meta = with lib; {
description = "Dracula Icon theme";
homepage = "https://github.com/m4thewz/dracula-icons";
platforms = platforms.all;
2023-05-02 00:04:26 +02:00
license = licenses.gpl3;
2023-01-26 10:38:58 +01:00
maintainers = with maintainers; [ therealr5 ];
};
}