2021-05-03 20:48:10 +00:00
|
|
|
{ stdenv, lib, fetchurl, cmake, meson, ninja, pkg-config
|
|
|
|
, doctest, glm, libevdev, libxml2
|
|
|
|
}:
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wf-config";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "0.7.1";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-13 14:23:35 +00:00
|
|
|
url = "https://github.com/WayfireWM/wf-config/releases/download/v${version}/wf-config-${version}.tar.xz";
|
2021-05-03 20:48:10 +00:00
|
|
|
sha256 = "1w75yxhz0nvw4mlv38sxp8k8wb5h99b51x3fdvizc3yaxanqa8kx";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
nativeBuildInputs = [ cmake meson ninja pkg-config ];
|
|
|
|
buildInputs = [ doctest libevdev libxml2 ];
|
2020-12-25 13:55:36 +00:00
|
|
|
propagatedBuildInputs = [ glm ];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
# CMake is just used for finding doctest.
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/WayfireWM/wf-config";
|
|
|
|
description = "Library for managing configuration files, written for Wayfire";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ qyliss wucke13 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|