diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-04-01 15:50:50 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-04-01 15:50:50 +0000 |
commit | 75eafe97f7df0d653bec67f3962214d7c357831f (patch) | |
tree | 09f2cc901e0e637876cbb78d192dfe2fcfef8156 /nixpkgs/pkgs/games/teeworlds | |
parent | a53b121bf4331497da63df3b1b7f1a7897dad146 (diff) | |
parent | a2e06fc3423c4be53181b15c28dfbe0bcf67dd73 (diff) | |
download | nixlib-75eafe97f7df0d653bec67f3962214d7c357831f.tar nixlib-75eafe97f7df0d653bec67f3962214d7c357831f.tar.gz nixlib-75eafe97f7df0d653bec67f3962214d7c357831f.tar.bz2 nixlib-75eafe97f7df0d653bec67f3962214d7c357831f.tar.lz nixlib-75eafe97f7df0d653bec67f3962214d7c357831f.tar.xz nixlib-75eafe97f7df0d653bec67f3962214d7c357831f.tar.zst nixlib-75eafe97f7df0d653bec67f3962214d7c357831f.zip |
Merge commit 'a2e06fc3423c4be53181b15c28dfbe0bcf67dd73'
Diffstat (limited to 'nixpkgs/pkgs/games/teeworlds')
-rw-r--r-- | nixpkgs/pkgs/games/teeworlds/default.nix | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/nixpkgs/pkgs/games/teeworlds/default.nix b/nixpkgs/pkgs/games/teeworlds/default.nix index ceb908099045..ff0dfad51a60 100644 --- a/nixpkgs/pkgs/games/teeworlds/default.nix +++ b/nixpkgs/pkgs/games/teeworlds/default.nix @@ -1,4 +1,4 @@ -{ fetchFromGitHub, stdenv, bam, pkgconfig, python, alsaLib +{ fetchFromGitHub, stdenv, cmake, pkgconfig, python, alsaLib , libX11, libGLU, SDL2, lua5_3, zlib, freetype, wavpack }: @@ -21,35 +21,12 @@ stdenv.mkDerivation rec { '#define DATA_DIR "${placeholder "out"}/share/teeworlds/data"' ''; - nativeBuildInputs = [ bam pkgconfig ]; - - configurePhase = '' - runHook preConfigure - bam config - runHook postConfigure - ''; - - buildPhase = '' - runHook preBuild - bam conf=release - runHook postBuild - ''; - - installPhase = '' - mkdir -p $out/bin $out/share/teeworlds - cp build/x86_64/release/teeworlds{,_srv} $out/bin - cp -r build/x86_64/release/data $out/share/teeworlds - ''; + nativeBuildInputs = [ cmake pkgconfig ]; buildInputs = [ python alsaLib libX11 libGLU SDL2 lua5_3 zlib freetype wavpack ]; - postInstall = '' - mkdir -p $out/share/doc/teeworlds - cp -v *.txt $out/share/doc/teeworlds/ - ''; - meta = { description = "Retro multiplayer shooter game"; @@ -60,9 +37,9 @@ stdenv.mkDerivation rec { Flag. You can even design your own maps! ''; - homepage = https://teeworlds.com/; + homepage = "https://teeworlds.com/"; license = "BSD-style, see `license.txt'"; maintainers = with stdenv.lib.maintainers; [ astsmtl ]; - platforms = ["x86_64-linux" "i686-linux"]; + platforms = stdenv.lib.platforms.linux; }; } |