depot/third_party/nixpkgs/pkgs/tools/admin/swapspace/default.nix
Default email b41113241d Project import generated by Copybara.
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
2022-09-22 14:36:57 +02:00

30 lines
695 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, installShellFiles }:
stdenv.mkDerivation rec {
pname = "swapspace";
version = "1.17";
src = fetchFromGitHub {
owner = "Tookmund";
repo = "Swapspace";
rev = "v${version}";
sha256 = "sha256-v1kSkepZm6+S4wf86ETgQzEAZBLJ2jQBgCRdF7yvuxs=";
};
nativeBuildInputs = [
autoreconfHook
installShellFiles
];
postInstall = ''
installManPage doc/swapspace.8
'';
meta = with lib; {
description = "Dynamic swap manager for Linux";
homepage = "https://github.com/Tookmund/Swapspace";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = with maintainers; [ misuzu ];
};
}