summaryrefslogtreecommitdiff
path: root/default.nix
blob: f19ff1076ca200cb660cdadc83cd946d481d6799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ nixpkgs ? (import ./nix/nixpkgs.nix)
}:

with nixpkgs;

stdenv.mkDerivation rec {
  name = "bcachefs-tools-${version}";
  version = "git";

  src = lib.cleanSource ./.; # NOTE: ignore .git, otherwise things get weird!

  nativeBuildInputs = [ git pkgconfig ];
  buildInputs =
    [ liburcu libuuid libaio zlib attr keyutils
      libsodium libscrypt
    ];

  enableParallelBuilding = true;
  makeFlags =
    [ "PREFIX=$(out)"
    ];

  meta = with stdenv.lib; {
    description = "Userspace tools for bcachefs";
    homepage    = http://bcachefs.org;
    license     = licenses.gpl2;
    platforms   = platforms.linux;
    maintainers =
      [ "Kent Overstreet <kent.overstreet@gmail.com>"
      ];
  };
}