touhou-cursors: init
All checks were successful
Build packages / Build derivations (push) Successful in 3m14s
All checks were successful
Build packages / Build derivations (push) Successful in 3m14s
This commit is contained in:
parent
63a165b801
commit
4761b6fd19
2 changed files with 37 additions and 0 deletions
|
@ -7,5 +7,6 @@ final: prev: {
|
|||
project-sekai-cursors = prev.callPackage ./project-sekai-cursors/package.nix { };
|
||||
shlink = prev.callPackage ./shlink/package.nix { };
|
||||
sql-developer = prev.callPackage ./sql-developer.nix { };
|
||||
touhou-cursors = prev.callPackage ./touhou-cursors.nix { };
|
||||
vineflower = prev.callPackage ./vineflower.nix { };
|
||||
}
|
||||
|
|
36
pkgs/touhou-cursors.nix
Normal file
36
pkgs/touhou-cursors.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
character ? "",
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "touhou-cursors-${character}";
|
||||
version = "0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mabequinho";
|
||||
repo = "touhou-cursors";
|
||||
rev = "92a5513c5d247fb1813e27ac2986e85def510204";
|
||||
hash = "sha256-XYmEpRkvZK7O9F7s3nKFA9rd7xO0ECEWlVyUb8/whq4=";
|
||||
};
|
||||
|
||||
installPhase =
|
||||
if character == "" then
|
||||
''
|
||||
rm README.md
|
||||
echo "No character provided, please override the package with one of the available characters (eg. 'touhou-cursors.override { character = \"Patchouli\";}')"
|
||||
echo *
|
||||
exit 1
|
||||
''
|
||||
else
|
||||
''
|
||||
mkdir -p $out/share/icons
|
||||
cp -r ${character} $out/share/icons
|
||||
'';
|
||||
|
||||
meta = {
|
||||
platforms = lib.platforms.all;
|
||||
hydraPlatforms = [ ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue