Commit Graph

26 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
R. Ryantm
9369dbec0e box2d: 2.4.1 -> 2.4.2 2024-08-10 00:29:22 +00:00
Peder Bergebakken Sundt
29ab705c17 treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck
repeat of #271241
discussion: #272978

I did not replace the instance in eiwd, since it causes an infinite recursion.
2024-07-30 18:32:01 +02:00
Emily
fbda1dbfd6 treewide: replace freeglut with libglut
Allow the macOS GLUT framework to be used automatically in many
cases. Packages that specifically search for freeglut or require its
additional APIs should still explicitly depend on it.

Deliberately skip the Haskell package set, which is mostly
automatically generated, and mupdf, which has its own fork of freeglut.
2024-06-22 18:06:51 +01:00
Peter Hoeg
620f5a440b box2d: 2.3.1 -> 2.4.1 2024-04-09 03:58:31 -07:00
Jonathan Ringer
adfe7f334a
box2d: make src name independent 2022-01-04 22:11:03 -08:00
Felix Buehler
4c2bc0764d box2d: switch to fetchFromGitHub 2021-12-30 14:36:15 +01:00
Dmitry Kalinkin
24f34c1b90
box2d: enable on darwin 2021-06-11 23:58:57 -04:00
Ricardo M. Correia
e0b91375bc
box2d: fix hash (#125310)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-06-06 02:04:40 +02:00
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
Ben Siraphob
b04fc593e7 treewide: cmake buildInputs to nativeBuildInputs, minor cleanups 2021-01-01 11:52:33 +07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Patrick Hilhorst
593e11fd94
treewide: fix redirected urls
According to https://repology.org/repository/nix_unstable/problems, we have a
lot of packages that have http links that redirect to https as their homepage.
This commit updates all these packages to use the https links as their
homepage.

The following script was used to make these updates:

```

curl https://repology.org/api/v1/repository/nix_unstable/problems \
    | jq '.[] | .problem' -r \
    | rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \
    | sort | uniq > script.sed

find -name '*.nix' | xargs -P4 -- sed -f script.sed -i
```
2020-01-22 11:26:22 +01:00
adisbladis
c9d8624ccd
treewide: Get rid of libGLU_combined 2019-11-18 20:10:43 +00:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
R. RyanTM
38f62271f2 box2d: 2.3.0 -> 2.3.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/box2d/versions
2019-01-17 19:08:41 -08:00
Vladimír Čunát
287144e342
Merge branch 'master' into staging-next 2019-01-10 13:07:21 +01:00
Piotr Bogdan
580125f6fc box2d: don't build examples
They fail to build and aren't included in the output anyway.
2019-01-04 21:44:17 +00:00
Lengyel Balazs
f4a53ff3bc treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
Alexander V. Nikolaev
0acec7e984 treewide: transition mesa to libGLU_combined 2018-02-24 17:06:49 +02:00
John Ericson
ed14223f8c treewide: Manual fix more pkg-config build-inputs 2017-09-21 15:49:54 -04:00
Robert Helgesson
ac8e5edada box2d: use stdenv
This replaces use of `builderDefsPackage`. Also change to download
tarball from GitHub as it is the new upstream home.
2015-12-30 21:15:15 +01:00
Mathnerd314
eb7404d97a all-packages: Use callPackage where possible 2015-09-14 22:27:19 -06:00
Michael Raskin
be4bdff8ab Update Box2D to 2.3.0. I fail to build 2.3.1, though. 2014-07-01 13:58:11 +04:00
Michael Raskin
af589388b0 Increase polygon vertex count for Box2D
svn path=/nixpkgs/trunk/; revision=25177
2010-12-17 15:40:34 +00:00
Michael Raskin
aa744f88a1 Adding Box2D library
svn path=/nixpkgs/trunk/; revision=25172
2010-12-17 13:02:17 +00:00