mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
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];
|
|
};
|
|
}
|