hue-cli: use bundlerApp

gstqt5
Michael Fellinger 2019-04-30 17:23:38 +02:00
parent c9fd6099b4
commit 20a19eb202
3 changed files with 22 additions and 11 deletions

View File

@ -6,7 +6,7 @@ GEM
json
hue-lib (0.7.4)
json
json (2.1.0)
json (2.2.0)
PLATFORMS
ruby
@ -15,4 +15,4 @@ DEPENDENCIES
hue-cli
BUNDLED WITH
1.15.1
1.17.2

View File

@ -1,10 +1,15 @@
{ bundlerEnv, ruby }:
{ lib, bundlerApp }:
bundlerEnv rec {
name = "hue-cli-${version}";
version = (import gemset).hue-cli.version;
inherit ruby;
bundlerApp {
pname = "hue-cli";
gemdir = ./.;
gemset = ./gemset.nix;
exes = [ "hue" ];
meta = with lib; {
description = "Command line interface for controlling Philips Hue system's lights and bridge";
homepage = https://github.com/birkirb/hue-cli;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ manveru ];
};
}

View File

@ -1,6 +1,8 @@
{
hue-cli = {
dependencies = ["hue-lib" "json"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "10gjf59pamfy2m17fs271d9ffrg1194b1m6vxzn6p7smzry52h9z";
@ -10,6 +12,8 @@
};
hue-lib = {
dependencies = ["json"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1pyl8g8gisdhl79gbzvnddqrsbq0lmflzg7n6yi6xrp5b5290shz";
@ -18,11 +22,13 @@
version = "0.7.4";
};
json = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp";
sha256 = "0sx97bm9by389rbzv8r1f43h06xcz8vwi3h5jv074gvparql7lcx";
type = "gem";
};
version = "2.1.0";
version = "2.2.0";
};
}