31 lines
695 B
Nix
31 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 ];
|
||
|
};
|
||
|
}
|