diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 63b79ccab0b5..6dad71ad5644 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -340,6 +340,7 @@ spwhitt = "Spencer Whitt "; stephenmw = "Stephen Weinberg "; steveej = "Stefan Junker "; + swistak35 = "Rafał Łasocha "; szczyp = "Szczyp "; sztupi = "Attila Sztupak "; taeer = "Taeer Bar-Yam "; diff --git a/pkgs/tools/misc/pws/Gemfile b/pkgs/tools/misc/pws/Gemfile new file mode 100644 index 000000000000..43b6b931860c --- /dev/null +++ b/pkgs/tools/misc/pws/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem 'pws' diff --git a/pkgs/tools/misc/pws/Gemfile.lock b/pkgs/tools/misc/pws/Gemfile.lock new file mode 100644 index 000000000000..c9cf6a3157c1 --- /dev/null +++ b/pkgs/tools/misc/pws/Gemfile.lock @@ -0,0 +1,19 @@ +GEM + remote: https://rubygems.org/ + specs: + clipboard (1.0.6) + paint (1.0.1) + pbkdf2-ruby (0.2.1) + pws (1.0.6) + clipboard (~> 1.0.5) + paint (>= 0.8.7) + pbkdf2-ruby + +PLATFORMS + ruby + +DEPENDENCIES + pws + +BUNDLED WITH + 1.11.2 diff --git a/pkgs/tools/misc/pws/default.nix b/pkgs/tools/misc/pws/default.nix new file mode 100644 index 000000000000..811e57c0a084 --- /dev/null +++ b/pkgs/tools/misc/pws/default.nix @@ -0,0 +1,33 @@ +{ 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; + }; +} diff --git a/pkgs/tools/misc/pws/gemset.nix b/pkgs/tools/misc/pws/gemset.nix new file mode 100644 index 000000000000..2aa26f9a0202 --- /dev/null +++ b/pkgs/tools/misc/pws/gemset.nix @@ -0,0 +1,34 @@ +{ + clipboard = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "11r5xi1fhll4qxna2sg83vmnphjzqc4pzwdnmc5qwvdps5jbz7cq"; + type = "gem"; + }; + version = "1.0.6"; + }; + paint = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1z1fqyyc2jiv6yabv467h652cxr2lmxl5gqqg7p14y28kdqf0nhj"; + type = "gem"; + }; + version = "1.0.1"; + }; + pbkdf2-ruby = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "014vb5k8klvh192idqrda2571dxsp7ai2v72hj265zd2awy0zyg1"; + type = "gem"; + }; + version = "0.2.1"; + }; + pws = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1brn123mmrw09ji60sa13ylgfjjp7aicz07hm9h0dc3162zlw5wn"; + type = "gem"; + }; + version = "1.0.6"; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f332a833a374..3e634ac0f473 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2932,6 +2932,8 @@ in proxytunnel = callPackage ../tools/misc/proxytunnel { }; + pws = callPackage ../tools/misc/pws { }; + cntlm = callPackage ../tools/networking/cntlm { }; pastebinit = callPackage ../tools/misc/pastebinit { };