summary refs log tree commit diff
path: root/pkgs/os-specific/linux/btrfsprogs/default.nix
blob: 62d3b130ca5dc378d390e46614c0b22e53a225b3 (plain) (blame)
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
a :  
let 
  fetchurl = a.fetchurl;

  version = a.lib.attrByPath ["version"] "0.18" a; 
  buildInputs = with a; [
    zlib e2fsprogs acl 
  ];
in
rec {
  src = fetchurl {
    url = "http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-progs-${version}.tar.bz2";
    sha256 = "032g9lyrinpnrx4b8hs5i6qfbmv8x4ss02p26fgvk4zbc0slh7z8";
  };

  inherit buildInputs;
  configureFlags = [];
  makeFlags = ["prefix=$out"];

  /* doConfigure should be removed if not needed */
  phaseNames = ["doMakeInstall"];
      
  name = "btrfs-progs-" + version;
  meta = {
    description = "BTRFS utilities";
  };
}