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 4 , libX11 5 5 , libXScrnSaver 6 6 }: 7 - stdenv.mkDerivation rec { 7 + stdenv.mkDerivation (finalAttrs: { 8 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"; 9 + version = "1.1-unstable-2022-09-24"; 10 + 14 11 src = fetchgit { 15 12 url = "https://git.suckless.org/xssstate/"; 16 13 rev = "5d8e9b49ce2970f786f1e5aa12bbaae83900453f"; 17 14 hash = "sha256-Aor12tU1I/qNZCdBhZcvNK1FWFh0HYK8CEI29X5yoeA="; 18 15 }; 19 16 20 - makeFlags = [ "VERSION=${version}" ]; 21 - 22 - installFlags = [ "PREFIX=$(out)" ]; 17 + buildInputs = [ 18 + libX11 19 + libXScrnSaver 20 + ]; 23 21 24 - buildInputs = [ libX11 libXScrnSaver ]; 22 + makeFlags = [ 23 + "PREFIX=${placeholder "out"}" 24 + "VERSION=${finalAttrs.version}" 25 + ]; 25 26 26 27 meta = with lib; { 27 28 description = "A simple tool to retrieve the X screensaver state"; 28 29 license = licenses.mit; 29 30 maintainers = with maintainers; [ onemoresuza ]; 30 31 platforms = platforms.linux; 32 + mainProgram = "xssstate"; 31 33 }; 32 - } 34 + })