2021-03-12 07:09:13 +00:00
|
|
|
{ lib, stdenv, fetchFromSourcehut, port ? "1234" }:
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "among-sus-unstable";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "2021-05-19";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~martijnbraam";
|
|
|
|
repo = "among-sus";
|
2022-01-19 23:45:15 +00:00
|
|
|
rev = "554e60bf52e3fa931661b9414189a92bb8f69d78";
|
|
|
|
sha256 = "0j1158nczhvy5i1ykvzvhlv4ndhibgng0dq1lw2bmi8q6k1q1s0w";
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's/port = 1234/port = ${port}/g' main.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -Dm755 among-sus $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
homepage = "https://git.sr.ht/~martijnbraam/among-sus";
|
|
|
|
description = "Among us, but it's a text adventure";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = [ maintainers.eyjhb ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|