mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 21:43:32 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
1007 B
Nix
43 lines
1007 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3Packages
|
|
, installShellFiles
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "zpool-iostat-viz";
|
|
version = "unstable-2021-11-13";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chadmiller";
|
|
repo = pname;
|
|
rev = "cdd8f3d882ab7a9990fb2d26af3e5b2bcc4bb312";
|
|
sha256 = "sha256-vNXD5SauBpCtP7VPTumQ0/wXfW0PjtooS21cjpAole8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
python3Packages.wrapPython
|
|
];
|
|
|
|
# There is no setup.py
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
doCheck = false;
|
|
|
|
installPhase = ''
|
|
wrapPythonPrograms
|
|
install -D zpool-iostat-viz $out/bin/zpool-iostat-viz
|
|
installManPage zpool-iostat-viz.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "\"zpool iostats\" for humans; find the slow parts of your ZFS pool";
|
|
homepage = "https://github.com/chadmiller/zpool-iostat-viz";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ julm ];
|
|
mainProgram = "zpool-iostat-viz";
|
|
};
|
|
}
|