-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2997: Flakify nix build r=jbgi a=jbgi Adds a `flake.nix` file. ## Checklist - [x] Flake build with `nix build .#cardano-wallet` succeeds. - [x] (optional) Legacy build with `nix-build -A cardano-wallet` works - [x] Release build with `nix-build release.nix -A cardano-wallet-linux64` works. - [x] Cabal build inside `nix develop` works. - [x] Stack build inside `nix develop` works. - [x] Direnv config uses flake. - [x] Flake is built in a Hydra jobset. All jobs pass in this jobset and there are no evaluation errors. => https://hydra.iohk.io/jobset/Cardano/cardano-wallet-flake - [x] PR opened on `ci-ops` to update Hydra jobsets for cardano-wallet master branch, bors staging/trying, and PRs, so that they build with nix flakes. => input-output-hk/ci-ops#85 - [x] Development environment (`nix develop`) is cached on Hydra - for Linux at least. - [x] Release build is cached on Hydra. - [x] Nix closure size of cardano-wallet derivation has not increased due to unnecessary added dependencies. - [x] Documentation (docs directory, nix code comments, etc) has been updated to use nix flake commands instead of nix-build/nix-shell. - [x] Instructions for bumping nix dependencies have been updated to use `nix flake` commands. - [x] Buildkite and GitHub actions CI passes. ## Issue number ADP-983 Co-authored-by: Jean-Baptiste Giraudeau <jean-baptiste.giraudeau@iohk.io> Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
- Loading branch information
Showing
175 changed files
with
2,844 additions
and
2,862 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
if [ -e .envrc-override ]; then | ||
# This env file will trump lorri, if present. | ||
# This env file will trump nix-direnv, if present. | ||
source_env .envrc-override | ||
elif type lorri &>/dev/null; then | ||
eval "$(lorri direnv)" | ||
else | ||
# Fall back to using direnv's builtin nix support | ||
# to prevent bootstrapping problems. | ||
# It's definitely better to use lorri, because direnv won't | ||
# be fast like this. | ||
use nix | ||
# Requires nix-direnv | ||
use flake | ||
fi | ||
|
||
# Source a user-specific config in ./.envrc-local | ||
# Source a user-specific config in .envrc-local | ||
source_env_if_exists .envrc-local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,6 @@ hie.yaml | |
|
||
### Nix ### | ||
/result* | ||
/.stack-to-nix.cache | ||
/.nix-shell-cabal.project* | ||
|
||
### Direnv ### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.