Commit Graph

41 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Thomas Gerbet
b680d961a8 teeworlds: apply patch for CVE-2021-43518
Closes #155352
2023-12-15 02:10:46 +01:00
Luflosi
ed48ad7b25
teeworlds: fix meta.license
Replace stringy license with a list of all used licenses.

The original meta.license said that the license was BSD-style but this information has been outdated for a long time.
The license was changed in 2008: bc108df382 (diff-7bb54d15ef4c4e0f20bb24add68a12fccced9925b304eaa696023143d278ea26).
The current license is clearly the zlib license and below that some notes about the licenses of `datasrc` (and `data`, which has not existed in the tree for many years), the fonts in `datasrc` and the libraries in `src/engine/external`.
See https://github.com/teeworlds/teeworlds/blob/master/license.txt for the current version of the license.
The meta.license string has been unchanged since the commit adding teeworlds in 2009: e71dbdbb83.

See issue #269788.
2023-11-30 10:52:26 +01:00
Luflosi
db5b38723e
teeworlds-server: fix unbundling of wavpack dependency 2023-11-29 11:46:17 +01:00
Luflosi
f563b8bb66
teeworlds: fix build on Darwin
The Cocoa dependency is also needed when not building the Client.
The Carbon dependency does not seem to be needed at all.
The libGLU dependency does not currently build on macOS because of one of its transitive dependencies but teeworlds compiles and runs fine without libGLU on macOS, so just make this dependency Linux-only.
2023-11-27 23:37:35 +01:00
Jeremy
2fdbababe1 teeworlds: add buildClient feature flag
Allows for only building the Teeworlds server (for example, in a
headless environment). This gets rid of a great deal of dependencies
which would be unneccessary in a headless server.

Also added the package "teeworlds-server" in all-packages.nix, defined
as an override.
2023-11-21 06:41:41 +13:00
Luflosi
38cb19ace8
teeworlds: build on macOS 2023-01-24 15:58:42 +01:00
Luflosi
0289bacdfd
teeworlds: add Luflosi as maintainer 2023-01-24 15:55:20 +01:00
AndersonTorres
e9e5f5f84d Change all alsaLib references to alsa-lib 2021-06-10 01:12:49 -03:00
Ben Siraphob
bd42003f87 pkgs/games: pkg-config -> pkgconfig (2) 2021-01-16 23:49:59 -08:00
Ben Siraphob
2e34288f0d pkgs/games: stdenv.lib -> lib 2021-01-15 13:36:04 +07:00
Georg Haas
6d1ca7db4a
nixos/{modules,tests}/teeworlds: init
add module and test
2020-06-06 17:06:23 +02:00
Georg Haas
b89d52ee52
teeworlds: 0.7.4 -> 0.7.5
fixes CVE-2020-12066
2020-05-07 00:00:40 +02:00
Georg Haas
1d42440eb2
teeworlds: add desktop icon and menu item 2020-03-24 13:37:12 +01:00
Georg Haas
b6d07eb8ad
teeworlds: python2 -> python3 2020-03-24 13:36:29 +01:00
Will Dietz
dd763ca418 teeworlds: meta touchups, per reviewer suggestion 2020-01-26 16:45:49 -06:00
Will Dietz
5da89034f9
teeworlds: cmake instead of bam, oh joy! cleanup 2020-01-17 09:29:09 -06:00
ajs124
9120d20766 teeworlds: 0.7.3.1 -> 0.7.4 2020-01-16 17:28:58 +01:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Alyssa Ross
356938ca37
teeworlds: fetchSubmodules
The languages and maps directories are submodules, and are not included
in tarballs downloaded from GitHub. This results in an English-only game
that can't run a server.
2019-06-02 19:13:28 +00:00
Will Dietz
3baa5c13f0 teeworlds: 0.7.3 -> 0.7.3.1 2019-04-23 07:33:25 -05:00
Will Dietz
e31fabe2a3 teeworlds: 0.7.2 -> 0.7.3 2019-04-21 11:50:52 -05:00
Linus Heckemann
64b9677e17 teeworlds: 0.6.5 -> 0.7.2 2019-01-21 15:53:20 +01:00
Will Dietz
18258bae34 teeworlds: 0.6.4 -> 0.6.5
This release adds support for building with cmake!
So switch to that eagerly instead of fighting with bam.

