···11-{stdenv, fetchurl, zlibStatic}:
22-33-let
44-55- pname = "cryopid";
66- version = "20090908";
77- revision = "7da69201d50e";
88-99-in
1010-1111-stdenv.mkDerivation rec {
1212- name = "${pname}-${version}";
1313-1414- src = fetchurl {
1515- url = "https://sharesource.org/hg/cryopid/archive/${revision}.tar.bz2";
1616- sha256 = "908a4b1cb26322ee25afe13ff59e0d86f669538cb4583766b15ca79fda6c69ca";
1717- };
1818-1919- buildInputs = [ zlibStatic ];
2020-2121- preBuild = "cd src";
2222-2323- installPhase = "mkdir -p $out/bin; cp cryopid $out/bin";
2424-2525- meta = {
2626- description = "A process freezer for Linux";
2727- longDescription = ''
2828- CryoPID allows you to capture the state of a running process in Linux
2929- and save it to a file. This file can then be used to resume the process
3030- later on, either after a reboot or even on another machines.
3131- '';
3232- homepage = http://sharesource.org/project/cryopid;
3333- license = ''
3434- Modified BSD license (without advertising clause). CryoPID ships with
3535- and links against the dietlibc library, which is distributed under the
3636- GNU General Public Licence, version 2.
3737- '';
3838- };
3939-}