9 stdenv.mkDerivation rec {
10 pname = "btrfs-heatmap";
13 src = fetchFromGitHub {
15 repo = "btrfs-heatmap";
17 sha256 = "sha256-yCkuZqWwxrs2eS7EXY6pAOVVVSq7dAMxJtf581gX8vg=";
20 buildInputs = [ python3 ];
22 python3.pkgs.wrapPython
34 install -Dm 0755 btrfs-heatmap $out/sbin/btrfs-heatmap
35 installManPage man/btrfs-heatmap.1
37 buildPythonPath ${python3.pkgs.btrfs}
38 patchPythonScript $out/sbin/btrfs-heatmap
44 description = "Visualize the layout of a mounted btrfs";
45 mainProgram = "btrfs-heatmap";
46 homepage = "https://github.com/knorrie/btrfs-heatmap";
47 license = licenses.mit;
48 platforms = platforms.linux;
49 maintainers = [ maintainers.evils ];