From f0ca02815c5a6a028569a38f491a41ab784b6c19 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Mon, 25 Nov 2024 22:47:25 +0100 Subject: [PATCH] prs: add skim to PATH --- flake.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index 162fea3..f843959 100644 --- a/flake.nix +++ b/flake.nix @@ -246,6 +246,8 @@ cargoHash ? "sha256-T57RqIzurpYLHyeFhvqxmC+DoB6zUf+iTu1YkMmwtp8=", src, version, + makeWrapper, + skim, }: rustPlatform.buildRustPackage rec { @@ -258,6 +260,7 @@ installShellFiles pkg-config python3 + makeWrapper ]; cargoBuildFlags = [ @@ -277,6 +280,11 @@ done ''; + postFixup = '' + wrapProgram $out/bin/prs \ + --prefix PATH : ${lib.makeBinPath [ skim ]} + ''; + meta = with lib; { description = "Secure, fast & convenient password manager CLI using GPG and git to sync"; homepage = "https://gitlab.com/timvisee/prs";