Created
January 10, 2017 06:15
-
-
Save paperdigits/a0663416c58b96a0b9d2bee537ba5040 to your computer and use it in GitHub Desktop.
nix-shell environment for middleman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nix-shell -p bundler bundix | |
# bundler lock && bundler package --path vendor/cache --no-install && bundix && exit | |
# nix-shell | |
with (import <nixpkgs> {}); | |
let | |
env = bundlerEnv { | |
name = "test-package"; | |
inherit ruby; | |
gemfile = ./Gemfile; | |
lockfile = ./Gemfile.lock; | |
gemset = ./gemset.nix; | |
}; | |
in stdenv.mkDerivation { | |
name = "test-package"; | |
buildInputs = [ | |
env | |
ruby | |
zlib # needed by nokogiri | |
libiconv # needed by nokogiri | |
nodejs | |
]; | |
shellHook = '' | |
npm install bower | |
./node_modules/bower/bin/bower install | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment