1{
2 lib,
3 mkMesonLibrary,
4
5 nix-store-c,
6 nix-expr-c,
7 nix-fetchers-c,
8 nix-flake,
9
10 # Configuration Options
11
12 version,
13}:
14
15mkMesonLibrary (finalAttrs: {
16 pname = "nix-flake-c";
17 inherit version;
18
19 workDir = ./.;
20
21 propagatedBuildInputs = [
22 nix-expr-c
23 nix-store-c
24 ]
25 ++ lib.optionals (lib.versionAtLeast version "2.29pre") [
26 nix-fetchers-c
27 ]
28 ++ [
29 nix-flake
30 ];
31
32 mesonFlags = [
33 ];
34
35 meta = {
36 platforms = lib.platforms.unix ++ lib.platforms.windows;
37 };
38
39})