Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

lolcat: use bundlerApp, fix audit warning

+20 -17
+2 -2
pkgs/tools/misc/lolcat/Gemfile
··· 1 - source "http://rubygems.org" 2 - gem "lolcat" 1 + source "https://rubygems.org" 2 + gem "lolcat"
+2 -2
pkgs/tools/misc/lolcat/Gemfile.lock
··· 1 1 GEM 2 - remote: http://rubygems.org/ 2 + remote: https://rubygems.org/ 3 3 specs: 4 4 lolcat (99.9.69) 5 5 manpages (~> 0.6.1) ··· 16 16 lolcat 17 17 18 18 BUNDLED WITH 19 - 1.16.3 19 + 1.17.2
+4 -9
pkgs/tools/misc/lolcat/default.nix
··· 1 - { lib, bundlerEnv, ruby }: 1 + { lib, bundlerApp }: 2 2 3 - bundlerEnv rec { 4 - name = "${pname}-${version}"; 3 + bundlerApp { 5 4 pname = "lolcat"; 6 - version = (import ./gemset.nix).lolcat.version; 7 - 8 - inherit ruby; 9 - 10 - # expects Gemfile, Gemfile.lock and gemset.nix in the same directory 11 5 gemdir = ./.; 6 + exes = [ "lolcat" ]; 12 7 13 8 meta = with lib; { 14 9 description = "A rainbow version of cat"; 15 10 homepage = https://github.com/busyloop/lolcat; 16 11 license = licenses.bsd3; 17 - maintainers = with maintainers; [ StillerHarpo ]; 12 + maintainers = with maintainers; [ StillerHarpo manveru ]; 18 13 }; 19 14 }
+12 -4
pkgs/tools/misc/lolcat/gemset.nix
··· 1 1 { 2 2 lolcat = { 3 3 dependencies = ["manpages" "optimist" "paint"]; 4 + groups = ["default"]; 5 + platforms = []; 4 6 source = { 5 - remotes = ["http://rubygems.org"]; 7 + remotes = ["https://rubygems.org"]; 6 8 sha256 = "0d1yh2ikyhyh7am4qznd6fzv2pyvk82xrnsrsbbyxzcqfz9x6aa9"; 7 9 type = "gem"; 8 10 }; 9 11 version = "99.9.69"; 10 12 }; 11 13 manpages = { 14 + groups = ["default"]; 15 + platforms = []; 12 16 source = { 13 - remotes = ["http://rubygems.org"]; 17 + remotes = ["https://rubygems.org"]; 14 18 sha256 = "11p6ilnfda6af15ks3xiz2pr0hkvdvadnk1xm4ahqlf84dld3fnd"; 15 19 type = "gem"; 16 20 }; 17 21 version = "0.6.1"; 18 22 }; 19 23 optimist = { 24 + groups = ["default"]; 25 + platforms = []; 20 26 source = { 21 - remotes = ["http://rubygems.org"]; 27 + remotes = ["https://rubygems.org"]; 22 28 sha256 = "05jxrp3nbn5iilc1k7ir90mfnwc5abc9h78s5rpm3qafwqxvcj4j"; 23 29 type = "gem"; 24 30 }; 25 31 version = "3.0.0"; 26 32 }; 27 33 paint = { 34 + groups = ["default"]; 35 + platforms = []; 28 36 source = { 29 - remotes = ["http://rubygems.org"]; 37 + remotes = ["https://rubygems.org"]; 30 38 sha256 = "0ldb269l3pzkihmsws19cr9h3l6naw8c2fqpav8ck3nllnyiv7r2"; 31 39 type = "gem"; 32 40 };