uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
43
pkgs/development/ruby-modules/bundix/default.nix
Normal file
43
pkgs/development/ruby-modules/bundix/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ buildRubyGem, fetchFromGitHub, makeWrapper, lib, bundler, nix,
|
||||
nix-prefetch-git }:
|
||||
|
||||
buildRubyGem rec {
|
||||
inherit (bundler) ruby;
|
||||
|
||||
name = "${gemName}-${version}";
|
||||
gemName = "bundix";
|
||||
version = "2.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nix-community";
|
||||
repo = "bundix";
|
||||
rev = version;
|
||||
sha256 = "sha256-iMp6Yj7TSWDqge3Lw855/igOWdTIuFH1LGeIN/cpq7U=";
|
||||
};
|
||||
|
||||
buildInputs = [ ruby bundler ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram $out/bin/bundix \
|
||||
--prefix PATH : "${nix.out}/bin" \
|
||||
--prefix PATH : "${nix-prefetch-git.out}/bin" \
|
||||
--prefix PATH : "${bundler.out}/bin" \
|
||||
--set GEM_HOME "${bundler}/${bundler.ruby.gemPath}" \
|
||||
--set GEM_PATH "${bundler}/${bundler.ruby.gemPath}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
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 marsam zimbatm ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue