2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchgit
|
|
|
|
, libX11
|
|
|
|
, libXScrnSaver
|
|
|
|
}:
|
2023-11-16 04:20:00 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-08-04 22:07:22 +00:00
|
|
|
pname = "xssstate";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.1-unstable-2022-09-24";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.suckless.org/xssstate/";
|
|
|
|
rev = "5d8e9b49ce2970f786f1e5aa12bbaae83900453f";
|
|
|
|
hash = "sha256-Aor12tU1I/qNZCdBhZcvNK1FWFh0HYK8CEI29X5yoeA=";
|
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXScrnSaver
|
|
|
|
];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"VERSION=${finalAttrs.version}"
|
|
|
|
];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple tool to retrieve the X screensaver state";
|
2023-08-04 22:07:22 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ onemoresuza ];
|
|
|
|
platforms = platforms.linux;
|
2023-11-16 04:20:00 +00:00
|
|
|
mainProgram = "xssstate";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
})
|