2008-11-14 13:34:18 +01:00
|
|
|
{stdenv, fetchurl, zlibStatic}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2009-11-08 11:38:07 +01:00
|
|
|
pname = "cryopid";
|
|
|
|
version = "20090908";
|
|
|
|
revision = "7da69201d50e";
|
2008-11-14 13:34:18 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
|
2009-11-08 11:38:07 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2008-11-14 13:34:18 +01:00
|
|
|
|
2009-11-08 11:38:07 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://sharesource.org/hg/cryopid/archive/${revision}.tar.bz2";
|
|
|
|
sha256 = "908a4b1cb26322ee25afe13ff59e0d86f669538cb4583766b15ca79fda6c69ca";
|
|
|
|
};
|
2008-11-14 13:34:18 +01:00
|
|
|
|
2009-11-08 11:38:07 +01:00
|
|
|
buildInputs = [ zlibStatic ];
|
2008-11-14 13:34:18 +01:00
|
|
|
|
2009-11-08 11:38:07 +01:00
|
|
|
preBuild = "cd src";
|
2008-11-14 13:34:18 +01:00
|
|
|
|
2009-11-08 11:38:07 +01:00
|
|
|
installPhase = "mkdir -p $out/bin; cp cryopid $out/bin";
|
2008-11-14 13:34:18 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A process freezer for Linux";
|
|
|
|
longDescription = ''
|
|
|
|
CryoPID allows you to capture the state of a running process in Linux
|
|
|
|
and save it to a file. This file can then be used to resume the process
|
|
|
|
later on, either after a reboot or even on another machines.
|
|
|
|
'';
|
2009-11-08 11:38:07 +01:00
|
|
|
homepage = http://sharesource.org/project/cryopid;
|
2008-11-14 13:34:18 +01:00
|
|
|
license = ''
|
|
|
|
Modified BSD license (without advertising clause). CryoPID ships with
|
|
|
|
and links against the dietlibc library, which is distributed under the
|
|
|
|
GNU General Public Licence, version 2.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|