Skip to content

Commit

Permalink
default.nix: nix long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbauer committed Aug 7, 2018
1 parent e7be6e0 commit 5c80db9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
let requiredVersion = import ./lib/minver.nix; in

if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.nixVersion == 1 then
if ! builtins ? nixVersion ||
builtins.compareVersions requiredVersion builtins.nixVersion == 1 then

abort ''
This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade:
- If you are running NixOS, `nixos-rebuild' can be used to upgrade your system.
- If you are running NixOS, `nixos-rebuild' can be used to upgrade
your system.
- Alternatively, with Nix > 2.0 `nix upgrade-nix' can be used to imperatively
upgrade Nix. You may use `nix-env --version' to check which version you have.
- Alternatively, with Nix > 2.0 `nix upgrade-nix' can be used to
imperatively upgrade Nix. You may use `nix-env --version' to
check which version you have.
- If you installed Nix using the install script (https://nixos.org/nix/install),
it is safe to upgrade by running it again:
- If you installed Nix using the install script
(https://nixos.org/nix/install), it is safe to upgrade by
running it again:
curl https://nixos.org/nix/install | sh
''
Expand Down

0 comments on commit 5c80db9

Please sign in to comment.