mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 17:10:48 +00:00
34 lines
697 B
Nix
34 lines
697 B
Nix
{ 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;
|
|
};
|
|
}
|