updated flake
This commit is contained in:
95
flake.nix
95
flake.nix
@@ -1,71 +1,50 @@
|
|||||||
# based off of split-monitor-workspaces flake.nix
|
|
||||||
# https://github.com/Duckonaut/split-monitor-workspaces/blob/main/flake.nix
|
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
nix-filter.url = "github:numtide/nix-filter";
|
nix-filter.url = "github:numtide/nix-filter";
|
||||||
};
|
};
|
||||||
|
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,
|
|
||||||
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 {
|
|
||||||
hyprland-easymotion = pkgs.gcc13Stdenv.mkDerivation {
|
|
||||||
pname = "hyprland-easymotion";
|
|
||||||
version = "1.0.0";
|
|
||||||
buildPhase = ''
|
|
||||||
export HOME=$(pwd)
|
|
||||||
'';
|
|
||||||
src = nix-filter.lib {
|
|
||||||
root = ./.;
|
|
||||||
include = [
|
|
||||||
"src"
|
|
||||||
"include"
|
|
||||||
./Makefile
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# allow overriding xwayland support
|
nativeBuildInputs = with pkgs; [ pkg-config ];
|
||||||
BUILT_WITH_NOXWAYLAND = false;
|
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [pkg-config];
|
buildInputs = with pkgs; [
|
||||||
|
hyprland.packages.${system}.hyprland.dev
|
||||||
|
]
|
||||||
|
++ hyprland.packages.${system}.hyprland.buildInputs;
|
||||||
|
|
||||||
buildInputs = with pkgs;
|
installPhase = ''
|
||||||
[
|
mkdir -p $out/lib
|
||||||
hyprland.packages.${system}.hyprland.dev
|
install ./hyprland-easymotion.so $out/lib/libhyprland-easymotion.so
|
||||||
pango
|
'';
|
||||||
cairo
|
|
||||||
]
|
|
||||||
++ hyprland.packages.${system}.hyprland.buildInputs;
|
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
homepage = "https://github.com/zakk4223/hyprland-easymotion";
|
homepage = "https://github.com/zakk4223/hyprland-easymotion";
|
||||||
description = "Easymotion, for hyprland";
|
description = "Easymotion, for hyprland";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
default = hyprland-easymotion;
|
|
||||||
});
|
|
||||||
|
|
||||||
devShells = forHyprlandSystems (system: pkgs: {
|
};
|
||||||
default = pkgs.mkShell {
|
default = hyprland-easymotion;
|
||||||
name = "hyprland-easymotion";
|
});
|
||||||
|
};
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
clang-tools_16
|
|
||||||
bear
|
|
||||||
];
|
|
||||||
|
|
||||||
inputsFrom = [self.packages.${system}.hyprland-easymotion];
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user