diff options
author | eyjhb <eyjhbb@gmail.com> | 2020-10-22 16:15:06 +0200 |
---|---|---|
committer | eyjhb <eyjhbb@gmail.com> | 2020-10-30 21:22:42 +0100 |
commit | 76cd5444557b02efd98d6143d779a0c76b22b1ac (patch) | |
tree | 78d25c140afaee2830ac60413323d3cbe8bc4be6 /pkgs/games/among-sus/default.nix | |
parent | 6c9d44d39c83ddbf26f87290dff23e6f35e31c21 (diff) |
among-sus: init at 2020-10-29
Diffstat (limited to 'pkgs/games/among-sus/default.nix')
-rw-r--r-- | pkgs/games/among-sus/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/games/among-sus/default.nix b/pkgs/games/among-sus/default.nix new file mode 100644 index 000000000000..c422ed1c8e52 --- /dev/null +++ b/pkgs/games/among-sus/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchgit, port ? "1234" }: + +stdenv.mkDerivation { + pname = "among-sus-unstable"; + version = "2020-10-29"; + + src = fetchgit { + url = "https://git.sr.ht/~martijnbraam/among-sus"; + 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 stdenv.lib; { + 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; + }; +} |