python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / compilers / lobster / default.nix
blobb224a7e66d0295564d602bb3851aa5bc70ae68b0
1 { lib, stdenv
2 , fetchFromGitHub
3 , unstableGitUpdater
4 , cmake
5 , callPackage
7 # Linux deps
8 , libGL
9 , xorg
11 # Darwin deps
12 , cf-private
13 , Cocoa
14 , AudioToolbox
15 , OpenGL
16 , Foundation
17 , ForceFeedback
20 stdenv.mkDerivation rec {
21   pname = "lobster";
22   version = "2021.3";
24   src = fetchFromGitHub {
25     owner = "aardappel";
26     repo = "lobster";
27     rev = "v${version}";
28     sha256 = "sha256-ENs2Jy2l6fogZdCSaIyfV9wQm57qaZfx5HVHOnQBrRk=";
29   };
31   nativeBuildInputs = [ cmake ];
32   buildInputs = if stdenv.isDarwin
33     then [
34       cf-private
35       Cocoa
36       AudioToolbox
37       OpenGL
38       Foundation
39       ForceFeedback
40     ]
41     else [
42       libGL
43       xorg.libX11
44       xorg.libXext
45     ];
47   preConfigure = ''
48     cd dev
49   '';
51   passthru.tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {};
53   meta = with lib; {
54     broken = stdenv.isDarwin;
55     homepage = "https://strlen.com/lobster/";
56     description = "The Lobster programming language";
57     longDescription = ''
58       Lobster is a programming language that tries to combine the advantages of
59       very static typing and memory management with a very lightweight,
60       friendly and terse syntax, by doing most of the heavy lifting for you.
61     '';
62     license = licenses.asl20;
63     maintainers = with maintainers; [ fgaz ];
64     platforms = platforms.all;
65   };