mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
fix: clean up flake.nix, move package.nix to flake.nix (#30)
Cleans up the flake.nix and moves the pakckage.nix into flake.nix due to it being so small
This commit is contained in:
parent
6f415894d6
commit
962224a669
2 changed files with 31 additions and 37 deletions
37
flake.nix
37
flake.nix
|
@ -12,14 +12,37 @@
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
systems = ["x86_64-linux"];
|
systems = ["x86_64-linux"];
|
||||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
eachSystem = nixpkgs.lib.genAttrs systems;
|
||||||
packagesForEach = nixpkgs.legacyPackages;
|
pkgsFor = nixpkgs.legacyPackages;
|
||||||
in {
|
in {
|
||||||
packages = forAllSystems (system: rec {
|
packages = eachSystem (system: {
|
||||||
default = hypr-dynamic-cursors;
|
default = self.packages.${system}.hypr-dynamic-cursors;
|
||||||
hypr-dynamic-cursors = packagesForEach.${system}.callPackage ./nix/package.nix {
|
hypr-dynamic-cursors = let
|
||||||
inherit inputs;
|
inherit (inputs.hyprland.packages.${system}) hyprland;
|
||||||
pkgs = packagesForEach.${system};
|
inherit (pkgsFor.${system}) stdenvNoCC gcc13;
|
||||||
|
|
||||||
|
name = "hypr-dynamic-cursors";
|
||||||
|
in
|
||||||
|
stdenvNoCC.mkDerivation {
|
||||||
|
inherit name;
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
|
inherit (hyprland) buildInputs;
|
||||||
|
nativeBuildInputs = hyprland.nativeBuildInputs ++ [hyprland gcc13];
|
||||||
|
|
||||||
|
dontUseCmakeConfigure = true;
|
||||||
|
dontUseMesonConfigure = true;
|
||||||
|
dontUseNinjaBuild = true;
|
||||||
|
dontUseNinjaInstall = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p "$out/lib"
|
||||||
|
cp -r out/* "$out/lib/lib${name}.so"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
}: let
|
|
||||||
inherit (inputs.hyprland.packages.${pkgs.system}) hyprland;
|
|
||||||
inherit (hyprland) buildInputs nativeBuildInputs;
|
|
||||||
inherit (pkgs) stdenvNoCC gcc13;
|
|
||||||
|
|
||||||
name = "hypr-dynamic-cursors";
|
|
||||||
in
|
|
||||||
stdenvNoCC.mkDerivation {
|
|
||||||
inherit name buildInputs;
|
|
||||||
src = ./..;
|
|
||||||
nativeBuildInputs = nativeBuildInputs ++ [hyprland gcc13];
|
|
||||||
|
|
||||||
dontUseCmakeConfigure = true;
|
|
||||||
dontUseMesonConfigure = true;
|
|
||||||
dontUseNinjaBuild = true;
|
|
||||||
dontUseNinjaInstall = true;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir -p "$out/lib"
|
|
||||||
cp -r out/* "$out/lib/lib${name}.so"
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue