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

34 lines
778 B
Nix
Raw Normal View History

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