2015-04-26 17:04:05 +02:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bmrsa-${version}";
|
|
|
|
version = "11";
|
2008-03-03 13:30:39 +01:00
|
|
|
|
2008-12-04 22:01:26 +01:00
|
|
|
src = fetchurl {
|
2013-07-14 01:35:26 +02:00
|
|
|
url = "mirror://sourceforge/bmrsa/bmrsa${version}.zip";
|
2008-12-04 22:01:26 +01:00
|
|
|
sha256 = "0ksd9xkvm9lkvj4yl5sl0zmydp1wn3xhc55b28gj70gi4k75kcl4";
|
|
|
|
};
|
|
|
|
|
2015-04-26 17:04:05 +02:00
|
|
|
buildInputs = [ unzip ];
|
2008-12-04 22:01:26 +01:00
|
|
|
|
2015-04-26 17:04:05 +02:00
|
|
|
unpackPhase = ''
|
2008-12-04 22:01:26 +01:00
|
|
|
mkdir bmrsa
|
2015-04-26 17:04:05 +02:00
|
|
|
cd bmrsa
|
2008-12-04 22:01:26 +01:00
|
|
|
unzip ${src}
|
|
|
|
sed -e 's/gcc/g++/' -i Makefile
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2008-12-04 22:01:26 +01:00
|
|
|
echo -e 'install:\n\tcp bmrsa '$out'/bin' >> Makefile
|
2015-04-26 17:04:05 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2008-12-04 22:01:26 +01:00
|
|
|
description = "RSA utility";
|
2015-04-26 17:04:05 +02:00
|
|
|
homepage = http://bmrsa.sourceforge.net/;
|
|
|
|
license = licenses.gpl1;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.linux;
|
2008-12-04 22:01:26 +01:00
|
|
|
};
|
2008-03-03 13:30:39 +01:00
|
|
|
}
|