2021-04-29 03:50:56 +01:00
|
|
|
{ stdenv, lib, fetchurl, cmake, meson, ninja, pkg-config
|
|
|
|
, doctest, glm, libevdev, libxml2
|
|
|
|
}:
|
2020-05-02 18:38:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wf-config";
|
2021-04-29 03:50:56 +01:00
|
|
|
version = "0.7.1";
|
2020-05-02 18:38:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-07 18:54:12 +00:00
|
|
|
url = "https://github.com/WayfireWM/wf-config/releases/download/v${version}/wf-config-${version}.tar.xz";
|
2021-04-29 03:50:56 +01:00
|
|
|
sha256 = "1w75yxhz0nvw4mlv38sxp8k8wb5h99b51x3fdvizc3yaxanqa8kx";
|
2020-05-02 18:38:37 +01:00
|
|
|
};
|
|
|
|
|
2021-04-29 03:50:56 +01:00
|
|
|
nativeBuildInputs = [ cmake meson ninja pkg-config ];
|
|
|
|
buildInputs = [ doctest libevdev libxml2 ];
|
2020-05-02 18:38:37 +01:00
|
|
|
propagatedBuildInputs = [ glm ];
|
|
|
|
|
2021-04-29 03:50:56 +01:00
|
|
|
# CMake is just used for finding doctest.
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2020-05-02 18:38:37 +01: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;
|
|
|
|
};
|
|
|
|
}
|