From 68727312087c1cd072fbf4564c66febc2b26d375 Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Sat, 5 Jan 2019 09:45:59 -0700 Subject: [PATCH 1/2] qMasterPassword: init at 1.2.2 --- maintainers/maintainer-list.nix | 5 +++ .../misc/qMasterPassword/default.nix | 34 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 41 insertions(+) create mode 100644 pkgs/applications/misc/qMasterPassword/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 94b2a285ee09..4a61033225e4 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4326,6 +4326,11 @@ github = "t184256"; name = "Alexander Sosedkin"; }; + tadeokondrak = { + email = "me@tadeo.ca"; + github = "tadeokondrak"; + name = "Tadeo Kondrak"; + }; tadfisher = { email = "tadfisher@gmail.com"; github = "tadfisher"; diff --git a/pkgs/applications/misc/qMasterPassword/default.nix b/pkgs/applications/misc/qMasterPassword/default.nix new file mode 100644 index 000000000000..4a5a16d26b54 --- /dev/null +++ b/pkgs/applications/misc/qMasterPassword/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchFromGitHub, qtbase, qmake, libX11, libXtst, openssl, libscrypt }: + +stdenv.mkDerivation rec { + name = "qMasterPassword"; + version = "1.2.2"; + + src = fetchFromGitHub { + owner = "bkueng"; + repo = name; + rev = "v${version}"; + sha256 = "0l0jarvfdc69rcjl2wa0ixq8gp3fmjsy9n84m38sxf3n9j2bh13c"; + }; + + buildInputs = [ qtbase libX11 libXtst openssl libscrypt ]; + nativeBuildInputs = [ qmake ]; + + installPhase = '' + mkdir -p $out/bin + mkdir -p $out/share/{applications,doc/qMasterPassword,icons/qmasterpassword,icons/hicolor/512x512/apps} + mv qMasterPassword $out/bin + mv data/qMasterPassword.desktop $out/share/applications + mv LICENSE README.md $out/share/doc/qMasterPassword + mv data/icons/app_icon.png $out/share/icons/hicolor/512x512/apps/qmasterpassword.png + mv data/icons/* $out/share/icons/qmasterpassword + ''; + + meta = with stdenv.lib; { + description = "Stateless Master Password Manager"; + homepage = https://github.com/bkueng/qMasterPassword; + license = licenses.gpl3; + maintainers = [ maintainers.tadeokondrak ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6c43ae2f354e..9eba33aecc80 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22741,6 +22741,8 @@ in putty = callPackage ../applications/networking/remote/putty { }; + qMasterPassword = libsForQt5.callPackage ../applications/misc/qMasterPassword { }; + redprl = callPackage ../applications/science/logic/redprl { }; retroarchBare = callPackage ../misc/emulators/retroarch { From c53fe37d0e7f9214353f193d18cffdcebfd9b1ae Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sun, 20 Jan 2019 14:13:39 -0500 Subject: [PATCH 2/2] qMasterPassword: fix on darwin, add meta.longDescription --- .../misc/qMasterPassword/default.nix | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/qMasterPassword/default.nix b/pkgs/applications/misc/qMasterPassword/default.nix index 4a5a16d26b54..e0a1e33dc628 100644 --- a/pkgs/applications/misc/qMasterPassword/default.nix +++ b/pkgs/applications/misc/qMasterPassword/default.nix @@ -14,7 +14,13 @@ stdenv.mkDerivation rec { buildInputs = [ qtbase libX11 libXtst openssl libscrypt ]; nativeBuildInputs = [ qmake ]; - installPhase = '' + # Upstream install is mostly defunct. It hardcodes target.path and doesn't + # install anything but the binary. + installPhase = if stdenv.isDarwin then '' + mkdir -p "$out"/{Applications,bin} + mv qMasterPassword.app "$out"/Applications/ + ln -s ../Applications/qMasterPassword.app/Contents/MacOS/qMasterPassword "$out"/bin/qMasterPassword + '' else '' mkdir -p $out/bin mkdir -p $out/share/{applications,doc/qMasterPassword,icons/qmasterpassword,icons/hicolor/512x512/apps} mv qMasterPassword $out/bin @@ -25,10 +31,18 @@ stdenv.mkDerivation rec { ''; meta = with stdenv.lib; { - description = "Stateless Master Password Manager"; - homepage = https://github.com/bkueng/qMasterPassword; - license = licenses.gpl3; - maintainers = [ maintainers.tadeokondrak ]; - platforms = platforms.all; + description = "Stateless Master Password Manager"; + longDescription = '' + Access all your passwords using only a single master password. But in + contrast to other managers it does not store any passwords: Unique + passwords are generated from the master password and a site name. This + means you automatically get different passwords for each account and + there is no password file that can be lost or get stolen. There is also + no need to trust any online password service. + ''; + homepage = https://github.com/bkueng/qMasterPassword; + license = licenses.gpl3; + maintainers = [ maintainers.tadeokondrak ]; + platforms = platforms.all; }; }