Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
72 lines
1.3 KiB
Nix
72 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
bash,
|
|
copyDesktopItems,
|
|
coreutils,
|
|
fetchFromGitHub,
|
|
jq,
|
|
makeDesktopItem,
|
|
makeWrapper,
|
|
nix-update-script,
|
|
scdoc,
|
|
slurp,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "hyprprop";
|
|
version = "0.1-unstable-2025-08-20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hyprwm";
|
|
repo = "contrib";
|
|
rev = "04721247f417256ca96acf28cdfe946cf1006263";
|
|
hash = "sha256-g7/g5o0spemkZCzPa8I21RgCmN0Kv41B5z9Z5HQWraY=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/hyprprop";
|
|
|
|
buildInputs = [
|
|
bash
|
|
scdoc
|
|
];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
copyDesktopItems
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/hyprprop --prefix PATH ':' \
|
|
"${
|
|
lib.makeBinPath [
|
|
coreutils
|
|
slurp
|
|
jq
|
|
]
|
|
}"
|
|
'';
|
|
|
|
desktopItems =
|
|
let
|
|
desktopItem = makeDesktopItem {
|
|
name = "hyprprop";
|
|
exec = "hyprprop";
|
|
desktopName = "Hyprprop";
|
|
terminal = true;
|
|
startupNotify = false;
|
|
};
|
|
in
|
|
[ desktopItem ];
|
|
|
|
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
|
|
meta = {
|
|
description = "Xprop replacement for Hyprland";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
teams = [ lib.teams.hyprland ];
|
|
mainProgram = "hyprprop";
|
|
};
|
|
})
|