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
53
pkgs/development/compilers/carp/default.nix
Normal file
53
pkgs/development/compilers/carp/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib, fetchFromGitHub, makeWrapper, clang, haskellPackages }:
|
||||
|
||||
haskellPackages.mkDerivation rec {
|
||||
pname = "carp";
|
||||
version = "0.5.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "carp-lang";
|
||||
repo = "Carp";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-o7NLd7jC1BvcoVzbD18LvHg/SqOnfn9yELUrpg2uZtY=";
|
||||
};
|
||||
|
||||
# -Werror breaks build with GHC >= 9.0
|
||||
# https://github.com/carp-lang/Carp/issues/1386
|
||||
postPatch = ''
|
||||
substituteInPlace CarpHask.cabal --replace "-Werror" ""
|
||||
'';
|
||||
|
||||
buildTools = [ makeWrapper ];
|
||||
|
||||
executableHaskellDepends = with haskellPackages; [
|
||||
HUnit blaze-markup blaze-html split ansi-terminal cmark
|
||||
edit-distance hashable open-browser optparse-applicative
|
||||
];
|
||||
|
||||
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 = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ jluttine ];
|
||||
|
||||
# Windows not (yet) supported.
|
||||
platforms = with lib.platforms; unix ++ darwin;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue