mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +00:00
8b3c02c14c
Also set homepage & license (GPL according to the README, no license is actually included in the source repo).
29 lines
617 B
Nix
29 lines
617 B
Nix
{ stdenv, fetchurl, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "bmrsa-${version}";
|
|
version = "11";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/bmrsa/bmrsa${version}.zip";
|
|
sha256 = "0ksd9xkvm9lkvj4yl5sl0zmydp1wn3xhc55b28gj70gi4k75kcl4";
|
|
};
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
unpackPhase = ''
|
|
mkdir bmrsa
|
|
cd bmrsa
|
|
unzip ${src}
|
|
sed -e 's/gcc/g++/' -i Makefile
|
|
mkdir -p $out/bin
|
|
echo -e 'install:\n\tcp bmrsa '$out'/bin' >> Makefile
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "RSA utility";
|
|
homepage = http://bmrsa.sourceforge.net/;
|
|
license = licenses.gpl1;
|
|
};
|
|
}
|