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