pws: Init at 1.0.6

This commit is contained in:
Rafał Łasocha
2016-04-25 01:55:07 +02:00
parent ba71263545
commit bea31c31f2
6 changed files with 92 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
{ stdenv, lib, bundlerEnv, ruby, xsel, makeWrapper }:
stdenv.mkDerivation rec {
name = "pws-1.0.6";
env = bundlerEnv {
name = "${name}-gems";
inherit ruby;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
};
buildInputs = [ makeWrapper ];
phases = ["installPhase"];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/pws $out/bin/pws \
--set PATH '"${xsel}/bin/:$PATH"'
'';
meta = with lib; {
description = "Command-line password safe";
homepage = https://github.com/janlelis/pws;
license = licenses.mit;
maintainers = maintainers.swistak35;
platforms = platforms.unix;
};
}