blob: 519b4f9f4b91462185c30abb5b93e0762b07a538 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
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";
src = fetchFromGitHub {
owner = "kilobyte";
repo = "compsize";
rev = "v${version}";
sha256 = "sha256-OX41ChtHX36lVRL7O2gH21Dfw6GPPEClD+yafR/PFm8=";
};
buildInputs = [ btrfs-progs' ];
installFlags = [
"PREFIX=${placeholder "out"}"
];
preInstall = ''
mkdir -p $out/share/man/man8
'';
meta = with lib; {
description = "Find compression type/ratio on a file or set of files in the Btrfs filesystem";
mainProgram = "compsize";
homepage = "https://github.com/kilobyte/compsize";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ CrazedProgrammer ];
platforms = platforms.linux;
};
}
|