bundixify consul-ui

This commit is contained in:
Charles Strahan 2014-11-18 03:06:56 +00:00
parent e1149b71cc
commit 44cdf4eac7
4 changed files with 90 additions and 8 deletions

View File

@ -0,0 +1,6 @@
# A sample Gemfile
source "https://rubygems.org"
gem "uglifier"
gem "sass"
gem "therubyracer"

View File

@ -0,0 +1,22 @@
GEM
remote: https://rubygems.org/
specs:
execjs (2.0.2)
json (1.8.1)
libv8 (3.16.14.3)
ref (1.0.5)
sass (3.3.6)
therubyracer (0.12.1)
libv8 (~> 3.16.14.0)
ref
uglifier (2.5.0)
execjs (>= 0.3.0)
json (>= 1.8.0)
PLATFORMS
ruby
DEPENDENCIES
sass
therubyracer
uglifier

View File

@ -1,8 +1,9 @@
{ stdenv, lib, go, fetchgit, fetchhg, fetchbzr, fetchFromGitHub { stdenv, lib, go, fetchgit, fetchhg, fetchbzr, fetchFromGitHub
, ruby, rubyPackages, nodejs }: , ruby, rubyPackages, nodejs, loadRubyEnv }:
let let
version = "0.4.0"; version = "0.4.0";
rubyEnv = loadRubyEnv { gemset = ./gemset.nix; };
in in
with lib; with lib;
@ -13,13 +14,7 @@ stdenv.mkDerivation {
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub; inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
}; };
buildInputs = [ go ruby rubyPackages.sass nodejs ]; buildInputs = [ go ruby rubyEnv.sass rubyEnv.uglifier nodejs ];
configurePhase = flip concatMapStrings
(with rubyPackages; [ execjs json minitest rake rdoc sass uglifier ])
(gem: ''
export GEM_PATH="$GEM_PATH:${gem}/${ruby.gemPath}"
'');
buildPhase = '' buildPhase = ''
# Build consul binary # Build consul binary

View File

@ -0,0 +1,59 @@
{
execjs = {
version = "2.0.2";
src = {
type = "gem";
sha256 = "167kbkyql7nvvwjsgdw5z8j66ngq7kc59gxfwsxhqi5fl1z0jbjs";
};
};
json = {
version = "1.8.1";
src = {
type = "gem";
sha256 = "0002bsycvizvkmk1jyv8px1hskk6wrjfk4f7x5byi8gxm6zzn6wn";
};
};
libv8 = {
version = "3.16.14.3";
src = {
type = "gem";
sha256 = "1arjjbmr9zxkyv6pdrihsz1p5cadzmx8308vgfvrhm380ccgridm";
};
};
ref = {
version = "1.0.5";
src = {
type = "gem";
sha256 = "19qgpsfszwc2sfh6wixgky5agn831qq8ap854i1jqqhy1zsci3la";
};
};
sass = {
version = "3.3.6";
src = {
type = "gem";
sha256 = "0ra0kxx52cgyrq6db7a1vysk984ilshbx40bcf527k8b3fha6k5r";
};
};
therubyracer = {
version = "0.12.1";
src = {
type = "gem";
sha256 = "106fqimqyaalh7p6czbl5m2j69z8gv7cm10mjb8bbb2p2vlmqmi6";
};
dependencies = [
"libv8"
"ref"
];
};
uglifier = {
version = "2.5.0";
src = {
type = "gem";
sha256 = "0b9kxgyg8cv3g1bp6casndfzfy71jd9xyjxwng0lj90vzqrgjp20";
};
dependencies = [
"execjs"
"json"
];
};
}