initial commit: moved out of nix repository

This commit is contained in:
Khaïs COLIN 2024-08-26 14:07:29 +02:00
commit baad734eb4
2 changed files with 58 additions and 0 deletions

26
flake.lock generated Normal file
View file

@ -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
}

32
flake.nix Normal file
View file

@ -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/share/icons
cp -r BreezeX-Black $out/share/icons
cp -r BreezeX-Dark $out/share/icons
cp -r BreezeX-Light $out/share/icons
'';
};
};
}