2015-04-26 15:04:05 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bmrsa-${version}";
|
|
|
|
version = "11";
|
2008-03-03 12:30:39 +00:00
|
|
|
|
2008-12-04 21:01:26 +00:00
|
|
|
src = fetchurl {
|
2013-07-13 23:35:26 +00:00
|
|
|
url = "mirror://sourceforge/bmrsa/bmrsa${version}.zip";
|
2008-12-04 21:01:26 +00:00
|
|
|
sha256 = "0ksd9xkvm9lkvj4yl5sl0zmydp1wn3xhc55b28gj70gi4k75kcl4";
|
|
|
|
};
|
|
|
|
|
2015-04-26 15:04:05 +00:00
|
|
|
buildInputs = [ unzip ];
|
2008-12-04 21:01:26 +00:00
|
|
|
|
2015-04-26 15:04:05 +00:00
|
|
|
unpackPhase = ''
|
2008-12-04 21:01:26 +00:00
|
|
|
mkdir bmrsa
|
2015-04-26 15:04:05 +00:00
|
|
|
cd bmrsa
|
2008-12-04 21:01:26 +00:00
|
|
|
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
|
2015-04-26 15:04:05 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2008-12-04 21:01:26 +00:00
|
|
|
description = "RSA utility";
|
2015-04-26 15:04:05 +00:00
|
|
|
homepage = http://bmrsa.sourceforge.net/;
|
|
|
|
license = licenses.gpl1;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.linux;
|
2008-12-04 21:01:26 +00:00
|
|
|
};
|
2008-03-03 12:30:39 +00:00
|
|
|
}
|