Skip to content

Commit

Permalink
Fix nix update scripts to work without using a system-wide nixFlake
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgi committed May 31, 2021
1 parent 1602788 commit a4ddac5
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions nix/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Nix dependencies

Cardano-node nix build depends primarily on [haskell.nix](https://github.com/input-output-hk/haskell.nix) and secondarily, for some utilities, on [iohk-nix](https://github.com/input-output-hk/iohk-nix/).

Both can be updated from within a cardano-node `nix-shell` with:

```
nix flake update --update-input haskellNix
nix flake update --update-input iohkNix
```

Or from outside the `nix-shell` with the scripts:

```
./nix/update-haskellNix.sh
./nix/update-iohkNix.sh
```
4 changes: 4 additions & 0 deletions nix/update-haskellNix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
cd "$(dirname "$0")/.."
nix-shell -I nixpkgs=./nix -p nixWrapped \
--run "nix flake update --update-input haskellNix"
3 changes: 0 additions & 3 deletions nix/update-iohk-nix.sh

This file was deleted.

4 changes: 4 additions & 0 deletions nix/update-iohkNix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
cd "$(dirname "$0")/.."
nix-shell -I nixpkgs=./nix -p nixWrapped \
--run "nix flake update --update-input iohkNix"

0 comments on commit a4ddac5

Please sign in to comment.