git.iko.soy/typeable/nixpkgs
on master help sign in
compsize: use upstream's installer
commit96a4f3f97c2644abf20ca19575d92aae5ac15420 authorPeter Hoeg <peter@hoeg.com> dateWed 24 Mar 2021, 11:00 (6 years ago) parent9d8e05e
1 file changed+8−7
pkgs/os-specific/linux/compsize/default.nix+8−7
pkgs/os-specific/linux/compsize/default.nix+8−7
@@ -13,18 +13,19 @@ stdenv.mkDerivation rec {
1313
1414 buildInputs = [ btrfs-progs ];
1515
16− installPhase = ''
17− mkdir -p $out/bin
16+ installFlags = [
17+ "PREFIX=${placeholder "out"}"
18+ ];
19+
20+ preInstall = ''
1821 mkdir -p $out/share/man/man8
19− install -m 0755 compsize $out/bin
20− install -m 0444 compsize.8 $out/share/man/man8
2122 '';
2223
2324 meta = with lib; {
2425 description = "btrfs: Find compression type/ratio on a file or set of files";
25− homepage = "https://github.com/kilobyte/compsize";
26− license = licenses.gpl2Plus;
26+ homepage = "https://github.com/kilobyte/compsize";
27+ license = licenses.gpl2Plus;
2728 maintainers = with maintainers; [ CrazedProgrammer ];
28− platforms = platforms.linux;
29+ platforms = platforms.linux;
2930 };
3031}