-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
Added ruby gem postrunner #113317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Added ruby gem postrunner #113317
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| source 'https://rubygems.org' | ||
| gem 'postrunner' | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| GEM | ||
| remote: https://rubygems.org/ | ||
| specs: | ||
| bindata (2.4.10) | ||
| fit4ruby (3.9.0) | ||
| bindata (~> 2.4.8) | ||
| mini_portile2 (2.7.1) | ||
| nokogiri (1.13.1) | ||
| mini_portile2 (~> 2.7.0) | ||
| racc (~> 1.4) | ||
| perobs (4.3.0) | ||
| postrunner (1.0.5) | ||
| fit4ruby (~> 3.9.0) | ||
| nokogiri | ||
| perobs (~> 4.3.0) | ||
| racc (1.6.0) | ||
|
|
||
| PLATFORMS | ||
| ruby | ||
|
|
||
| DEPENDENCIES | ||
| postrunner | ||
|
|
||
| BUNDLED WITH | ||
| 2.1.4 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # To run it call: nix-build -A postrunner.tests | ||
| { lib, bundlerApp, bundlerUpdateScript, callPackage }: | ||
|
|
||
| bundlerApp { | ||
| pname = "postrunner"; | ||
SuperSandro2000 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| gemdir = ./.; | ||
| exes = [ "postrunner" ]; | ||
| passthru.updateScript = bundlerUpdateScript "postrunner"; | ||
| passthru.tests = { | ||
| simple-execution = callPackage ./tests.nix { }; | ||
| }; | ||
|
|
||
|
|
||
| meta = with lib; { | ||
| description = "PostRunner is an application to manage FIT files produced by Garmin products"; | ||
| homepage = "https://github.com/scrapper/postrunner"; | ||
| license = licenses.gpl2Only; | ||
| maintainers = with maintainers; [ ngiger ]; | ||
| platforms = platforms.unix; | ||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| { | ||
| bindata = { | ||
| groups = ["default"]; | ||
| platforms = []; | ||
| source = { | ||
| remotes = ["https://rubygems.org"]; | ||
| sha256 = "06lqi4svq5qls9f7nnvd2zmjdqmi2sf82sq78ci5d78fq0z5x2vr"; | ||
| type = "gem"; | ||
| }; | ||
| version = "2.4.10"; | ||
| }; | ||
| fit4ruby = { | ||
| dependencies = ["bindata"]; | ||
| groups = ["default"]; | ||
| platforms = []; | ||
| source = { | ||
| remotes = ["https://rubygems.org"]; | ||
| sha256 = "1s30g027v0pvk53fgkszm1qj7mmljgam4gwd9wbljap7i4c32w7d"; | ||
| type = "gem"; | ||
| }; | ||
| version = "3.9.0"; | ||
| }; | ||
| mini_portile2 = { | ||
| groups = ["default"]; | ||
| platforms = []; | ||
| source = { | ||
| remotes = ["https://rubygems.org"]; | ||
| sha256 = "0d3ga166pahsxavzwj19yjj4lr13rw1vsb36s2qs8blcxigrdp6z"; | ||
| type = "gem"; | ||
| }; | ||
| version = "2.7.1"; | ||
| }; | ||
| nokogiri = { | ||
| dependencies = ["mini_portile2" "racc"]; | ||
| groups = ["default"]; | ||
| platforms = []; | ||
| source = { | ||
| remotes = ["https://rubygems.org"]; | ||
| sha256 = "1zqzawia52cdcmi55lp7v8jmiqyw7pcpwsksqlnirwfm3f7bnf11"; | ||
| type = "gem"; | ||
| }; | ||
| version = "1.13.1"; | ||
| }; | ||
| perobs = { | ||
| groups = ["default"]; | ||
| platforms = []; | ||
| source = { | ||
| remotes = ["https://rubygems.org"]; | ||
| sha256 = "0cygqn869fvlsiq27qfg5ak8dr7pagp8yqr34h0hvzg8h8yq9fjq"; | ||
| type = "gem"; | ||
| }; | ||
| version = "4.3.0"; | ||
| }; | ||
| postrunner = { | ||
| dependencies = ["fit4ruby" "nokogiri" "perobs"]; | ||
| groups = ["default"]; | ||
| platforms = []; | ||
| source = { | ||
| remotes = ["https://rubygems.org"]; | ||
| sha256 = "116xs2zn1178906ybpfll3f1k0jai2ccr3bxq1c175faiskdalxg"; | ||
| type = "gem"; | ||
| }; | ||
| version = "1.0.5"; | ||
| }; | ||
| racc = { | ||
| groups = ["default"]; | ||
| platforms = []; | ||
| source = { | ||
| remotes = ["https://rubygems.org"]; | ||
| sha256 = "0la56m0z26j3mfn1a9lf2l03qx1xifanndf9p3vx1azf6sqy7v9d"; | ||
| type = "gem"; | ||
| }; | ||
| version = "1.6.0"; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { runCommand, postrunner, stdenv }: | ||
|
|
||
| let | ||
| inherit (postrunner) name; | ||
| version = (import ./gemset.nix).postrunner.version; | ||
| in | ||
|
|
||
| runCommand "${name}-tests" { meta.timeout = 3; } | ||
| '' | ||
| # get version of installed program and compare with package version | ||
| if [[ `${postrunner}/bin/postrunner version` != *"${version}"* ]]; then | ||
| echo "Error: program version does not match package version" | ||
| exit 1 | ||
| fi | ||
| # run help | ||
| ${postrunner}/bin/postrunner --help | grep 'Usage postrunner .command. .options.' | ||
| echo All test for $name passed | ||
| # needed for Nix to register the command as successful | ||
| touch $out | ||
| '' |
Uh oh!
There was an error while loading. Please reload this page.