about summary refs log tree commit diff
path: root/pkgs/tools/security/passage
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/security/passage')
-rw-r--r--pkgs/tools/security/passage/darwin-getopt-path.patch12
-rw-r--r--pkgs/tools/security/passage/default.nix80
2 files changed, 0 insertions, 92 deletions
diff --git a/pkgs/tools/security/passage/darwin-getopt-path.patch b/pkgs/tools/security/passage/darwin-getopt-path.patch
deleted file mode 100644
index 0225f05c19d0..000000000000
--- a/pkgs/tools/security/passage/darwin-getopt-path.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh
-index 9a1fda8..4f7ce3d 100644
---- a/src/platform/darwin.sh
-+++ b/src/platform/darwin.sh
-@@ -39,6 +39,6 @@ qrcode() {
- 	fi
- }
- 
--GETOPT="$({ test -x /usr/local/opt/gnu-getopt/bin/getopt && echo /usr/local/opt/gnu-getopt; } || brew --prefix gnu-getopt 2>/dev/null || { command -v port &>/dev/null && echo /opt/local; } || echo /usr/local)/bin/getopt"
-+GETOPT="@getopt@/bin/getopt"
- SHRED="srm -f -z"
- BASE64="openssl base64"
diff --git a/pkgs/tools/security/passage/default.nix b/pkgs/tools/security/passage/default.nix
deleted file mode 100644
index 1d6bdfa225aa..000000000000
--- a/pkgs/tools/security/passage/default.nix
+++ /dev/null
@@ -1,80 +0,0 @@
-{ lib
-, stdenv
-, fetchFromGitHub
-, makeBinaryWrapper
-, substituteAll
-, age
-, getopt
-, coreutils
-, findutils
-, gnugrep
-, gnused
-, qrencode ? null
-, wl-clipboard ? null
-, git ? null
-, xclip ? null
-# Used to pretty-print list of all stored passwords, but is not needed to fetch
-# or store password by its name. Most users would want this dependency.
-, tree ? null
-}:
-
-stdenv.mkDerivation {
-  pname = "passage";
-  version = "unstable-2022-05-01";
-
-  src = fetchFromGitHub {
-    owner = "FiloSottile";
-    repo = "passage";
-    rev = "1262d308f09db9b243513a428ab4b8fb1c30d31d";
-    sha256 = "1val8wl9kzlxj4i1rrh2iiyf97w9akffvr0idvbkdb09hfzz4lz8";
-  };
-
-  patches = [
-    (substituteAll {
-      src = ./darwin-getopt-path.patch;
-      inherit getopt;
-    })
-  ];
-
-  nativeBuildInputs = [ makeBinaryWrapper ];
-
-  extraPath = lib.makeBinPath [
-    age
-    coreutils
-    findutils
-    git
-    gnugrep
-    gnused
-    qrencode
-    tree
-    wl-clipboard
-    xclip
-  ];
-
-  # Using $0 is bad, it causes --help to mention ".passage-wrapped".
-  postInstall = ''
-    substituteInPlace $out/bin/passage --replace 'PROGRAM="''${0##*/}"' 'PROGRAM=passage'
-    wrapProgram $out/bin/passage --prefix PATH : $extraPath --argv0 $pname
-  '';
-
-  installFlags = [ "PREFIX=$(out)" "WITH_ALLCOMP=yes" ];
-
-  meta = with lib; {
-    description = "Stores, retrieves, generates, and synchronizes passwords securely";
-    homepage    = "https://github.com/FiloSottile/passage";
-    license     = licenses.gpl2Plus;
-    maintainers = with maintainers; [ kaction ma27 ];
-    platforms   = platforms.unix;
-    mainProgram = "passage";
-
-    longDescription = ''
-      passage is a fork of password-store (https://www.passwordstore.org) that uses
-      age (https://age-encryption.org) as a backend instead of GnuPG.
-
-      It keeps passwords inside age(1) encrypted files inside a simple
-      directory tree and provides a series of commands for manipulating the
-      password store, allowing the user to add, remove, edit and synchronize
-      passwords.
-    '';
-  };
-}