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