xscreenruler: init at 1.0.2 (#435874)
This commit is contained in:
@@ -12847,6 +12847,11 @@
|
||||
github = "juliamertz";
|
||||
githubId = 35079666;
|
||||
};
|
||||
julian-hoch = {
|
||||
name = "Julian Hoch";
|
||||
github = "julian-hoch";
|
||||
githubId = 95583314;
|
||||
};
|
||||
JulianFP = {
|
||||
name = "Julian Partanen";
|
||||
github = "JulianFP";
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user