nixpkgs/pkgs/games/among-sus/default.nix

31 lines
760 B
Nix
Raw Normal View History

2020-10-31 12:20:43 +00:00
{ lib, stdenv, fetchFromSourcehut, port ? "1234" }:
2020-10-22 14:15:06 +00:00
stdenv.mkDerivation {
pname = "among-sus-unstable";
version = "2020-10-29";
2020-10-31 12:20:43 +00:00
src = fetchFromSourcehut {
owner = "~martijnbraam";
repo = "among-sus";
2020-10-22 14:15:06 +00:00
rev = "1f4c8d800d025d36ac66826937161be3252fbc57";
sha256 = "19jq7ygh9l11dl1h6702bg57m04y35nqd6yqx1rgp1kxwhp45xyh";
};
patchPhase = ''
sed -i 's/port = 1234/port = ${port}/g' main.c
'';
installPhase = ''
mkdir -p $out/bin
install -Dm755 among-sus $out/bin
'';
meta = with lib; {
2020-10-22 14:15:06 +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;
};
}