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
41 lines
856 B
Nix
41 lines
856 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromSourcehut,
|
|
wayland,
|
|
wayland-scanner,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttr: {
|
|
pname = "wlopm";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~leon_plickat";
|
|
repo = "wlopm";
|
|
rev = "v${finalAttr.version}";
|
|
hash = "sha256-GrcV51mUZUaiiYhko8ysaTieJoZDcunLn1yG5k+TpQQ=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ wayland-scanner ];
|
|
|
|
buildInputs = [ wayland ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/share/bash-completion/completions
|
|
'';
|
|
|
|
meta = {
|
|
description = "Simple client implementing zwlr-output-power-management-v1";
|
|
homepage = "https://git.sr.ht/~leon_plickat/wlopm";
|
|
mainProgram = "wlopm";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ arjan-s ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|