From c04784dfd61cab73f23f51509a1b989415a8a3de Mon Sep 17 00:00:00 2001 From: _1126 Date: Fri, 29 May 2015 16:41:13 +0200 Subject: [PATCH 1/2] rofi-pass: initial commit. --- pkgs/applications/misc/rofi/pass.nix | 30 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/applications/misc/rofi/pass.nix diff --git a/pkgs/applications/misc/rofi/pass.nix b/pkgs/applications/misc/rofi/pass.nix new file mode 100644 index 000000000000..791cd995adba --- /dev/null +++ b/pkgs/applications/misc/rofi/pass.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchgit, wmctrl, xprop, xdotool}: + +stdenv.mkDerivation rec { + name = "rofi-${version}"; + version = "2015-05-29"; + + src = fetchgit { + url = "https://github.com/carnager/rofi-pass"; + rev = "92c26557ec4b0508c563d596291571bbef402899"; + sha256 = "17k9jmmckqaw75i0qsay2gc8mrjrs6jjfwfxaggspj912sflmjng"; + }; + + buildInputs = [ 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 = "Rofi script to work with password-store"; + homepage = https://github.com/carnager/rofi-pass; + maintainers = [stdenv.lib.maintainers._1126]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b43fb9c78961..f58cdf7b08ea 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12067,6 +12067,8 @@ let automake = automake114x; }; + rofi-pass = callPackage ../applications/misc/rofi/pass.nix { }; + rstudio = callPackage ../applications/editors/rstudio { }; rsync = callPackage ../applications/networking/sync/rsync { From 12bfdb5ead03c9e889e303c3360e01f00546d416 Mon Sep 17 00:00:00 2001 From: _1126 Date: Sat, 30 May 2015 10:44:47 +0200 Subject: [PATCH 2/2] rofi-pass: add rofi to deps, adjust description --- pkgs/applications/misc/rofi/pass.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/rofi/pass.nix b/pkgs/applications/misc/rofi/pass.nix index 791cd995adba..e20c511be91e 100644 --- a/pkgs/applications/misc/rofi/pass.nix +++ b/pkgs/applications/misc/rofi/pass.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, wmctrl, xprop, xdotool}: +{ stdenv, fetchgit, rofi, wmctrl, xprop, xdotool}: stdenv.mkDerivation rec { name = "rofi-${version}"; @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { sha256 = "17k9jmmckqaw75i0qsay2gc8mrjrs6jjfwfxaggspj912sflmjng"; }; - buildInputs = [ wmctrl xprop xdotool ]; + buildInputs = [ rofi wmctrl xprop xdotool ]; dontBuild = true; @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { ''; meta = { - description = "Rofi script to work with password-store"; + description = "A script to make rofi work with password-store"; homepage = https://github.com/carnager/rofi-pass; maintainers = [stdenv.lib.maintainers._1126]; };