lolcat: use bundlerApp, fix audit warning

This commit is contained in:
Michael Fellinger 2019-05-03 11:18:10 +02:00
parent 6e8c78e225
commit df77c19f75
4 changed files with 20 additions and 17 deletions

View File

@ -1,2 +1,2 @@
source "http://rubygems.org" source "https://rubygems.org"
gem "lolcat" gem "lolcat"

View File

@ -1,5 +1,5 @@
GEM GEM
remote: http://rubygems.org/ remote: https://rubygems.org/
specs: specs:
lolcat (99.9.69) lolcat (99.9.69)
manpages (~> 0.6.1) manpages (~> 0.6.1)
@ -16,4 +16,4 @@ DEPENDENCIES
lolcat lolcat
BUNDLED WITH BUNDLED WITH
1.16.3 1.17.2

View File

@ -1,19 +1,14 @@
{ lib, bundlerEnv, ruby }: { lib, bundlerApp }:
bundlerEnv rec { bundlerApp {
name = "${pname}-${version}";
pname = "lolcat"; pname = "lolcat";
version = (import ./gemset.nix).lolcat.version;
inherit ruby;
# expects Gemfile, Gemfile.lock and gemset.nix in the same directory
gemdir = ./.; gemdir = ./.;
exes = [ "lolcat" ];
meta = with lib; { meta = with lib; {
description = "A rainbow version of cat"; description = "A rainbow version of cat";
homepage = https://github.com/busyloop/lolcat; homepage = https://github.com/busyloop/lolcat;
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ StillerHarpo ]; maintainers = with maintainers; [ StillerHarpo manveru ];
}; };
} }

View File

@ -1,32 +1,40 @@
{ {
lolcat = { lolcat = {
dependencies = ["manpages" "optimist" "paint"]; dependencies = ["manpages" "optimist" "paint"];
groups = ["default"];
platforms = [];
source = { source = {
remotes = ["http://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0d1yh2ikyhyh7am4qznd6fzv2pyvk82xrnsrsbbyxzcqfz9x6aa9"; sha256 = "0d1yh2ikyhyh7am4qznd6fzv2pyvk82xrnsrsbbyxzcqfz9x6aa9";
type = "gem"; type = "gem";
}; };
version = "99.9.69"; version = "99.9.69";
}; };
manpages = { manpages = {
groups = ["default"];
platforms = [];
source = { source = {
remotes = ["http://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "11p6ilnfda6af15ks3xiz2pr0hkvdvadnk1xm4ahqlf84dld3fnd"; sha256 = "11p6ilnfda6af15ks3xiz2pr0hkvdvadnk1xm4ahqlf84dld3fnd";
type = "gem"; type = "gem";
}; };
version = "0.6.1"; version = "0.6.1";
}; };
optimist = { optimist = {
groups = ["default"];
platforms = [];
source = { source = {
remotes = ["http://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "05jxrp3nbn5iilc1k7ir90mfnwc5abc9h78s5rpm3qafwqxvcj4j"; sha256 = "05jxrp3nbn5iilc1k7ir90mfnwc5abc9h78s5rpm3qafwqxvcj4j";
type = "gem"; type = "gem";
}; };
version = "3.0.0"; version = "3.0.0";
}; };
paint = { paint = {
groups = ["default"];
platforms = [];
source = { source = {
remotes = ["http://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0ldb269l3pzkihmsws19cr9h3l6naw8c2fqpav8ck3nllnyiv7r2"; sha256 = "0ldb269l3pzkihmsws19cr9h3l6naw8c2fqpav8ck3nllnyiv7r2";
type = "gem"; type = "gem";
}; };