updated flake
This commit is contained in:
76
flake.nix
76
flake.nix
@@ -1,49 +1,43 @@
|
|||||||
{
|
{
|
||||||
|
description = "Easymotion, for hyprland";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
nix-filter.url = "github:numtide/nix-filter";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
};
|
};
|
||||||
outputs = { self, hyprland, nix-filter, ... }:
|
|
||||||
let
|
|
||||||
inherit (hyprland.inputs) nixpkgs;
|
|
||||||
forHyprlandSystems = fn: nixpkgs.lib.genAttrs (builtins.attrNames hyprland.packages) (system: fn system nixpkgs.legacyPackages.${system});
|
|
||||||
in
|
|
||||||
{
|
|
||||||
packages = forHyprlandSystems
|
|
||||||
(system: pkgs: rec {
|
|
||||||
hyprfocus = pkgs.gcc13Stdenv.mkDerivation {
|
|
||||||
pname = "hyprland-easymotion";
|
|
||||||
version = "0.1";
|
|
||||||
src = nix-filter.lib {
|
|
||||||
root = ./.;
|
|
||||||
include = [
|
|
||||||
"src"
|
|
||||||
./Makefile
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
...
|
||||||
|
} @ inputs: let
|
||||||
|
forAllSystems = function:
|
||||||
|
nixpkgs.lib.genAttrs [
|
||||||
|
"x86_64-linux"
|
||||||
|
] (system: function nixpkgs.legacyPackages.${system});
|
||||||
|
in {
|
||||||
|
packages = forAllSystems (pkgs: {
|
||||||
|
default = self.packages.${pkgs.system}.hyprland-easymotion;
|
||||||
|
hyprland-easymotion = pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
|
name = "hyprland-easymotion";
|
||||||
|
pname = name;
|
||||||
|
src = ./.;
|
||||||
|
nativeBuildInputs = inputs.hyprland.packages.${pkgs.system}.hyprland.nativeBuildInputs ++ [inputs.hyprland.packages.${pkgs.system}.hyprland pkgs.gcc13];
|
||||||
|
buildInputs = inputs.hyprland.packages.${pkgs.system}.hyprland.buildInputs;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [ pkg-config ];
|
dontUseCmakeConfigure = true;
|
||||||
|
dontUseMesonConfigure = true;
|
||||||
|
dontUseNinjaBuild = true;
|
||||||
|
dontUseNinjaInstall = true;
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
installPhase = ''
|
||||||
hyprland.packages.${system}.hyprland.dev
|
runHook preInstall
|
||||||
]
|
|
||||||
++ hyprland.packages.${system}.hyprland.buildInputs;
|
|
||||||
|
|
||||||
installPhase = ''
|
mkdir -p "$out/lib"
|
||||||
mkdir -p $out/lib
|
cp -r out/* "$out/lib/lib${name}.so"
|
||||||
install ./hyprland-easymotion.so $out/lib/libhyprland-easymotion.so
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
}
|
||||||
meta = with pkgs.lib; {
|
});
|
||||||
homepage = "https://github.com/zakk4223/hyprland-easymotion";
|
};
|
||||||
description = "Easymotion, for hyprland";
|
|
||||||
license = licenses.bsd3;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user