My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/misc/pws/default.nix

34 lines
788 B

{ stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript, xsel, makeWrapper }:
stdenv.mkDerivation rec {
pname = "pws";
version = (import ./gemset.nix).pws.version;
nativeBuildInputs = [ makeWrapper ];
dontUnpack = true;
installPhase = let
env = bundlerEnv {
name = "${pname}-gems";
inherit ruby;
gemdir = ./.;
};
in ''
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;
};
}