Merge staging-next into staging
This commit is contained in:
47
pkgs/development/compilers/carp/default.nix
Normal file
47
pkgs/development/compilers/carp/default.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ stdenv, fetchFromGitHub, makeWrapper, clang, haskellPackages }:
|
||||
|
||||
haskellPackages.mkDerivation rec {
|
||||
|
||||
pname = "carp";
|
||||
version = "unstable-2018-09-15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "carp-lang";
|
||||
repo = "Carp";
|
||||
rev = "cf9286c35cab1c170aa819f7b30b5871b9e812e6";
|
||||
sha256 = "1k6kdxbbaclhi40b9p3fgbkc1x6pc4v0029xjm6gny6pcdci2cli";
|
||||
};
|
||||
|
||||
buildDepends = [ makeWrapper ];
|
||||
|
||||
executableHaskellDepends = with haskellPackages; [
|
||||
HUnit blaze-markup blaze-html split cmdargs
|
||||
];
|
||||
|
||||
isExecutable = true;
|
||||
|
||||
# The carp executable must know where to find its core libraries and other
|
||||
# files. Set the environment variable CARP_DIR so that it points to the root
|
||||
# of the Carp repo. See:
|
||||
# https://github.com/carp-lang/Carp/blob/master/docs/Install.md#setting-the-carp_dir
|
||||
#
|
||||
# Also, clang must be available run-time because carp is compiled to C which
|
||||
# is then compiled with clang.
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/carp \
|
||||
--set CARP_DIR $src \
|
||||
--prefix PATH : ${clang}/bin
|
||||
wrapProgram $out/bin/carp-header-parse \
|
||||
--set CARP_DIR $src \
|
||||
--prefix PATH : ${clang}/bin
|
||||
'';
|
||||
|
||||
description = "A statically typed lisp, without a GC, for real-time applications";
|
||||
homepage = https://github.com/carp-lang/Carp;
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
maintainers = with stdenv.lib.maintainers; [ jluttine ];
|
||||
|
||||
# Windows not (yet) supported.
|
||||
platforms = with stdenv.lib.platforms; unix ++ darwin;
|
||||
|
||||
}
|
||||
@@ -107,26 +107,10 @@ let
|
||||
|
||||
|
||||
/*
|
||||
This is not a core Elm package, and it's hosted on GitHub.
|
||||
To update, run:
|
||||
|
||||
cabal2nix --jailbreak --revision refs/tags/foo http://github.com/avh4/elm-format > packages/elm-format.nix
|
||||
|
||||
where foo is a tag for a new version, for example "0.8.0".
|
||||
The elm-format expression is updated via a script in the https://github.com/avh4/elm-format repo:
|
||||
`pacakge/nix/build.sh`
|
||||
*/
|
||||
elm-format = overrideCabal (self.callPackage ./packages/elm-format.nix { }) (drv: {
|
||||
# https://github.com/avh4/elm-format/issues/529
|
||||
patchPhase = ''
|
||||
cat >Setup.hs <<EOF
|
||||
import Distribution.Simple
|
||||
main = defaultMain
|
||||
EOF
|
||||
|
||||
sed -i '/Build_elm_format/d' elm-format.cabal
|
||||
sed -i 's/Build_elm_format.gitDescribe/""/' src/ElmFormat/Version.hs
|
||||
sed -i '/Build_elm_format/d' src/ElmFormat/Version.hs
|
||||
'';
|
||||
});
|
||||
elm-format = self.callPackage ./packages/elm-format.nix {};
|
||||
};
|
||||
in elmPkgs // {
|
||||
inherit elmPkgs;
|
||||
@@ -134,6 +118,7 @@ let
|
||||
|
||||
# Needed for elm-format
|
||||
indents = self.callPackage ./packages/indents.nix {};
|
||||
tasty-quickcheck = self.callPackage ./packages/tasty-quickcheck.nix {};
|
||||
};
|
||||
};
|
||||
in hsPkgs.elmPkgs
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
{ mkDerivation, ansi-terminal, ansi-wl-pprint, base, binary
|
||||
, bytestring, Cabal, cmark, containers, directory, fetchgit
|
||||
, filepath, free, HUnit, indents, json, mtl, optparse-applicative
|
||||
, parsec, process, QuickCheck, quickcheck-io, split, stdenv, tasty
|
||||
, tasty-golden, tasty-hunit, tasty-quickcheck, text
|
||||
{ mkDerivation, fetchgit, ansi-terminal, ansi-wl-pprint, base, binary
|
||||
, bytestring, Cabal, cmark, containers, directory, filepath, free
|
||||
, HUnit, indents, json, mtl, optparse-applicative, parsec, process
|
||||
, QuickCheck, quickcheck-io, split, stdenv, tasty, tasty-golden
|
||||
, tasty-hunit, tasty-quickcheck, text
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "elm-format";
|
||||
version = "0.8.0";
|
||||
version = "0.8.1";
|
||||
src = fetchgit {
|
||||
url = "http://github.com/avh4/elm-format";
|
||||
sha256 = "1w79xvsyq98vfz3jb4sv8433vdh6pcg8s7yh54lcxzr1p08yhsb6";
|
||||
rev = "f19ac28046d7e83ff95f845849c033cc616f1bd6";
|
||||
sha256 = "0p1dy1m6illsl7i04zsv5jqw7i4znv7pfpdfm53zy0k7mq0fk09j";
|
||||
rev = "89694e858664329e3cbdaeb71b15c4456fd739ff";
|
||||
};
|
||||
postPatch = ''
|
||||
sed -i "s|desc <-.*||" ./Setup.hs
|
||||
sed -i "s|gitDescribe = .*|gitDescribe = \\\\\"0.8.1\\\\\"\"|" ./Setup.hs
|
||||
'';
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
setupHaskellDepends = [ base Cabal directory filepath process ];
|
||||
@@ -26,8 +30,6 @@ mkDerivation {
|
||||
split tasty tasty-golden tasty-hunit tasty-quickcheck text
|
||||
];
|
||||
doHaddock = false;
|
||||
jailbreak = true;
|
||||
doCheck = false;
|
||||
homepage = "http://elm-lang.org";
|
||||
description = "A source code formatter for Elm";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
|
||||
14
pkgs/development/compilers/elm/packages/tasty-quickcheck.nix
Normal file
14
pkgs/development/compilers/elm/packages/tasty-quickcheck.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ mkDerivation, base, pcre-light, QuickCheck, random, stdenv
|
||||
, tagged, tasty, tasty-hunit
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "tasty-quickcheck";
|
||||
version = "0.9.2";
|
||||
sha256 = "c5920adeab6e283d5e3ab45f3c80a1b011bedfbe4a3246a52606da2e1da95873";
|
||||
libraryHaskellDepends = [ base QuickCheck random tagged tasty ];
|
||||
testHaskellDepends = [ base pcre-light tasty tasty-hunit ];
|
||||
doCheck = false;
|
||||
homepage = "https://github.com/feuerbach/tasty";
|
||||
description = "QuickCheck support for the Tasty test framework";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
}
|
||||
@@ -1,3 +1 @@
|
||||
cabal2nix https://github.com/elm/compiler --revision 32059a289d27e303fa1665e9ada0a52eb688f302 > packages/elm.nix
|
||||
cabal2nix --no-check cabal://indents-0.3.3 > packages/indents.nix
|
||||
cabal2nix --no-haddock --no-check --jailbreak --revision refs/tags/0.8.0 http://github.com/avh4/elm-format > packages/elm-format.nix
|
||||
|
||||
39
pkgs/development/compilers/gcc-arm-embedded/7/default.nix
Normal file
39
pkgs/development/compilers/gcc-arm-embedded/7/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ stdenv, lib, fetchurl, ncurses5, python27 }:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gcc-arm-embedded-${version}";
|
||||
version = "7-2018-q2-update";
|
||||
subdir = "7-2018q2";
|
||||
|
||||
urlString = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${version}-linux.tar.bz2";
|
||||
|
||||
src = fetchurl { url=urlString; sha256="0sgysp3hfpgrkcbfiwkp0a7ymqs02khfbrjabm52b5z61sgi05xv"; };
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r * $out
|
||||
'';
|
||||
|
||||
dontPatchELF = true;
|
||||
dontStrip = true;
|
||||
|
||||
preFixup = ''
|
||||
find $out -type f | while read f; do
|
||||
patchelf $f > /dev/null 2>&1 || continue
|
||||
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
|
||||
patchelf --set-rpath ${stdenv.lib.makeLibraryPath [ "$out" stdenv.cc.cc ncurses5 python27 ]} "$f" || true
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors (Cortex-M0/M0+/M3/M4/M7, Cortex-R4/R5/R7/R8)";
|
||||
homepage = https://developer.arm.com/open-source/gnu-toolchain/gnu-rm;
|
||||
license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
|
||||
maintainers = with maintainers; [ prusnak ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -169,6 +169,5 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
meta.license = stdenv.lib.licenses.bsd3;
|
||||
# AArch64 should work in theory but eventually some builds start segfaulting
|
||||
meta.platforms = ["x86_64-linux" "i686-linux" "x86_64-darwin" "armv7l-linux" /* "aarch64-linux" */];
|
||||
meta.platforms = ["x86_64-linux" "i686-linux" "x86_64-darwin" "armv7l-linux" "aarch64-linux"];
|
||||
}
|
||||
|
||||
@@ -88,7 +88,8 @@ stdenv.mkDerivation (rec {
|
||||
sha256 = "1z05vkpaj54xdypmaml50hgsdpw29dhbs2r7magx0cm199iw73mv";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
# https://ghc.haskell.org/trac/ghc/ticket/15449
|
||||
enableParallelBuilding = !buildPlatform.isAarch64;
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
|
||||
@@ -90,7 +90,8 @@ stdenv.mkDerivation (rec {
|
||||
sha256 = "1mk046vb561j75saz05rghhbkps46ym5aci4264dwc2qk3dayixf";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
# https://ghc.haskell.org/trac/ghc/ticket/15449
|
||||
enableParallelBuilding = !buildPlatform.isAarch64;
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
|
||||
@@ -86,7 +86,8 @@ stdenv.mkDerivation (rec {
|
||||
sha256 = "0dkh7idgrqr567fq94a0f5x3w0r4cm2ydn51nb5wfisw3rnw499c";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
# https://ghc.haskell.org/trac/ghc/ticket/15449
|
||||
enableParallelBuilding = !buildPlatform.isAarch64;
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
{ stdenv, lib, fetchFromGitHub, emscripten }:
|
||||
{ stdenv, lib, fetchFromGitHub }:
|
||||
|
||||
let version = "0.11.2"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "jsonnet-${version}";
|
||||
version = version;
|
||||
version = "0.11.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
@@ -13,18 +11,18 @@ stdenv.mkDerivation {
|
||||
sha256 = "05rl5i4g36k2ikxv4sw726mha1qf5bb66wiqpi0s09wj9azm7vym";
|
||||
};
|
||||
|
||||
buildInputs = [ emscripten ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
makeFlags = [''EM_CACHE=$(TMPDIR)/.em_cache'' ''all''];
|
||||
makeFlags = [
|
||||
"jsonnet"
|
||||
"libjsonnet.so"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/lib $out/share/
|
||||
mkdir -p $out/bin $out/lib $out/include
|
||||
cp jsonnet $out/bin/
|
||||
cp libjsonnet.so $out/lib/
|
||||
cp -a doc $out/share/doc
|
||||
cp -a include $out/include
|
||||
cp libjsonnet*.so $out/lib/
|
||||
cp -a include/*.h $out/include/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
{ stdenv, fetchurl, makeWrapper, jre, unzip }:
|
||||
|
||||
let
|
||||
version = "1.2.70";
|
||||
version = "1.2.71";
|
||||
in stdenv.mkDerivation rec {
|
||||
inherit version;
|
||||
name = "kotlin-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/JetBrains/kotlin/releases/download/v${version}/kotlin-compiler-${version}.zip";
|
||||
sha256 = "0d44rzngpfhgh1qc99b97dczdyrmypbwzrmr00qmcy2ya2il0fm2";
|
||||
sha256 = "0yzanv2jkjx3vfixzvjsihfi00khs7zr47y01cil8bylzvyr50p4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ jre ] ;
|
||||
|
||||
Reference in New Issue
Block a user