<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nixos/nixpkgs.git/pkgs/test/haskell/shellFor, branch master</title>
<subtitle>Nix Packages collection</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/'/>
<entry>
<title>tests.haskell.shellFor: use srcOnly to extract pkgs</title>
<updated>2025-09-12T19:00:26+00:00</updated>
<author>
<name>sternenseemann</name>
<email>sternenseemann@systemli.org</email>
</author>
<published>2025-09-12T11:30:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=fca19d72bcd49e351ab13180a9a7f1fa97b7c329'/>
<id>fca19d72bcd49e351ab13180a9a7f1fa97b7c329</id>
<content type='text'>
This ensures patches and Hackage revisions are applied to the base
tarball which may be necessary in order for the packages to build in the
shell environment.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ensures patches and Hackage revisions are applied to the base
tarball which may be necessary in order for the packages to build in the
shell environment.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests.haskell.shellFor: deprecate phases</title>
<updated>2025-08-19T19:39:23+00:00</updated>
<author>
<name>Felix Buehler</name>
<email>account@buehler.rocks</email>
</author>
<published>2025-08-19T19:39:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=ee450568eae00faf9ff3964555b27ef31a77295f'/>
<id>ee450568eae00faf9ff3964555b27ef31a77295f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>haskell: fix shellFor test</title>
<updated>2025-03-23T00:39:43+00:00</updated>
<author>
<name>Thomas Miedema</name>
<email>thomasmiedema@gmail.com</email>
</author>
<published>2025-03-17T07:16:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=ff9e4bce32b35ab6fc61e8ad64e5b91c0624c5b4'/>
<id>ff9e4bce32b35ab6fc61e8ad64e5b91c0624c5b4</id>
<content type='text'>
In #296645, envFunc (and thus shellFor) was changed from
`mkDerivation {phases=[..]}` to `runCommand ..`. So since
then, the derivation of shellFor contains a `buildCommand`
("echo $nativeBuildInputs $buildInputs &gt; $out"),
and as a result the custom phases defined in shellFor's
test were ignored.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In #296645, envFunc (and thus shellFor) was changed from
`mkDerivation {phases=[..]}` to `runCommand ..`. So since
then, the derivation of shellFor contains a `buildCommand`
("echo $nativeBuildInputs $buildInputs &gt; $out"),
and as a result the custom phases defined in shellFor's
test were ignored.
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: format all inactive Nix files</title>
<updated>2024-12-10T19:23:58+00:00</updated>
<author>
<name>Silvan Mosberger</name>
<email>silvan.mosberger@tweag.io</email>
</author>
<published>2024-12-10T19:23:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=84d4f874c2bac9f3118cb6907d7113b3318dcb5e'/>
<id>84d4f874c2bac9f3118cb6907d7113b3318dcb5e</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 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
    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 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
    result/bin/apply-formatting $NIXPKGS_PATH
</pre>
</div>
</content>
</entry>
<entry>
<title>tests.haskell.shellFor: change from using linear to cereal</title>
<updated>2024-01-15T09:25:53+00:00</updated>
<author>
<name>Dennis Gosnell</name>
<email>cdep.illabout@gmail.com</email>
</author>
<published>2024-01-15T09:25:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=9cc4b19ee67ccf6a7137d2570fc788f8cad8382b'/>
<id>9cc4b19ee67ccf6a7137d2570fc788f8cad8382b</id>
<content type='text'>
The current version of linear (1.22) has incorrect constraints in its
cabal file (which has been corrected in a revision), so it is causing
this test to fail.

This commit just switches to another arbitrary package (cereal) for the
tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The current version of linear (1.22) has incorrect constraints in its
cabal file (which has been corrected in a revision), so it is causing
this test to fail.

This commit just switches to another arbitrary package (cereal) for the
tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests.haskell.shellFor: change package used in extraDependencies test</title>
<updated>2023-07-04T06:38:23+00:00</updated>
<author>
<name>Dennis Gosnell</name>
<email>cdep.illabout@gmail.com</email>
</author>
<published>2023-07-04T06:38:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=55b8958f7d7e76a3328e7287c8c7d7572d980f9d'/>
<id>55b8958f7d7e76a3328e7287c8c7d7572d980f9d</id>
<content type='text'>
This commit does the following two things:

