From bea31c31f269594dc70b33e3d08e4cfad9c22019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20=C5=81asocha?= Date: Mon, 25 Apr 2016 01:55:07 +0200 Subject: [PATCH] pws: Init at 1.0.6 --- lib/maintainers.nix | 1 + pkgs/tools/misc/pws/Gemfile | 3 +++ pkgs/tools/misc/pws/Gemfile.lock | 19 ++++++++++++++++++ pkgs/tools/misc/pws/default.nix | 33 +++++++++++++++++++++++++++++++ pkgs/tools/misc/pws/gemset.nix | 34 ++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 6 files changed, 92 insertions(+) create mode 100644 pkgs/tools/misc/pws/Gemfile create mode 100644 pkgs/tools/misc/pws/Gemfile.lock create mode 100644 pkgs/tools/misc/pws/default.nix create mode 100644 pkgs/tools/misc/pws/gemset.nix 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 f4de0702e2b1..45f937bac19d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2930,6 +2930,8 @@ in proxytunnel = callPackage ../tools/misc/proxytunnel { }; + pws = callPackage ../tools/misc/pws { }; + cntlm = callPackage ../tools/networking/cntlm { }; pastebinit = callPackage ../tools/misc/pastebinit { };