Files
nixpkgs/pkgs/by-name/lo/lobster/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
callPackage,
# Linux deps
libGL,
xorg,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lobster";
version = "2025.3";
src = fetchFromGitHub {
owner = "aardappel";
repo = "lobster";
rev = "v${finalAttrs.version}";
sha256 = "sha256-YGtjoRBGOqkcHaiZNPVFOoeLitJTG/M0I08EPZVCfj0=";
};
nativeBuildInputs = [ cmake ];
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
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;
};
})