diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-04-26 17:04:05 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-11-24 14:45:15 +0100 |
commit | 8b3c02c14ce0fd3d298cf8e6cbee259247f9f1e4 (patch) | |
tree | 9429b45333bc6f737a6f3e9af9500e5d088a3129 /pkgs/tools/security/bmrsa | |
parent | a799e1dff2e5134eb2d0f84fae1d095abf4fc8aa (diff) | |
download | nixlib-8b3c02c14ce0fd3d298cf8e6cbee259247f9f1e4.tar nixlib-8b3c02c14ce0fd3d298cf8e6cbee259247f9f1e4.tar.gz nixlib-8b3c02c14ce0fd3d298cf8e6cbee259247f9f1e4.tar.bz2 nixlib-8b3c02c14ce0fd3d298cf8e6cbee259247f9f1e4.tar.lz nixlib-8b3c02c14ce0fd3d298cf8e6cbee259247f9f1e4.tar.xz nixlib-8b3c02c14ce0fd3d298cf8e6cbee259247f9f1e4.tar.zst nixlib-8b3c02c14ce0fd3d298cf8e6cbee259247f9f1e4.zip |
bmrsa: reimplement using mkDerivation
Also set homepage & license (GPL according to the README, no license is actually included in the source repo).
Diffstat (limited to 'pkgs/tools/security/bmrsa')
-rw-r--r-- | pkgs/tools/security/bmrsa/11.nix | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/pkgs/tools/security/bmrsa/11.nix b/pkgs/tools/security/bmrsa/11.nix index 745f2a04cd37..343d48f91d72 100644 --- a/pkgs/tools/security/bmrsa/11.nix +++ b/pkgs/tools/security/bmrsa/11.nix @@ -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 = []; - - /* doConfigure should be specified separately */ - phaseNames = ["doMakeInstall"]; + buildInputs = [ unzip ]; - 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; }; } - |