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
25
pkgs/development/compilers/ats/default.nix
Normal file
25
pkgs/development/compilers/ats/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, stdenv, fetchurl, gmp }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ats";
|
||||
version = "0.2.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/ats-lang/ats-lang-anairiats-${version}.tgz";
|
||||
sha256 = "0l2kj1fzhxwsklwmn5yj2vp9rmw4jg0b18bzwqz72bfi8i39736k";
|
||||
};
|
||||
|
||||
# this is necessary because atxt files usually include some .hats files
|
||||
patches = [ ./install-atsdoc-hats-files.patch ];
|
||||
buildInputs = [ gmp ];
|
||||
|
||||
meta = {
|
||||
description = "Functional programming language with dependent types";
|
||||
homepage = "http://www.ats-lang.org";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
# TODO: it looks like ATS requires gcc specifically. Someone with more knowledge
|
||||
# will need to experiment.
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ lib.maintainers.thoughtpolice ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
--- ats-lang-anairiats-0.2.11/Makefile 2013-12-10 00:43:52.000000000 +0100
|
||||
+++ ats-lang-anairiats-0.2.11/Makefile 2014-03-02 07:49:06.985837425 +0100
|
||||
@@ -97,7 +97,7 @@
|
||||
cd $(abs_top_srcdir)
|
||||
[ -d $(bindir2) ] || $(MKDIR_P) $(bindir2)
|
||||
$(MKDIR_P) $(ATSLIBHOME2)/bin
|
||||
- find ccomp contrib doc libats libc prelude -type d \
|
||||
+ find ccomp contrib doc libats libatsdoc libc prelude -type d \
|
||||
-exec $(MKDIR_P) $(ATSLIBHOME2)/\{} \; \
|
||||
-print
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
#
|
||||
# recursively install all files in the list except .svn control files.
|
||||
#
|
||||
- for d in ccomp/runtime contrib doc libats libc prelude; do \
|
||||
+ for d in ccomp/runtime contrib doc libats libatsdoc libc prelude; do \
|
||||
cd $(abs_top_srcdir) && \
|
||||
$(INSTALL) -d $(ATSLIBHOME2)/"$$d" && \
|
||||
find "$$d" -name .svn -prune -o -type f \
|
||||
@@ -143,6 +143,17 @@
|
||||
$(INSTALL) -m 755 ats_env.sh $(bindir2)/"$$b" && \
|
||||
echo [ats_env.sh] is installed into $(bindir2)/"$$b"; \
|
||||
done
|
||||
+#
|
||||
+# install atsdoc headers
|
||||
+#
|
||||
+ for f in \
|
||||
+ utils/atsdoc/SATS/*.sats utils/atsdoc/DATS/*.dats utils/atsdoc/HATS/*.hats; \
|
||||
+ do \
|
||||
+ [ -f "$$f" ] || continue; \
|
||||
+ cd $(abs_top_srcdir) && \
|
||||
+ $(INSTALL) -m 644 -D "$$f" $(ATSLIBHOME2)/"$$f" && \
|
||||
+ echo "$$f"; \
|
||||
+ done
|
||||
|
||||
install:: install_files
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue