|
|
@ -1,22 +1,24 @@ |
|
|
|
{ lib, stdenv, fetchurl |
|
|
|
{ lib, stdenv, fetchurl |
|
|
|
, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxslt, pkg-config, python3, xmlto |
|
|
|
, pkg-config, python3, sphinx |
|
|
|
, zstd |
|
|
|
, zstd |
|
|
|
, acl, attr, e2fsprogs, libuuid, lzo, udev, zlib |
|
|
|
, acl, attr, e2fsprogs, libuuid, lzo, udev, zlib |
|
|
|
, runCommand, btrfs-progs |
|
|
|
, runCommand, btrfs-progs |
|
|
|
|
|
|
|
, gitUpdater |
|
|
|
}: |
|
|
|
}: |
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec { |
|
|
|
stdenv.mkDerivation rec { |
|
|
|
pname = "btrfs-progs"; |
|
|
|
pname = "btrfs-progs"; |
|
|
|
version = "5.16.2"; |
|
|
|
version = "5.17"; |
|
|
|
|
|
|
|
|
|
|
|
src = fetchurl { |
|
|
|
src = fetchurl { |
|
|
|
url = "mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz"; |
|
|
|
url = "mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz"; |
|
|
|
sha256 = "sha256-npswOh0P2c6q8gTudMHI+h/VV5TiI9n+K8Yodey9U9I="; |
|
|
|
sha256 = "sha256-Y7d4/kwrrRjjcdzljtNUiOCPWDkhNnRU/diFB6PQ2J4="; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ |
|
|
|
nativeBuildInputs = [ |
|
|
|
pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl libxslt |
|
|
|
pkg-config |
|
|
|
python3 python3.pkgs.setuptools |
|
|
|
python3 python3.pkgs.setuptools |
|
|
|
|
|
|
|
sphinx |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
buildInputs = [ acl attr e2fsprogs libuuid lzo python3 zlib zstd ] ++ lib.optionals stdenv.hostPlatform.isGnu [ udev ]; |
|
|
|
buildInputs = [ acl attr e2fsprogs libuuid lzo python3 zlib zstd ] ++ lib.optionals stdenv.hostPlatform.isGnu [ udev ]; |
|
|
@ -47,6 +49,14 @@ stdenv.mkDerivation rec { |
|
|
|
[ -e $out/success ] |
|
|
|
[ -e $out/success ] |
|
|
|
''; |
|
|
|
''; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
passthru.updateScript = gitUpdater { |
|
|
|
|
|
|
|
inherit pname version; |
|
|
|
|
|
|
|
# No nicer place to find latest release. |
|
|
|
|
|
|
|
url = "https://github.com/kdave/btrfs-progs.git"; |
|
|
|
|
|
|
|
rev-prefix = "v"; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
meta = with lib; { |
|
|
|
description = "Utilities for the btrfs filesystem"; |
|
|
|
description = "Utilities for the btrfs filesystem"; |
|
|
|
homepage = "https://btrfs.wiki.kernel.org/"; |
|
|
|
homepage = "https://btrfs.wiki.kernel.org/"; |
|
|
|