2015-09-15 05:27:19 +01:00
|
|
|
args @ {unzip, ... } :
|
|
|
|
let
|
2008-12-04 21:01:26 +00:00
|
|
|
lib = args.lib;
|
|
|
|
fetchurl = args.fetchurl;
|
2009-05-20 00:25:58 +01:00
|
|
|
fullDepEntry = args.fullDepEntry;
|
2008-03-03 12:30:39 +00:00
|
|
|
|
2009-11-23 12:21:34 +00:00
|
|
|
version = "11";
|
2008-12-04 21:01:26 +00:00
|
|
|
buildInputs = with args; [
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
2013-07-14 00:35:26 +01:00
|
|
|
url = "mirror://sourceforge/bmrsa/bmrsa${version}.zip";
|
2008-12-04 21:01:26 +00:00
|
|
|
sha256 = "0ksd9xkvm9lkvj4yl5sl0zmydp1wn3xhc55b28gj70gi4k75kcl4";
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
|
|
|
phaseNames = ["doMakeInstall"];
|
|
|
|
|
2009-05-20 00:25:58 +01:00
|
|
|
doUnpack = fullDepEntry (''
|
2008-12-04 21:01:26 +00:00
|
|
|
mkdir bmrsa
|
|
|
|
cd bmrsa
|
|
|
|
unzip ${src}
|
|
|
|
sed -e 's/gcc/g++/' -i Makefile
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2008-12-04 21:01:26 +00:00
|
|
|
echo -e 'install:\n\tcp bmrsa '$out'/bin' >> Makefile
|
|
|
|
'') ["minInit" "addInputs" "defEnsureDir"];
|
|
|
|
|
|
|
|
name = "bmrsa-"+version;
|
|
|
|
meta = {
|
|
|
|
description = "RSA utility";
|
|
|
|
};
|
2008-03-03 12:30:39 +00:00
|
|
|
}
|
2008-12-04 21:01:26 +00:00
|
|
|
|