mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
67 lines
1.3 KiB
Nix
67 lines
1.3 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.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "schmidtandreas";
|
|
repo = "wofi-pass";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-oRGDhr28UQjr+g//fWcLKWXqKSsRUWtdh39UMFSaPfw=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|