nixpkgs/pkgs/applications/window-managers/wayfire/wf-config.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.1 KiB
Nix
Raw Normal View History

2023-04-01 19:22:43 +03:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
, meson
, ninja
, pkg-config
, doctest
, glm
, libevdev
, libxml2
}:
2020-05-02 20:38:37 +03:00
stdenv.mkDerivation (finalAttrs: {
2020-05-02 20:38:37 +03:00
pname = "wf-config";
2023-10-08 15:19:30 +03:00
version = "0.8.0";
2020-05-02 20:38:37 +03:00
2023-04-01 19:22:43 +03:00
src = fetchFromGitHub {
owner = "WayfireWM";
repo = "wf-config";
rev = "v${finalAttrs.version}";
2023-10-08 15:19:30 +03:00
hash = "sha256-4QszCGlJqehnavTOdR2vZ95XuHKiNUIsA893sa9qph8=";
2020-05-02 20:38:37 +03:00
};
2023-04-01 19:22:43 +03:00
nativeBuildInputs = [
meson
ninja
pkg-config
];
2020-05-02 20:38:37 +03:00
2023-04-01 19:22:43 +03:00
buildInputs = [
libevdev
libxml2
];
propagatedBuildInputs = [
glm
];
nativeCheckInputs = [
cmake
doctest
];
# CMake is just used for finding doctest.
dontUseCmakeConfigure = true;
mesonFlags = [
(lib.mesonEnable "tests" (stdenv.buildPlatform.canExecute stdenv.hostPlatform))
];
doCheck = true;
meta = {
2020-05-02 20:38:37 +03:00
homepage = "https://github.com/WayfireWM/wf-config";
description = "Library for managing configuration files, written for Wayfire";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ qyliss wucke13 rewine ];
platforms = lib.platforms.unix;
2020-05-02 20:38:37 +03:00
};
})