mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pass-wayland
|
|
, coreutils
|
|
, gnugrep
|
|
, libnotify
|
|
, pwgen
|
|
, findutils
|
|
, makeWrapper
|
|
, wl-clipboard
|
|
, wtype
|
|
, wofi
|
|
, extensions ? exts: []
|
|
}:
|
|
|
|
let
|
|
wrapperPath = lib.makeBinPath [
|
|
coreutils
|
|
findutils
|
|
gnugrep
|
|
libnotify
|
|
pwgen
|
|
wofi
|
|
wl-clipboard
|
|
wtype
|
|
(pass-wayland.withExtensions extensions)
|
|
];
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "wofi-pass";
|
|
version = "24.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "schmidtandreas";
|
|
repo = "wofi-pass";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-OtUz0YLKuEzA4kv+llrOll0L84nMTkYH6JPxrkQKB6I=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
install -Dm755 wofi-pass -t $out/bin
|
|
install -Dm755 wofi-pass.conf -t $out/share/doc/wofi-pass/wofi-pass.conf
|
|
'';
|
|
|
|
fixupPhase = ''
|
|
patchShebangs $out/bin
|
|
|
|
wrapProgram $out/bin/wofi-pass \
|
|
--prefix PATH : "${wrapperPath}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Script to make wofi work with password-store";
|
|
homepage = "https://github.com/schmidtandreas/wofi-pass";
|
|
maintainers = with lib.maintainers; [ akechishiro ];
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = with lib.platforms; linux;
|
|
mainProgram = "wofi-pass";
|
|
};
|
|
}
|