mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
f7f938a1d1
getAttr was ambiguous. It's also a builtin function fix svn path=/nixpkgs/trunk/; revision=15692
28 lines
610 B
Nix
28 lines
610 B
Nix
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";
|
|
};
|
|
}
|