1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00
nixpkgs/pkgs/tools/misc/pws/default.nix

32 lines
633 B
Nix
Raw Normal View History

2016-04-25 00:55:07 +01:00
{ stdenv, lib, bundlerEnv, ruby, xsel, makeWrapper }:
stdenv.mkDerivation rec {
name = "pws-1.0.6";
env = bundlerEnv {
name = "${name}-gems";
inherit ruby;
2017-01-17 23:21:16 +00:00
gemdir = ./.;
2016-04-25 00:55:07 +01:00
};
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 ];
2016-04-25 00:55:07 +01:00
platforms = platforms.unix;
};
}