3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/filesystems/btrfs-progs/default.nix

42 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, attr, acl, zlib, libuuid, e2fsprogs, lzo
2019-05-06 23:52:54 +01:00
, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, libxslt, zstd, python3
}:
stdenv.mkDerivation rec {
pname = "btrfs-progs";
2021-07-20 11:27:14 +01:00
version = "5.13";
src = fetchurl {
2014-09-30 19:35:58 +01:00
url = "mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz";
2021-07-20 11:27:14 +01:00
sha256 = "sha256-Tikh0iA9Jl4qlBu9brB37dXjmBHi1p6MEbLwPc9eWEM=";
};
2018-02-24 13:23:10 +00:00
nativeBuildInputs = [
pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl libxslt
2019-05-06 23:52:54 +01:00
python3 python3.pkgs.setuptools
];
2019-05-06 23:52:54 +01:00
buildInputs = [ attr acl zlib libuuid e2fsprogs lzo zstd python3 ];
# for python cross-compiling
_PYTHON_HOST_PLATFORM = stdenv.hostPlatform.config;
2018-02-24 13:23:10 +00:00
# gcc bug with -O1 on ARM with gcc 4.8
# This should be fine on all platforms so apply universally
postPatch = "sed -i s/-O1/-O2/ configure";
postInstall = ''
install -v -m 444 -D btrfs-completion $out/share/bash-completion/completions/btrfs
'';
2021-01-15 09:19:50 +00:00
configureFlags = lib.optional stdenv.hostPlatform.isMusl "--disable-backtrace";
meta = with lib; {
description = "Utilities for the btrfs filesystem";
2020-04-09 11:57:13 +01:00
homepage = "https://btrfs.wiki.kernel.org/";
license = licenses.gpl2;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
};
}