1.  Changes the Haskell package used in the extraDependencies test from
    releaser to conduit.  The reason for this is that conduit is more
    of a "core" package in Haskell, and it is more likely to always be
    working.  (If conduit is not compiling, then large chunks of Hackage
    won't be working.)

2.  Tighten up the GHCi test to actually use the package from
    extraDependencies.  It appears that GHCi can fail to import the
    package from extraDependencies, and that doesn't cause GHCi to
    return an error code, which means the test isn't actually testing
    anything.

    This new change makes it so that if the package from
    extraDependencies is actually not included for some reason, then
    this shellFor test should fail.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit does the following two things:

1.  Changes the Haskell package used in the extraDependencies test from
    releaser to conduit.  The reason for this is that conduit is more
    of a "core" package in Haskell, and it is more likely to always be
    working.  (If conduit is not compiling, then large chunks of Hackage
    won't be working.)

2.  Tighten up the GHCi test to actually use the package from
    extraDependencies.  It appears that GHCi can fail to import the
    package from extraDependencies, and that doesn't cause GHCi to
    return an error code, which means the test isn't actually testing
    anything.

    This new change makes it so that if the package from
    extraDependencies is actually not included for some reason, then
    this shellFor test should fail.
</pre>
</div>
</content>
</entry>
<entry>
<title>haskellPackages.shellFor: Add extraDependencies</title>
<updated>2022-03-15T19:38:22+00:00</updated>
<author>
<name>Robert Hensing</name>
<email>robert@roberthensing.nl</email>
</author>
<published>2022-03-15T19:36:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=2e87d165f74411ae00f964a508945696969ff53d'/>
<id>2e87d165f74411ae00f964a508945696969ff53d</id>
<content type='text'>
An example use case is when you have Haskell scripts that use
libraries that don't occur in your packages' dependencies.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An example use case is when you have Haskell scripts that use
libraries that don't occur in your packages' dependencies.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests.haskell: set meta.platforms</title>
<updated>2021-07-13T13:37:22+00:00</updated>
<author>
<name>sternenseemann</name>
<email>0rpkxez4ksa01gb3typccl0i@systemli.org</email>
</author>
<published>2021-07-13T13:37:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=3e19234f34b4ac3090771e9b72e24870e820486a'/>
<id>3e19234f34b4ac3090771e9b72e24870e820486a</id>
<content type='text'>
This allows packagePlatforms to pick up on the overall supported
platforms and schedule builds on Hydra for more than the evaluation
platform (usually x86_64-linux).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows packagePlatforms to pick up on the overall supported
platforms and schedule builds on Hydra for more than the evaluation
platform (usually x86_64-linux).
</pre>
</div>
</content>
</entry>
<entry>
<title>tests.haskell.shellFor: use writeText instead of toFile</title>
<updated>2021-05-01T20:58:35+00:00</updated>
<author>
<name>sternenseemann</name>
<email>0rpkxez4ksa01gb3typccl0i@systemli.org</email>
</author>
<published>2021-05-01T11:36:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=1bfa5e12913a04404d777a31fed5d4c5743865e6'/>
<id>1bfa5e12913a04404d777a31fed5d4c5743865e6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests.haskell.shellFor: replace database-id-class with linear</title>
<updated>2021-05-01T20:58:35+00:00</updated>
<author>
<name>sternenseemann</name>
<email>0rpkxez4ksa01gb3typccl0i@systemli.org</email>
</author>
<published>2021-05-01T11:25:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=9a0dc0fa3e19a360d28c8b102611feafad52afbd'/>
<id>9a0dc0fa3e19a360d28c8b102611feafad52afbd</id>
<content type='text'>
Contrary to database-id-class, linear is part of stackage and actively
maintained, so the test is less likely to fail due to version
constraint issues as it is currently.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Contrary to database-id-class, linear is part of stackage and actively
maintained, so the test is less likely to fail due to version
constraint issues as it is currently.
</pre>
</div>
</content>
</entry>
</feed>
