2021-04-06 00:02:41 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, sfml }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "antsimulator";
|
2021-08-10 11:05:35 +00:00
|
|
|
version = "3.1";
|
2021-04-06 00:02:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johnBuffer";
|
|
|
|
repo = "AntSimulator";
|
|
|
|
rev = "v${version}";
|
2021-08-10 11:05:35 +00:00
|
|
|
sha256 = "sha256-1KWoGbdjF8VI4th/ZjAzASgsLEuS3xiwObulzxQAppA=";
|
2021-04-06 00:02:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ sfml ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -Dm755 ./AntSimulator $out/bin/antsimulator
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/johnBuffer/AntSimulator";
|
|
|
|
description = "Simple Ants simulator";
|
|
|
|
license = licenses.free;
|
|
|
|
maintainers = with maintainers; [ ivar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|