2021-02-10 14:30:42 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libX11 }:
|
2015-02-28 11:24:07 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xsettingsd";
|
2021-02-10 14:30:42 +01:00
|
|
|
version = "1.0.2";
|
2015-02-28 11:24:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "derat";
|
|
|
|
repo = "xsettingsd";
|
2018-09-09 14:50:22 +02:00
|
|
|
rev = "v${version}";
|
2021-02-10 14:30:42 +01:00
|
|
|
sha256 = "sha256-CIYshZqJICuL8adKHIN4R6nudaqWOCK2UPrGhsKf9pE=";
|
2015-02-28 11:24:07 +01:00
|
|
|
};
|
|
|
|
|
2021-02-10 14:30:42 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2018-09-09 14:50:22 +02:00
|
|
|
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
2021-02-10 14:30:42 +01:00
|
|
|
# we end up with symlinked unit files if we don't move them around ourselves
|
|
|
|
postFixup = ''
|
|
|
|
rm -r $out/lib/systemd
|
|
|
|
mv $out/share/systemd $out/lib
|
2015-02-28 11:24:07 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-02-28 11:24:07 +01:00
|
|
|
description = "Provides settings to X11 applications via the XSETTINGS specification";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/derat/xsettingsd";
|
2018-09-09 14:50:22 +02:00
|
|
|
license = licenses.bsd3;
|
2021-02-10 14:30:42 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2015-02-28 11:24:07 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|