diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-03-15 20:49:07 +0000 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-03-19 22:06:26 +0000 |
commit | 5a64bc44ead7099857e5ecec339e87a80a60796e (patch) | |
tree | 8130746780b4d7c7e636e4e70433418b86951478 /pkgs/development/ruby-modules/bundix | |
parent | 3547ffa89fec408e93627c03f8bf0b3c98bde0e2 (diff) |
move all ruby modules to development/ruby-modules
Diffstat (limited to 'pkgs/development/ruby-modules/bundix')
-rw-r--r-- | pkgs/development/ruby-modules/bundix/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/ruby-modules/bundix/default.nix b/pkgs/development/ruby-modules/bundix/default.nix new file mode 100644 index 0000000000000..ac3abcdcdf7b9 --- /dev/null +++ b/pkgs/development/ruby-modules/bundix/default.nix @@ -0,0 +1,44 @@ +{ buildRubyGem, lib, bundler, ruby, nix, nix-prefetch-git }: + +buildRubyGem rec { + inherit ruby; + + name = "${gemName}-${version}"; + gemName = "bundix"; + version = "2.0.8"; + + sha256 = "0ikpf2g01izadjpdnc4k2rb9v4g11f1jk2y5alxc7n7rxjkwdc66"; + + buildInputs = [bundler]; + + postInstall = '' + substituteInPlace $GEM_HOME/gems/${gemName}-${version}/lib/bundix.rb \ + --replace \ + "'nix-instantiate'" \ + "'${nix}/bin/nix-instantiate'" \ + --replace \ + "'nix-hash'" \ + "'${nix}/bin/nix-hash'" \ + --replace \ + "'nix-prefetch-url'" \ + "'${nix}/bin/nix-prefetch-url'" \ + --replace \ + "'nix-prefetch-git'" \ + "'${nix-prefetch-git}/bin/nix-prefetch-git'" + ''; + + meta = { + inherit version; + description = "Creates Nix packages from Gemfiles"; + longDescription = '' + This is a tool that converts Gemfile.lock files to nix expressions. + + The output is then usable by the bundlerEnv derivation to list all the + dependencies of a ruby package. + ''; + homepage = "https://github.com/manveru/bundix"; + license = "MIT"; + maintainers = with lib.maintainers; [ manveru zimbatm ]; + platforms = lib.platforms.all; + }; +} |