<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nixos/nixpkgs.git/pkgs/test/make-binary-wrapper, branch master</title>
<subtitle>Nix Packages collection</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/'/>
<entry>
<title>Merge master into staging-next</title>
<updated>2025-05-11T12:06:00+00:00</updated>
<author>
<name>nixpkgs-ci[bot]</name>
<email>190413589+nixpkgs-ci[bot]@users.noreply.github.com</email>
</author>
<published>2025-05-11T12:06:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=9af3319f5fa7a107fd7ad702428f7ce5e4b18603'/>
<id>9af3319f5fa7a107fd7ad702428f7ce5e4b18603</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>various: fix parse errors for nix 2.3</title>
<updated>2025-05-11T10:14:58+00:00</updated>
<author>
<name>Wolfgang Walther</name>
<email>walther@technowledgy.de</email>
</author>
<published>2025-05-10T20:23:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=8980c1f7fc23102fb723a41bc70cc3233ef5f62b'/>
<id>8980c1f7fc23102fb723a41bc70cc3233ef5f62b</id>
<content type='text'>
Path interpolation syntax is not supported in the minimum nix version.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Path interpolation syntax is not supported in the minimum nix version.
</pre>
</div>
</content>
</entry>
<entry>
<title>makeWrapper: --add-flag and --append-flag arguments</title>
<updated>2025-04-25T19:57:29+00:00</updated>
<author>
<name>BirdeeHub</name>
<email>birdee@localhost</email>
</author>
<published>2025-04-21T21:18:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=7b9c6346ffc9c16910c25c56534733e70935f306'/>
<id>7b9c6346ffc9c16910c25c56534733e70935f306</id>
<content type='text'>
also:

manual: differences in makeWrapper implementations better explained

Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/build-support/setup-hooks/make-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/build-support/setup-hooks/make-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/build-support/setup-hooks/make-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/build-support/setup-hooks/make-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/build-support/setup-hooks/make-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
also:

manual: differences in makeWrapper implementations better explained

Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/build-support/setup-hooks/make-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/build-support/setup-hooks/make-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/build-support/setup-hooks/make-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/build-support/setup-hooks/make-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;

Update pkgs/build-support/setup-hooks/make-wrapper.sh

Co-authored-by: Naïm Camille Favier &lt;n@monade.li&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests.makeBinaryWrapper: avoid `lib.fileset`</title>
<updated>2024-12-31T02:30:18+00:00</updated>
<author>
<name>Emily</name>
<email>vcs@emily.moe</email>
</author>
<published>2024-12-30T19:24:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=6ff076b1b121970ed13a38ffee0f58b540d417e8'/>
<id>6ff076b1b121970ed13a38ffee0f58b540d417e8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: format all inactive Nix files</title>
<updated>2024-12-10T19:26:33+00:00</updated>
<author>
<name>Silvan Mosberger</name>
<email>silvan.mosberger@tweag.io</email>
</author>
<published>2024-12-10T19:26:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=4f0dadbf38ee4cf4cc38cbc232b7708fddf965bc'/>
<id>4f0dadbf38ee4cf4cc38cbc232b7708fddf965bc</id>
<content type='text'>
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
    result/bin/apply-formatting $NIXPKGS_PATH
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
    result/bin/apply-formatting $NIXPKGS_PATH
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: replace `stdenv.is` with `stdenv.hostPlatform.is`</title>
<updated>2024-09-24T21:04:37+00:00</updated>
<author>
<name>Artturin</name>
<email>Artturin@artturin.com</email>
</author>
<published>2024-09-24T15:50:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=e0464e47880a69896f0fb1810f00e0de469f770a'/>
<id>e0464e47880a69896f0fb1810f00e0de469f770a</id>
<content type='text'>
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"
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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"
```
</pre>
</div>
</content>
</entry>
<entry>
<title>tests.makeBinaryWrapper: Prevent rebuilds when Nix files change</title>
<updated>2024-08-25T02:59:11+00:00</updated>
<author>
<name>Silvan Mosberger</name>
<email>silvan.mosberger@tweag.io</email>
</author>
<published>2024-07-12T02:10:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=7cb66fd5791ac95863fa9e13c419af5b25984e90'/>
<id>7cb66fd5791ac95863fa9e13c419af5b25984e90</id>
<content type='text'>
The source included way more files than it really needed.
This commit limits it to exactly those it needs.

This also makes sure that no rebuild is necessary when any Nix
file changes, in particular useful when we reformat the Nix files.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The source included way more files than it really needed.
This commit limits it to exactly those it needs.

This also makes sure that no rebuild is necessary when any Nix
file changes, in particular useful when we reformat the Nix files.
</pre>
</div>
</content>
</entry>
<entry>
<title>makeBinaryWrapper: protect wildcards in flags</title>
<updated>2023-09-18T06:49:33+00:00</updated>
<author>
<name>Ryan Hendrickson</name>
<email>ryan.hendrickson@alum.mit.edu</email>
</author>
<published>2023-09-18T06:49:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=df8b425f8990cf8c6cd8a4477a70995bdd4fe2a4'/>
<id>df8b425f8990cf8c6cd8a4477a70995bdd4fe2a4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests.makeBinaryWrapper: fix cross test on aarch64-linux</title>
<updated>2023-09-15T05:48:31+00:00</updated>
<author>
<name>Artturin</name>
<email>Artturin@artturin.com</email>
</author>
<published>2023-09-15T05:47:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=57040cc3eb10116805f6c2ff8f4c951ba11e6c59'/>
<id>57040cc3eb10116805f6c2ff8f4c951ba11e6c59</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests.makeBinaryWrapper: avoid same-triple cross</title>
<updated>2023-04-19T18:34:47+00:00</updated>
<author>
<name>Alyssa Ross</name>
<email>hi@alyssa.is</email>
</author>
<published>2023-04-19T18:34:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=887edae254823a8428a7119c8f052aac9313836a'/>
<id>887edae254823a8428a7119c8f052aac9313836a</id>
<content type='text'>
We shouldn't try compiling to aarch64-unknown-linux-gnu from
aarch64-unknown-linux-gnu, because that tends to confuse things and is
not representative of actual cross compilation usage.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We shouldn't try compiling to aarch64-unknown-linux-gnu from
aarch64-unknown-linux-gnu, because that tends to confuse things and is
not representative of actual cross compilation usage.
</pre>
</div>
</content>
</entry>
</feed>
