Skip to content

Commit

Permalink
hyprprop: init at 0.1-unstable-2024-12-01
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 16, 2024
1 parent 7f5eb8f commit 1dc5f7d
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions pkgs/by-name/hy/hyprprop/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
lib,
stdenvNoCC,
bash,
copyDesktopItems,
coreutils,
fetchFromGitHub,
jq,
makeDesktopItem,
makeWrapper,
nix-update-script,
scdoc,
slurp,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "hyprprop";
version = "0.1-unstable-2024-12-01";

src = fetchFromGitHub {
owner = "hyprwm";
repo = "contrib";
rev = "d7c55140f1785b8d9fef351f1cd2a4c9e1eaa466";
hash = "sha256-sp14z0mrqrtmouz1+bU4Jh8/0xi+xwQHF2l7mhGSSVU=";
};

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 = "An xprop replacement for Hyprland";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ khaneliman ];
mainProgram = "hyprprop";
};
})

0 comments on commit 1dc5f7d

Please sign in to comment.