(if nothing else cmake is the devil we know...)

Also:

* fixup 'DATA_DIR' so programs can find resources
  (without need for wrappers)
* install readme+license as previously done ("docs")
* don't install tools since not built or installed by default
  * esp since doesn't appear to have non-adhoc method for installation
  * other distros don't seem to include
2018-10-16 01:42:14 -05:00
Alexander V. Nikolaev
1bc1909e5b treewide: transition from mesa_glu to libGLU 2018-02-24 17:05:43 +02:00
Samuel Dionne-Riel
7b97c8c0c8 treewide: homepage+src updates (found by repology, #33263) 2018-01-05 20:42:46 +01:00
Graham Christensen
4c5a198019
teeworlds: 0.6.3 -> 0.6.4 for CVE-2016-9400 2016-12-07 19:46:54 -05:00
Robert Helgesson
f144887ba0
teeworlds: use wrapProgram
Replace custom wrapper by wrapProgram tool.
2016-09-04 09:20:09 +02:00
Vladimír Čunát
501668ee0a teeworlds: update, cleanup 2016-09-03 17:13:42 +02:00
Robert Helgesson
297008b959
teeworlds: add freetype to build inputs
Fixes undefined references to functions in the freetype library.
2016-09-03 11:43:41 +02:00
Bjørn Forsman
c9baba9212 Fix many package descriptions
(My OCD kicked in today...)

Remove repeated package names, capitalize first word, remove trailing
periods and move overlong descriptions to longDescription.

I also simplified some descriptions as well, when they were particularly
long or technical, often based on Arch Linux' package descriptions.

I've tried to stay away from generated expressions (and I think I
succeeded).

Some specifics worth mentioning:
 * cron, has "Vixie Cron" in its description. The "Vixie" part is not
   mentioned anywhere else. I kept it in a parenthesis at the end of the
   description.

 * ctags description started with "Exuberant Ctags ...", and the
   "exuberant" part is not mentioned elsewhere. Kept it in a parenthesis
   at the end of description.

 * nix has the description "The Nix Deployment System". Since that
   doesn't really say much what it is/does (especially after removing
   the package name!), I changed that to "Powerful package manager that
   makes package management reliable and reproducible" (borrowed from
   nixos.org).

 * Tons of "GNU Foo, Foo is a [the important bits]" descriptions
   is changed to just [the important bits]. If the package name doesn't
   contain GNU I don't think it's needed to say it in the description
   either.
2014-08-24 22:31:37 +02:00
Eelco Dolstra
c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00
Alexander Tsamutali
10128798b5 games/teeworlds: Updated to 0.6.1, added myself as maintainer.
svn path=/nixpkgs/trunk/; revision=30259
2011-11-06 10:11:31 +00:00
Michael Raskin
8a00dfcc18 Update teeworlds
svn path=/nixpkgs/trunk/; revision=26814
2011-04-13 05:47:51 +00:00
Lluís Batlle i Rossell
90962dc4cb Making teeworlds executables accept parameters (to configure a teeworlds server for example)
svn path=/nixpkgs/trunk/; revision=19768
2010-02-02 18:09:58 +00:00
Lluís Batlle i Rossell
fc4d56227c Updating teeworlds
svn path=/nixpkgs/trunk/; revision=19719
2010-01-28 15:50:04 +00:00
Marc Weber
9defe690b2 teeworlds update
svn path=/nixpkgs/trunk/; revision=14083
2009-02-14 23:44:11 +00:00
Ludovic Courtès
474ff7c05c Teeworlds 0.5.0.
svn path=/nixpkgs/trunk/; revision=13764
2009-01-14 00:23:11 +00:00
Ludovic Courtès
dc28c92e63 Teeworlds: install all the executables (client, server, etc.).
svn path=/nixpkgs/trunk/; revision=13763
2009-01-13 20:36:09 +00:00
Ludovic Courtès
e71dbdbb83 Add Teeworlds, a Worms-like game, if you see what I mean.
svn path=/nixpkgs/trunk/; revision=13762
2009-01-13 19:44:11 +00:00