ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
30 lines
677 B
Nix
30 lines
677 B
Nix
{ lib, stdenv, fetchurl, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bmrsa";
|
|
version = "11";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/bmrsa/bmrsa${version}.zip";
|
|
sha256 = "0ksd9xkvm9lkvj4yl5sl0zmydp1wn3xhc55b28gj70gi4k75kcl4";
|
|
};
|
|
|
|
nativeBuildInputs = [ 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 lib; {
|
|
description = "RSA utility";
|
|
mainProgram = "bmrsa";
|
|
homepage = "http://bmrsa.sourceforge.net/";
|
|
license = licenses.gpl2Only;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|