compsize: use upstream's installer
This commit is contained in:
parent
9d8e05e088
commit
96a4f3f97c
|
@ -13,18 +13,19 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [ btrfs-progs ];
|
buildInputs = [ btrfs-progs ];
|
||||||
|
|
||||||
installPhase = ''
|
installFlags = [
|
||||||
mkdir -p $out/bin
|
"PREFIX=${placeholder "out"}"
|
||||||
|
];
|
||||||
|
|
||||||
|
preInstall = ''
|
||||||
mkdir -p $out/share/man/man8
|
mkdir -p $out/share/man/man8
|
||||||
install -m 0755 compsize $out/bin
|
|
||||||
install -m 0444 compsize.8 $out/share/man/man8
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "btrfs: Find compression type/ratio on a file or set of files";
|
description = "btrfs: Find compression type/ratio on a file or set of files";
|
||||||
homepage = "https://github.com/kilobyte/compsize";
|
homepage = "https://github.com/kilobyte/compsize";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ CrazedProgrammer ];
|
maintainers = with maintainers; [ CrazedProgrammer ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue