2017-11-07 18:12:48 +00:00
|
|
|
{ stdenv, cmake, fetchFromGitHub, ncurses, libsodium, json_c }:
|
2015-09-30 01:56:32 +01:00
|
|
|
|
2017-11-07 18:12:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mpw-2.6-f8043ae";
|
2015-09-30 01:56:32 +01:00
|
|
|
|
2016-10-30 11:15:26 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Lyndir";
|
|
|
|
repo = "MasterPassword";
|
2017-11-07 18:12:48 +00:00
|
|
|
rev = "f8043ae16d73ddfb205aadd25c35cd9c5e95b228";
|
|
|
|
sha256 = "0hy02ri7y3sca85z3ff5i68crwav5cjd7rrdqj7jrnpp1bw4yapi";
|
2016-10-30 11:15:26 +00:00
|
|
|
};
|
2015-09-30 01:56:32 +01:00
|
|
|
|
|
|
|
postUnpack = ''
|
2017-11-07 18:12:48 +00:00
|
|
|
sourceRoot+=/platform-independent/cli-c
|
2015-09-30 01:56:32 +01:00
|
|
|
'';
|
|
|
|
|
2017-11-07 18:12:48 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace curses ncurses
|
|
|
|
echo ${name} > VERSION
|
2015-09-30 01:56:32 +01:00
|
|
|
'';
|
|
|
|
|
2017-11-07 18:12:48 +00:00
|
|
|
dontUseCmakeBuildDir = true;
|
2015-09-30 01:56:32 +01:00
|
|
|
|
2017-11-07 18:12:48 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2015-09-30 01:56:32 +01:00
|
|
|
|
2017-11-07 18:12:48 +00:00
|
|
|
buildInputs = [ ncurses libsodium json_c ];
|
2015-09-30 01:56:32 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv mpw $out/bin/mpw
|
|
|
|
'';
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2017-11-07 18:12:48 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://masterpasswordapp.com/;
|
|
|
|
description = "A stateless password management solution";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2015-09-30 01:56:32 +01:00
|
|
|
}
|