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
44 lines
956 B
Nix
44 lines
956 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
xorg,
|
|
makeWrapper,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "xscreenruler";
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "julian-hoch";
|
|
repo = "xscreenruler";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-oRbZ8r9EOPcLuuX8VyCBNt6ljdnko/EV8C8aeR85xYU=";
|
|
};
|
|
|
|
buildInputs = [ xorg.libX11 ];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm755 xscreenruler -t $out/bin
|
|
runHook postInstall
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/xscreenruler \
|
|
--prefix PATH : ${lib.makeBinPath [ xorg.xsetroot ]}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Simple screen ruler using xlib";
|
|
homepage = "https://github.com/julian-hoch/xscreenruler";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.julian-hoch ];
|
|
};
|
|
})
|