Commit Graph

21 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
Robert Schütz
0c2a29ecd4 cutemaze: 1.3.2 -> 1.3.3
Changelog: https://github.com/gottcode/cutemaze/blob/v1.3.3/ChangeLog
2024-01-16 11:36:18 -08:00
Weijia Wang
a4122c898c cutemaze: unbreak on darwin 2023-03-16 21:40:09 +02:00
Robert Schütz
b165b45b20 cutemaze: 1.3.1 -> 1.3.2
https://github.com/gottcode/cutemaze/releases/tag/v1.3.2
2023-01-13 14:24:26 -08:00
Milan Hauth
784a63333c cutemaze: add dependencies: qtbase qtwayland 2022-05-27 17:52:56 +02:00
Robert Schütz
cbbd0f77ea cutemaze: 1.3.0 -> 1.3.1
https://github.com/gottcode/cutemaze/blob/v1.3.1/ChangeLog
2022-05-23 23:35:55 +00:00
Robert Schütz
a8ac0cfa63 cutemaze: 1.2.6 -> 1.3.0 2021-05-07 00:49:49 +02:00
Ben Siraphob
2e34288f0d pkgs/games: stdenv.lib -> lib 2021-01-15 13:36:04 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
R. RyanTM
df7727398e cutemaze: 1.2.5 -> 1.2.6 2020-05-04 21:40:43 -07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Vladimír Čunát
2e6bf42a22
Merge branch 'master' into staging-next
There ver very many conflicts, basically all due to
name -> pname+version.  Fortunately, almost everything was auto-resolved
by kdiff3, and for now I just fixed up a couple evaluation problems,
as verified by the tarball job.  There might be some fallback to these
conflicts, but I believe it should be minimal.

Hydra nixpkgs: ?compare=1538299
2019-08-24 08:55:37 +02:00
Marek Mahut
43fcb94fcc cutemaze: use qt5's mkDerivation 2019-08-18 10:14:38 +02:00
R. RyanTM
a52cab84f0 cutemaze: 1.2.4 -> 1.2.5
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/cutemaze/versions
2019-08-17 15:05:28 -07: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
35425daec2 cutemaze: 1.2.3 -> 1.2.4
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cutemaze/versions.
2018-07-21 19:48:12 -07:00
R. RyanTM
81853859a1 cutemaze: 1.2.2 -> 1.2.3 (#41572)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/cutemaze/versions.

These checks were done:

- built on NixOS
- Warning: no invocation of /nix/store/sqmwkpsp62yarxbxil0xwl6c7434bhns-cutemaze-1.2.3/bin/cutemaze had a zero exit code or showed the expected version
- 0 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 1.2.3 with grep in /nix/store/sqmwkpsp62yarxbxil0xwl6c7434bhns-cutemaze-1.2.3
- directory tree listing: https://gist.github.com/a8cfdfb66984a0f73bf7653f74bd4875
- du listing: https://gist.github.com/ad7863094421835157fc96f90206e350
2018-06-07 11:04:01 +02:00
Bastian Köcher
72ade2a813 cutemaze: 1.2.1 -> 1.2.2 2018-01-01 21:05:15 +01:00
Orivej Desh
1cfad78781 cutemaze: support darwin 2017-12-14 12:05:09 +00:00
Robert Schütz
c8880764fb cutemaze: init at 1.2.1 2017-12-14 11:37:28 +00:00