summaryrefslogtreecommitdiff
path: root/pkgs/tools/security/mpw/default.nix
diff options
context:
space:
mode:
authorNicolas B. Pierron <nicolas.b.pierron@gmail.com>2016-10-31 15:16:29 +0000
committerNicolas B. Pierron <nicolas.b.pierron@gmail.com>2016-10-31 15:16:29 +0000
commit59b5bbeae91109007e36a269a94cccc865dc5175 (patch)
tree1ee3d18aedace6d66034ea72fea571d20d8d0fee /pkgs/tools/security/mpw/default.nix
parentDo not use old stdenv version in faust wrap functions. (-8 alias, -15 unpatch... (diff)
parentMerge pull request #19675 from edwtjo/dictd-touchup (diff)
downloadnixpkgs-gitlab.intr/security-updates.tar.gz
Merge branch master into security-updatesorigin/security-updatesgitlab.intr/security-updates
This merge mostly take the changes made to the master branch. Some conflict happen in top-level/default.nix due to a reformating of the code of which is computing the fix-point. This merge fixes these issues by adding the pkgsIndex argument, needed to re-evaluate the fix-point with another set of packages, and also re-add the second fix-point made to support the dependencies.
Diffstat (limited to 'pkgs/tools/security/mpw/default.nix')
-rw-r--r--pkgs/tools/security/mpw/default.nix36
1 files changed, 20 insertions, 16 deletions
diff --git a/pkgs/tools/security/mpw/default.nix b/pkgs/tools/security/mpw/default.nix
index 813c7e5c06cd..e30866021da6 100644
--- a/pkgs/tools/security/mpw/default.nix
+++ b/pkgs/tools/security/mpw/default.nix
@@ -1,37 +1,41 @@
-{ stdenv, fetchurl, autoconf, automake, openssl, libxml2 }:
+{ stdenv, fetchzip, autoconf, automake, openssl, libxml2, fetchFromGitHub, ncurses }:
let
- scrypt_src = fetchurl {
- url = "http://masterpasswordapp.com/libscrypt-b12b554.tar.gz";
- sha256 = "02vz4i66v1acd15xjgki4ilmmp28m6a5603gi4hf8id3d3ndl9n7";
+ scrypt_src = fetchzip {
+ url = "http://www.tarsnap.com/scrypt/scrypt-1.2.0.tgz";
+ sha256 = "0ahylib2pimlhjcm566kpim6n16jci5v749xwdkr9ivgfjrv3xn4";
};
in stdenv.mkDerivation {
- name = "mpw-2.1-cli4";
+ name = "mpw-2.1-6834f36";
- srcs = [
- (fetchurl {
- url = "https://ssl.masterpasswordapp.com/mpw-2.1-cli4-0-gf6b2287.tar.gz";
- sha256 = "141bzb3nj18rbnbpdvsri8cdwwwxz4d6akyhfa834542xf96b9vf";
- })
- scrypt_src
- ];
-
- sourceRoot = ".";
+ src = fetchFromGitHub {
+ owner = "Lyndir";
+ repo = "MasterPassword";
+ rev = "6834f3689f5dfd4e59ad6959961d349c224977ee";
+ sha256 = "0zlpx3hb1y2l60hg961h05lb9yf3xb5phnyycvazah2674gkwb2p";
+ };
postUnpack = ''
- cp -R libscrypt-b12b554/* lib/scrypt
+ sourceRoot+=/MasterPassword/C
'';
prePatch = ''
patchShebangs .
+ mkdir lib/scrypt/src
+ cp -R --no-preserve=ownership ${scrypt_src}/* lib/scrypt/src
+ chmod +w -R lib/scrypt/src
+ substituteInPlace lib/scrypt/src/libcperciva/cpusupport/Build/cpusupport.sh \
+ --replace dirname "$(type -P dirname)"
+ substituteInPlace lib/scrypt/src/Makefile.in --replace "command -p mv" "mv"
'';
NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2";
- buildInputs = [ autoconf automake openssl libxml2 ];
+ buildInputs = [ autoconf automake openssl libxml2 ncurses ];
buildPhase = ''
+ substituteInPlace build --replace '"curses"' '"ncurses"'
targets="mpw mpw-tests" ./build
'';