add mpw
This commit is contained in:
parent
10054a676a
commit
2b1d851e3e
2 changed files with 44 additions and 0 deletions
42
pkgs/tools/security/mpw/default.nix
Normal file
42
pkgs/tools/security/mpw/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ stdenv, fetchurl, autoconf, automake, openssl, libxml2 }:
|
||||
|
||||
let
|
||||
scrypt_src = fetchurl {
|
||||
url = "http://masterpasswordapp.com/libscrypt-b12b554.tar.gz";
|
||||
sha256 = "02vz4i66v1acd15xjgki4ilmmp28m6a5603gi4hf8id3d3ndl9n7";
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
name = "mpw-2.1-cli4";
|
||||
|
||||
srcs = [
|
||||
(fetchurl {
|
||||
url = "https://ssl.masterpasswordapp.com/mpw-2.1-cli4-0-gf6b2287.tar.gz";
|
||||
sha256 = "141bzb3nj18rbnbpdvsri8cdwwwxz4d6akyhfa834542xf96b9vf";
|
||||
})
|
||||
scrypt_src
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
postUnpack = ''
|
||||
cp -R libscrypt-b12b554/* lib/scrypt
|
||||
'';
|
||||
|
||||
prePatch = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-I${libxml2}/include/libxml2";
|
||||
|
||||
buildInputs = [ autoconf automake openssl libxml2 ];
|
||||
|
||||
buildPhase = ''
|
||||
targets="mpw mpw-tests" ./build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv mpw $out/bin/mpw
|
||||
'';
|
||||
}
|
|
@ -2244,6 +2244,8 @@ let
|
|||
|
||||
mpage = callPackage ../tools/text/mpage { };
|
||||
|
||||
mpw = callPackage ../tools/security/mpw { };
|
||||
|
||||
mr = callPackage ../applications/version-management/mr { };
|
||||
|
||||
mrtg = callPackage ../tools/misc/mrtg { };
|
||||
|
|
Loading…
Reference in a new issue