diff --git a/home-manager/breezex-curosr/flake.lock b/home-manager/breezex-curosr/flake.lock new file mode 100644 index 0000000..e02929b --- /dev/null +++ b/home-manager/breezex-curosr/flake.lock @@ -0,0 +1,26 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1722087241, + "narHash": "sha256-2ShmEaFi0kJVOEEu5gmlykN5dwjWYWYUJmlRTvZQRpU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "8c50662509100d53229d4be607f1a3a31157fa12", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-24.05", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/home-manager/breezex-curosr/flake.nix b/home-manager/breezex-curosr/flake.nix new file mode 100644 index 0000000..275edf5 --- /dev/null +++ b/home-manager/breezex-curosr/flake.nix @@ -0,0 +1,32 @@ +{ + description = "Extended KDE cursor, Highly inspired on KDE Breeze for Windows and Linux with HiDPi Support."; + inputs = { + nixpkgs.url = "nixpkgs/nixos-24.05"; + }; + outputs = { nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + in + { + packages.${system}.default = pkgs.stdenv.mkDerivation { + pname = "breezex-curosr"; + version = "2.0.1"; + + src = pkgs.fetchurl { + url = "https://github.com/ful1e5/BreezeX_Cursor/releases/download/v2.0.1/BreezeX.tar.xz"; + hash = "sha256:1I6WQT/GH/AE2wDN1NdZ6XivRNhCsrWP/pG6UIZT7R8="; + }; + + # fix 'unpacker produced multiple directories' + sourceRoot = "."; + + buildPhase = '' + mkdir -p $out/usr/share/icons + cp -r BreezeX-Black $out/usr/share/icons + cp -r BreezeX-Dark $out/usr/share/icons + cp -r BreezeX-Light $out/usr/share/icons + ''; + }; + }; +}