mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, pass, rofi, coreutils, utillinux, xdotool, gnugrep
|
|
, libnotify, pwgen, findutils, gawk, gnused, xclip, makeWrapper
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rofi-pass-${version}";
|
|
version = "1.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "carnager";
|
|
repo = "rofi-pass";
|
|
rev = version;
|
|
sha256 = "09wpkxg5b7xicdisgbhlfr8vs1iv7z9sc58pjl0p198yap57khq5";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -a rofi-pass $out/bin/rofi-pass
|
|
|
|
mkdir -p $out/share/doc/rofi-pass/
|
|
cp -a config.example $out/share/doc/rofi-pass/config.example
|
|
'';
|
|
|
|
wrapperPath = with stdenv.lib; makeBinPath [
|
|
coreutils
|
|
findutils
|
|
gawk
|
|
gnugrep
|
|
gnused
|
|
libnotify
|
|
pass
|
|
pwgen
|
|
rofi
|
|
utillinux
|
|
xclip
|
|
xdotool
|
|
];
|
|
|
|
fixupPhase = ''
|
|
patchShebangs $out/bin
|
|
|
|
wrapProgram $out/bin/rofi-pass \
|
|
--prefix PATH : "${wrapperPath}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "A script to make rofi work with password-store";
|
|
homepage = https://github.com/carnager/rofi-pass;
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
|
license = stdenv.lib.licenses.gpl3;
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|