nixpkgs/pkgs/applications/misc/qMasterPassword/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
2.3 KiB
Nix
Raw Normal View History

2022-11-07 17:06:08 +03:00
{ lib
, stdenv
, fetchFromGitHub
, libX11
, libXtst
, qmake
, qtbase
, qttools
, qtwayland
, openssl
, libscrypt
, wrapQtAppsHook
}:
2019-01-05 19:45:59 +03:00
2022-11-07 17:06:08 +03:00
stdenv.mkDerivation rec {
2022-02-09 19:02:25 +03:00
pname = "qMasterPassword";
2022-11-07 17:05:46 +03:00
version = "1.2.4";
2019-01-05 19:45:59 +03:00
src = fetchFromGitHub {
owner = "bkueng";
2022-02-09 19:02:25 +03:00
repo = pname;
rev = "v${version}";
2022-11-07 17:05:46 +03:00
sha256 = "sha256-VQ1ZkXaZ5sUbtWa/GreTr5uXvnZ2Go6owJ2ZBK25zns=";
2019-01-05 19:45:59 +03:00
};
2022-11-07 17:06:08 +03:00
buildInputs = [ qtbase qtwayland libX11 libXtst openssl libscrypt ];
nativeBuildInputs = [ qmake qttools wrapQtAppsHook ];
2019-01-05 19:45:59 +03:00
# 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 ''
2019-01-05 19:45:59 +03:00
mkdir -p $out/bin
2022-01-29 15:57:48 +03:00
mkdir -p $out/share/{applications,doc/qMasterPassword,icons/qmasterpassword,icons/hicolor/512x512/apps,qMasterPassword/translations}
2019-01-05 19:45:59 +03:00
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
2022-01-29 15:57:48 +03:00
lrelease ./data/translations/translation_de.ts
lrelease ./data/translations/translation_pl.ts
mv ./data/translations/translation_de.qm $out/share/qMasterPassword/translations/translation_de.qm
mv ./data/translations/translation_pl.qm $out/share/qMasterPassword/translations/translation_pl.qm
2019-01-05 19:45:59 +03:00
'';
meta = with lib; {
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 = with lib.maintainers; [ tadeokondrak teutat3s ];
platforms = platforms.all;
2019-01-05 19:45:59 +03:00
};
}