Skip to content

Pin nixpkgs to latest nixos-19.03 #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 2, 2019
Merged

Pin nixpkgs to latest nixos-19.03 #98

merged 9 commits into from
Apr 2, 2019

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Mar 21, 2019

This will fix the Hydra build, and ensure Buildkite and others can use cached builds of nix-tools.

I am not 100% certain what do do about pinning nixpkgs. This change means that users' <nixpkgs> is ignored. Maybe that's a good thing - for example, nix-tools depends on a ghc844 attribute that is not available in some versions of nixpkgs (see #70).

@rvl rvl self-assigned this Mar 21, 2019
@rvl rvl requested review from angerman and jbgi March 21, 2019 23:49
@rvl rvl added this to the Beta Release milestone Mar 21, 2019
@rvl rvl force-pushed the rvl/nixpkgs-pin branch 4 times, most recently from a7fa8cb to 1c3be2d Compare March 22, 2019 05:55
{ pkgs ? import <nixpkgs> {}
{ pkgs ? import nixpkgs {}
# Use a pinned nixpkgs rather than the one on NIX_PATH
, nixpkgs ? ./nixpkgs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not do this the same as the other pins below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other pins (hackage and stackage) can be overridden with a json file because that will be a fairly common thing to do for users -- running nix-prefetch-git to select a more recent revision of hackage or stackage from github.

For the pkgs/nixpkgs args I want to use the "normal" pattern for pinning.

@michaelpj
Copy link
Collaborator

I think this is fine, although probably clients should pass in whatever nixpkgs they're using as an argument. e.g. in iohk-nix we should pass in the pinned nixpkgs it provides as the argument here.

It might be fine not to do this, but I would worry about e.g. a package built with haskell.nix having to work with a non-haskell package and them having different system dependencies because haskell.nix is using a different pin.

@rvl
Copy link
Contributor Author

rvl commented Mar 22, 2019

Alas the CI is failing because haskell.compiler.ghc863 does not exist in 19.03.
I will need to either change it to a revision on 18.09 or update nix-tools.

@rvl rvl force-pushed the rvl/nixpkgs-pin branch from 1c3be2d to 16ae22b Compare April 2, 2019 02:21
@rvl rvl force-pushed the rvl/nixpkgs-pin branch from 16ae22b to 01e681f Compare April 2, 2019 02:33
rvl added 3 commits April 2, 2019 12:34
I plan to delete the auto-generated nix expressions in nix-tools so
that it is a pure cabal project.
@rvl rvl force-pushed the rvl/nixpkgs-pin branch from 01e681f to 5e0d5e2 Compare April 2, 2019 02:34
Copy link
Collaborator

@angerman angerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@rvl
Copy link
Contributor Author

rvl commented Apr 2, 2019

I have made ghc864 builds work and regenerated the nix files for nix-tools.

https://hydra.iohk.io/jobset/Cardano/haskell-nix-pr-98

@rvl
Copy link
Contributor Author

rvl commented Apr 2, 2019

@angerman - aa4dbaa - was this a bug in plan-to-nix? Is there an open issue for it?

@rvl rvl merged commit f31273e into master Apr 2, 2019
@rvl rvl deleted the rvl/nixpkgs-pin branch April 2, 2019 20:56
andreabedini pushed a commit to andreabedini/haskell.nix that referenced this pull request Sep 14, 2022
…is locked) (input-output-hk#98)

* Fix stack-to-nix: .stack-to-nix.cache: openFile: resource busy (file is locked)

* Use deepseq fmap instead of seq fmap

* niv update haskell.nix

* Fix for buildkite

Co-authored-by: Samuel Evans-Powell <[email protected]>
Co-authored-by: Hamish Mackenzie <[email protected]>
andreabedini pushed a commit to andreabedini/haskell.nix that referenced this pull request Sep 14, 2022
…is locked) (input-output-hk#98)

* Fix stack-to-nix: .stack-to-nix.cache: openFile: resource busy (file is locked)

* Use deepseq fmap instead of seq fmap

* niv update haskell.nix

* Fix for buildkite

Co-authored-by: Samuel Evans-Powell <[email protected]>
Co-authored-by: Hamish Mackenzie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants