mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
bmrsa: reimplement using mkDerivation
Also set homepage & license (GPL according to the README, no license is actually included in the source repo).
This commit is contained in:
parent
a799e1dff2
commit
8b3c02c14c
@ -1,38 +1,28 @@
|
||||
args @ {unzip, ... } :
|
||||
let
|
||||
lib = args.lib;
|
||||
fetchurl = args.fetchurl;
|
||||
fullDepEntry = args.fullDepEntry;
|
||||
{ stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bmrsa-${version}";
|
||||
version = "11";
|
||||
|
||||
version = "11";
|
||||
buildInputs = with args; [
|
||||
unzip
|
||||
];
|
||||
in
|
||||
rec {
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/bmrsa/bmrsa${version}.zip";
|
||||
sha256 = "0ksd9xkvm9lkvj4yl5sl0zmydp1wn3xhc55b28gj70gi4k75kcl4";
|
||||
};
|
||||
|
||||
inherit buildInputs;
|
||||
configureFlags = [];
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
/* doConfigure should be specified separately */
|
||||
phaseNames = ["doMakeInstall"];
|
||||
|
||||
doUnpack = fullDepEntry (''
|
||||
unpackPhase = ''
|
||||
mkdir bmrsa
|
||||
cd 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
|
||||
'') ["minInit" "addInputs" "defEnsureDir"];
|
||||
|
||||
name = "bmrsa-"+version;
|
||||
meta = {
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "RSA utility";
|
||||
homepage = http://bmrsa.sourceforge.net/;
|
||||
license = licenses.gpl1;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -974,7 +974,7 @@ let
|
||||
inherit (pythonPackages) notify;
|
||||
};
|
||||
|
||||
bmrsa = builderDefsPackage (callPackage ../tools/security/bmrsa/11.nix) { };
|
||||
bmrsa = callPackage ../tools/security/bmrsa/11.nix { };
|
||||
|
||||
bogofilter = callPackage ../tools/misc/bogofilter { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user