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