depot/third_party/nixpkgs/pkgs/development/compilers/lobster/default.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

70 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
callPackage,
# Linux deps
libGL,
xorg,
# Darwin deps
CoreFoundation,
Cocoa,
AudioToolbox,
OpenGL,
Foundation,
ForceFeedback,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lobster";
version = "2025.0";
src = fetchFromGitHub {
owner = "aardappel";
repo = "lobster";
rev = "v${finalAttrs.version}";
sha256 = "sha256-yigWrbFQg1nQt7X1Rx7Us5cKfKW4YOmPt0/lyBvspqo=";
};
nativeBuildInputs = [ cmake ];
buildInputs =
if stdenv.hostPlatform.isDarwin then
[
CoreFoundation
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.hostPlatform.isDarwin;
homepage = "https://strlen.com/lobster/";
description = "Lobster programming language";
mainProgram = "lobster";
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;
};
})