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
66
pkgs/development/compilers/lobster/default.nix
Normal file
66
pkgs/development/compilers/lobster/default.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, unstableGitUpdater
|
||||
, cmake
|
||||
, callPackage
|
||||
|
||||
# Linux deps
|
||||
, libGL
|
||||
, xorg
|
||||
|
||||
# Darwin deps
|
||||
, cf-private
|
||||
, Cocoa
|
||||
, AudioToolbox
|
||||
, OpenGL
|
||||
, Foundation
|
||||
, ForceFeedback
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lobster";
|
||||
version = "2021.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aardappel";
|
||||
repo = "lobster";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ENs2Jy2l6fogZdCSaIyfV9wQm57qaZfx5HVHOnQBrRk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = if stdenv.isDarwin
|
||||
then [
|
||||
cf-private
|
||||
Cocoa
|
||||
AudioToolbox
|
||||
OpenGL
|
||||
Foundation
|
||||
ForceFeedback
|
||||
]
|
||||
else [
|
||||
libGL
|
||||
xorg.libX11
|
||||
xorg.libXext
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
cd dev
|
||||
'';
|
||||
|
||||
passthru.tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {};
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
homepage = "https://strlen.com/lobster/";
|
||||
description = "The Lobster programming language";
|
||||
longDescription = ''
|
||||
Lobster is a programming language that tries to combine the advantages of
|
||||
very static typing and memory management with a very lightweight,
|
||||
friendly and terse syntax, by doing most of the heavy lifting for you.
|
||||
'';
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fgaz ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
{ stdenv, lobster }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "lobster-test-can-run-hello-world";
|
||||
meta.timeout = 10;
|
||||
buildCommand = ''
|
||||
${lobster}/bin/lobster \
|
||||
${lobster}/share/Lobster/samples/rosettacode/hello_world_test.lobster \
|
||||
| grep 'Goodbye, World!'
|
||||
touch $out
|
||||
'';
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue