1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 20:36:27 +00:00
nixpkgs/pkgs/tools/misc/pws/default.nix
2019-07-22 12:02:47 +00:00

34 lines
758 B
Nix

{ stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript, xsel, makeWrapper }:
stdenv.mkDerivation rec {
name = "pws-${(import ./gemset.nix).pws.version}";
env = bundlerEnv {
name = "${name}-gems";
inherit ruby;
gemdir = ./.;
};
buildInputs = [ makeWrapper ];
phases = ["installPhase"];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/pws $out/bin/pws \
--set PATH '"${xsel}/bin/:$PATH"'
'';
passthru.updateScript = bundlerUpdateScript "pws";
meta = with lib; {
description = "Command-line password safe";
homepage = https://github.com/janlelis/pws;
license = licenses.mit;
maintainers = with maintainers; [ swistak35 nicknovitski ];
platforms = platforms.unix;
};
}