1 { lib, stdenv, fetchFromGitHub, pkg-config, jansson }:
4 libsailing = fetchFromGitHub {
5 owner = "sails-simulator";
7 rev = "9b2863ff0c539cd23d91b0254032a7af9c840574";
8 sha256 = "06rcxkwgms9sxqr1swnnc4jnvgs0iahm4cksd475yd1bp5p1gq6j";
11 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
15 owner = "sails-simulator";
18 sha256 = "1s4nlffp683binbdxwwzbsci61kbjylbcr1jf44sv1h1r5d5js05";
21 nativeBuildInputs = [ pkg-config ];
22 buildInputs = [ jansson libsailing ];
24 INSTALL_PATH = "$(out)";
27 rmdir $sourceRoot/libsailing
28 cp -r ${libsailing} $sourceRoot/libsailing
29 chmod 755 -R $sourceRoot/libsailing
33 substituteInPlace Makefile \
38 description = "Simulator daemon for autonomous sailing boats";
39 homepage = "https://github.com/sails-simulator/sailsd";
40 license = licenses.gpl3;
42 Sails is a simulator designed to test the AI of autonomous sailing
43 robots. It emulates the basic physics of sailing a small single sail
45 maintainers = with maintainers; [ kragniz ];
46 platforms = platforms.all;
47 mainProgram = "sailsd";