2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2015-04-26 16:04:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bmrsa";
|
2015-04-26 16:04:05 +01:00
|
|
|
version = "11";
|
2008-03-03 12:30:39 +00:00
|
|
|
|
2008-12-04 21:01:26 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2008-12-04 21:01:26 +00:00
|
|
|
|
2015-04-26 16:04:05 +01:00
|
|
|
unpackPhase = ''
|
2008-12-04 21:01:26 +00:00
|
|
|
mkdir bmrsa
|
2015-04-26 16:04:05 +01: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 16:04:05 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2008-12-04 21:01:26 +00:00
|
|
|
description = "RSA utility";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://bmrsa.sourceforge.net/";
|
2015-04-26 16:04:05 +01:00
|
|
|
license = licenses.gpl1;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.linux;
|
2008-12-04 21:01:26 +00:00
|
|
|
};
|
2008-03-03 12:30:39 +00:00
|
|
|
}
|