7 stdenv.mkDerivation rec {
8 pname = "btrfs-heatmap";
11 src = fetchFromGitHub {
13 repo = "btrfs-heatmap";
15 sha256 = "sha256-yCkuZqWwxrs2eS7EXY6pAOVVVSq7dAMxJtf581gX8vg=";
18 buildInputs = [ python3 ];
19 nativeBuildInputs = [ python3.pkgs.wrapPython installShellFiles ];
21 outputs = [ "out" "man" ];
26 install -Dm 0755 btrfs-heatmap $out/sbin/btrfs-heatmap
27 installManPage man/btrfs-heatmap.1
29 buildPythonPath ${python3.pkgs.btrfs}
30 patchPythonScript $out/sbin/btrfs-heatmap
36 description = "Visualize the layout of a mounted btrfs";
37 homepage = "https://github.com/knorrie/btrfs-heatmap";
38 license = licenses.mit;
39 platforms = platforms.linux;
40 maintainers = [ maintainers.evils ];