2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv
|
2020-01-26 15:52:00 +00:00
|
|
|
, fetchFromGitHub
|
2020-12-02 16:23:05 +00:00
|
|
|
, unstableGitUpdater
|
2020-01-26 15:52:00 +00:00
|
|
|
, cmake
|
|
|
|
, callPackage
|
|
|
|
|
|
|
|
# Linux deps
|
|
|
|
, libGL
|
|
|
|
, xorg
|
|
|
|
|
|
|
|
# Darwin deps
|
|
|
|
, cf-private
|
|
|
|
, Cocoa
|
|
|
|
, AudioToolbox
|
|
|
|
, OpenGL
|
|
|
|
, Foundation
|
|
|
|
, ForceFeedback
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lobster";
|
2021-10-12 20:24:00 +00:00
|
|
|
version = "2021.3";
|
2020-01-26 15:52:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aardappel";
|
2021-10-12 20:24:00 +00:00
|
|
|
repo = "lobster";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-ENs2Jy2l6fogZdCSaIyfV9wQm57qaZfx5HVHOnQBrRk=";
|
2020-01-26 15:52:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = if stdenv.isDarwin
|
|
|
|
then [
|
|
|
|
cf-private
|
|
|
|
Cocoa
|
|
|
|
AudioToolbox
|
|
|
|
OpenGL
|
|
|
|
Foundation
|
|
|
|
ForceFeedback
|
|
|
|
]
|
|
|
|
else [
|
|
|
|
libGL
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXext
|
|
|
|
];
|
|
|
|
|
2021-10-12 20:24:00 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cd dev
|
|
|
|
'';
|
2020-01-26 15:52:00 +00:00
|
|
|
|
2021-10-12 20:24:00 +00:00
|
|
|
passthru.tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {};
|
2020-01-26 15:52:00 +00:00
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2022-05-28 13:30:35 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-10-12 20:24:00 +00:00
|
|
|
homepage = "https://strlen.com/lobster/";
|
2020-01-26 15:52:00 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|