nixpkgs/pkgs/tools/admin/swapspace/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
695 B
Nix
Raw Normal View History

2022-09-14 19:31:49 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, installShellFiles }:
stdenv.mkDerivation rec {
pname = "swapspace";
2022-10-09 21:32:30 +00:00
version = "1.18";
2022-09-14 19:31:49 +00:00
src = fetchFromGitHub {
owner = "Tookmund";
repo = "Swapspace";
rev = "v${version}";
2022-10-09 21:32:30 +00:00
sha256 = "sha256-tzsw10cpu5hldkm0psWcFnWToWQejout/oGHJais6yw=";
2022-09-14 19:31:49 +00:00
};
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 ];
};
}