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
46
pkgs/development/compilers/stalin/default.nix
Normal file
46
pkgs/development/compilers/stalin/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ fetchurl, lib, stdenv, ncompress, libX11 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "stalin";
|
||||
version = "0.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.ecn.purdue.edu/qobi/stalin.tar.Z";
|
||||
sha256 = "0lz8riccpigdixwf6dswwva6s4kxaz3dzxhkqhcxgwmffy30vw8s";
|
||||
};
|
||||
|
||||
buildInputs = [ ncompress libX11 ];
|
||||
|
||||
buildPhase = "./build ";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
cp stalin "$out/bin"
|
||||
|
||||
mkdir -p "$out/man/man1"
|
||||
cp stalin.1 "$out/man/man1"
|
||||
|
||||
mkdir -p "$out/share/emacs/site-lisp"
|
||||
cp stalin.el "$out/share/emacs/site-lisp"
|
||||
|
||||
mkdir -p "$out/doc/stalin-${version}"
|
||||
cp README "$out/doc/stalin-${version}"
|
||||
|
||||
mkdir -p "$out/share/stalin-${version}/include"
|
||||
cp "include/"* "$out/share/stalin-${version}/include"
|
||||
|
||||
substituteInPlace "$out/bin/stalin" \
|
||||
--replace "$PWD/include/stalin" "$out/share/stalin-${version}/include/stalin"
|
||||
substituteInPlace "$out/bin/stalin" \
|
||||
--replace "$PWD/include" "$out/share/stalin-${version}/include"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.ece.purdue.edu/~qobi/software.html";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
description = "An optimizing Scheme compiler";
|
||||
|
||||
maintainers = [ ];
|
||||
platforms = ["i686-linux"]; # doesn't want to work on 64-bit platforms
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue