forked from mirrors/nixpkgs
31 lines
780 B
Nix
31 lines
780 B
Nix
{ stdenv, fetchgit, rofi, wmctrl, xprop, xdotool}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rofi-pass-${version}";
|
|
version = "1.2";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/carnager/rofi-pass";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "1dlaplr18qady5g8sp8xgiqdw81mfx9iisihf8appr5s4sjm559h";
|
|
};
|
|
|
|
buildInputs = [ rofi wmctrl xprop xdotool ];
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -a $src/rofi-pass $out/bin/rofi-pass
|
|
|
|
mkdir -p $out/share/doc/rofi-pass/
|
|
cp -a $src/config.example $out/share/doc/rofi-pass/config.example
|
|
'';
|
|
|
|
meta = {
|
|
description = "A script to make rofi work with password-store";
|
|
homepage = https://github.com/carnager/rofi-pass;
|
|
maintainers = [stdenv.lib.maintainers.hiberno];
|
|
};
|
|
}
|