nixpkgs/pkgs/tools/security/mpw/default.nix

40 lines
902 B
Nix
Raw Normal View History

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
'';
2017-11-07 18:12:48 +00:00
meta = with stdenv.lib; {
2018-05-01 04:03:23 +01:00
homepage = https://masterpasswordapp.com/;
2017-11-07 18:12:48 +00:00
description = "A stateless password management solution";
license = licenses.gpl3;
platforms = platforms.unix;
};
2015-09-30 01:56:32 +01:00
}