Merge pull request #259473 from onemoresuza/xssstate

authored by Artturi and committed by GitHub ddb0a814 324aef5e

+13 -11
+13 -11
pkgs/tools/X11/xssstate/default.nix
··· 4 , libX11 5 , libXScrnSaver 6 }: 7 - stdenv.mkDerivation rec { 8 pname = "xssstate"; 9 - # 10 - # Use the date of the last commit, since there were bug fixes after the 1.1 11 - # release. 12 - # 13 - version = "unstable-2022-09-24"; 14 src = fetchgit { 15 url = "https://git.suckless.org/xssstate/"; 16 rev = "5d8e9b49ce2970f786f1e5aa12bbaae83900453f"; 17 hash = "sha256-Aor12tU1I/qNZCdBhZcvNK1FWFh0HYK8CEI29X5yoeA="; 18 }; 19 20 - makeFlags = [ "VERSION=${version}" ]; 21 - 22 - installFlags = [ "PREFIX=$(out)" ]; 23 24 - buildInputs = [ libX11 libXScrnSaver ]; 25 26 meta = with lib; { 27 description = "A simple tool to retrieve the X screensaver state"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ onemoresuza ]; 30 platforms = platforms.linux; 31 }; 32 - }
··· 4 , libX11 5 , libXScrnSaver 6 }: 7 + stdenv.mkDerivation (finalAttrs: { 8 pname = "xssstate"; 9 + version = "1.1-unstable-2022-09-24"; 10 + 11 src = fetchgit { 12 url = "https://git.suckless.org/xssstate/"; 13 rev = "5d8e9b49ce2970f786f1e5aa12bbaae83900453f"; 14 hash = "sha256-Aor12tU1I/qNZCdBhZcvNK1FWFh0HYK8CEI29X5yoeA="; 15 }; 16 17 + buildInputs = [ 18 + libX11 19 + libXScrnSaver 20 + ]; 21 22 + makeFlags = [ 23 + "PREFIX=${placeholder "out"}" 24 + "VERSION=${finalAttrs.version}" 25 + ]; 26 27 meta = with lib; { 28 description = "A simple tool to retrieve the X screensaver state"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ onemoresuza ]; 31 platforms = platforms.linux; 32 + mainProgram = "xssstate"; 33 }; 34 + })