1 { stdenv, lib, fetchFromGitHub, pkg-config, allegro5, libGL, wrapGAppsHook3 }:
3 stdenv.mkDerivation rec {
4 pname = "liberation-circuit";
5 version = "1.3-unstable-2022-01-02";
7 src = fetchFromGitHub {
9 repo = "liberation-circuit";
10 rev = "19e3363547793e931fd9419b61ebc2cd8e257714";
11 hash = "sha256-zIwjh4CBSmKz7pF7GM5af+VslWho5jHOLsulbW4C8TY=";
14 nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
15 buildInputs = [ allegro5 libGL ];
23 cp -r bin $out/opt/liberation-circuit
24 chmod +x $out/opt/liberation-circuit/launcher.sh
26 install -D linux-packaging/liberation-circuit.desktop $out/share/applications/liberation-circuit.desktop
27 install -D linux-packaging/liberation-circuit.appdata.xml $out/share/metainfo/liberation-circuit.appdata.xml
28 install -D linux-packaging/icon-256px.png $out/share/pixmaps/liberation-circuit.png
34 makeWrapper $out/opt/liberation-circuit/launcher.sh $out/bin/liberation-circuit \
35 "''${gappsWrapperArgs[@]}"
39 description = "Real-time strategy game with programmable units";
40 mainProgram = "liberation-circuit";
42 Escape from a hostile computer system!
43 Harvest data to create an armada of battle-processes to aid your escape!
44 Take command directly and play the game as an RTS, or use the game's built-in
45 editor and compiler to write your own unit AI in a simplified version of C.
47 homepage = "https://linleyh.itch.io/liberation-circuit";
48 maintainers = with lib.maintainers; [ emilytrau ];
49 license = lib.licenses.gpl3Only;
50 platforms = lib.platforms.linux;