1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

compsize: fix build

This commit is contained in:
Peter Hoeg 2024-08-29 16:37:43 +02:00
parent dce00c0b42
commit df05ee79ea

View file

@ -1,5 +1,17 @@
{ lib, stdenv, fetchFromGitHub, btrfs-progs }:
{ lib, stdenv, fetchFromGitHub, fetchurl, btrfs-progs }:
let
# https://github.com/kilobyte/compsize/issues/52
btrfs-progs' = btrfs-progs.overrideAttrs (old: rec {
pname = "btrfs-progs";
version = "6.10";
src = fetchurl {
url = "mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz";
hash = "sha256-M4KoTj/P4f/eoHphqz9OhmZdOPo18fNFSNXfhnQj4N8=";
};
});
in
stdenv.mkDerivation rec {
pname = "compsize";
version = "1.5";
@ -11,7 +23,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-OX41ChtHX36lVRL7O2gH21Dfw6GPPEClD+yafR/PFm8=";
};
buildInputs = [ btrfs-progs ];
buildInputs = [ btrfs-progs' ];
installFlags = [
"PREFIX=${placeholder "out"}"