nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 meson,
6 ninja,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "lyra";
11 version = "1.7.0";
12
13 src = fetchFromGitHub {
14 owner = "bfgroup";
15 repo = "lyra";
16 rev = finalAttrs.version;
17 sha256 = "sha256-X8wJwSfOo7v2SKYrKJ4RhpEmOdEkS8lPHIqCxP46VF4=";
18 };
19
20 nativeBuildInputs = [
21 meson
22 ninja
23 ];
24
25 postPatch = "sed -i s#/usr#$out#g meson.build";
26
27 postInstall = ''
28 mkdir -p $out/include
29 cp -R $src/include/* $out/include
30 '';
31
32 meta = {
33 homepage = "https://github.com/bfgroup/Lyra";
34 description = "Simple to use, composable, command line parser for C++ 11 and beyond";
35 platforms = lib.platforms.unix;
36 license = lib.licenses.boost;
37 maintainers = [ ];
38 };
39})