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
49
pkgs/development/compilers/smlnj/bootstrap.nix
Normal file
49
pkgs/development/compilers/smlnj/bootstrap.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# This derivation should be redundant, now that regular smlnj works on Darwin,
|
||||
# and is preserved only for pre-existing direct usage. New use cases should
|
||||
# just use the regular smlnj derivation.
|
||||
|
||||
{ lib, stdenv, fetchurl, cpio, rsync, xar, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "smlnj-bootstrap";
|
||||
|
||||
version = "110.91";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://smlnj.cs.uchicago.edu/dist/working/${version}/smlnj-x86-${version}.pkg";
|
||||
sha256 = "12jn50h5jz0ac1vzld2mb94p1dyc8h0mk0hip2wj5xqk1dbzwxl4";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ cpio rsync ];
|
||||
|
||||
unpackPhase = ''
|
||||
${xar}/bin/xar -xf $src
|
||||
cd smlnj.pkg
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
cat Payload | gunzip -dc | cpio -i
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
rsync -av bin/ $out/bin/
|
||||
|
||||
mkdir -p $out/lib
|
||||
rsync -av lib/ $out/lib/
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/sml" --set "SMLNJ_HOME" "$out"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Compiler for the Standard ML '97 programming language";
|
||||
homepage = "http://www.smlnj.org";
|
||||
license = lib.licenses.free;
|
||||
platforms = lib.platforms.darwin;
|
||||
maintainers = [ lib.maintainers.jwiegley ];
|
||||
mainProgram = "sml";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue