-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
poggers --------- Co-authored-by: isabelroses <[email protected]> Co-authored-by: nullishamy <[email protected]>
- Loading branch information
1 parent
7f535ba
commit 5fbec96
Showing
7 changed files
with
121 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist/ | ||
pngs/ | ||
releases/ | ||
result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ lib | ||
, stdenvNoCC | ||
, inkscape | ||
, just | ||
, xcursorgen | ||
, hyprcursor | ||
, zip | ||
}: | ||
|
||
stdenvNoCC.mkDerivation { | ||
name = "catppuccin-cursors"; | ||
src = lib.fileset.toSource { | ||
root = ./.; | ||
fileset = lib.fileset.intersection | ||
(lib.fileset.fromSource (lib.sources.cleanSource ./.)) | ||
(lib.fileset.unions [ ./src ./justfile ./build ./create_zips ./AUTHORS ./LICENSE ]); | ||
}; | ||
nativeBuildInputs = [ | ||
just | ||
xcursorgen | ||
inkscape | ||
hyprcursor | ||
zip | ||
]; | ||
buildPhase = '' | ||
runHook preBuild | ||
patchShebangs . | ||
just all | ||
just zip | ||
runHook postBuild | ||
''; | ||
installPhase = '' | ||
# $out is an automatically generated filepath by nix, | ||
# but it's up to you to make it what you need. We'll create a directory at | ||
# that filepath, then copy our sources into it. | ||
mkdir $out | ||
cp -rv ./releases/* $out | ||
''; | ||
meta = { | ||
description = "Catppuccin cursor theme based on Volantes"; | ||
homepage = "https://github.com/catppuccin/cursors"; | ||
license = lib.licenses.gpl2; | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||
|
||
outputs = | ||
{ nixpkgs, ... }: | ||
let | ||
systems = ["aarch64-linux" "x86_64-linux"]; | ||
forAllSystems = | ||
function: | ||
nixpkgs.lib.genAttrs systems ( | ||
system: function nixpkgs.legacyPackages.${system} | ||
); | ||
in | ||
{ | ||
devShells = forAllSystems (pkgs: { | ||
default = pkgs.callPackage ./shell.nix { }; | ||
}); | ||
|
||
packages = forAllSystems (pkgs: rec { | ||
default = catppuccin-cursors; | ||
catppuccin-cursors= pkgs.callPackage ./default.nix { }; | ||
}); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
|
||
pkgs.mkShell { | ||
name = "dev-shell"; | ||
buildInputs = with pkgs; [ | ||
just | ||
hyprcursor | ||
inkscape | ||
xorg.xcursorgen | ||
zip | ||
]; | ||
} | ||
|