2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2015-04-26 15:04:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "bmrsa";
|
2015-04-26 15:04:05 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ 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
|
|
|
'';
|
|
|
|
|
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 01:11:51 +00:00
|
|
|
homepage = "http://bmrsa.sourceforge.net/";
|
2022-09-29 08:54:21 +00:00
|
|
|
license = licenses.gpl2Only;
|
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
|
|
|
}
|