Skip to content

Commit

Permalink
Update flake.nix to reflect checksum on macOS (#1775)
Browse files Browse the repository at this point in the history
I tried running `nix run github:lem-project/lem` on NixOS and macOS. On NixOS, this runs fine. However on macOS it shows this error message:

```
error: hash mismatch in fixed-output derivation '/nix/store/3sy98z0x1s7jnjnrjrx4mzhrhyhqk4px-lem-qlot-bundle-unstable.drv':
         specified: sha256-NtCSBxEo/4uuhlLc9Xqlq+PM1fAbDfRBH64imMLvKYE=
            got:    sha256-BV1m58fUe1zfLH5iKbDP7KTNhv1p+g3W99tFQFYxPqs=
error: 1 dependencies of derivation '/nix/store/y74flmb9scgzz5h75hqqvidb6cicwwff-sbcl-lem-ncurses-unstable.drv' failed to build
```

This commit fixes that by adding an `if` condition on checksum.
  • Loading branch information
execat authored Feb 27, 2025
1 parent 8d5c80d commit 311138d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@
dontBuild = true;
dontFixup = true;
outputHashMode = "recursive";
outputHash =
outputHash = if pkgs.stdenv.isDarwin then
"sha256-BV1m58fUe1zfLH5iKbDP7KTNhv1p+g3W99tFQFYxPqs="
else
"sha256-NtCSBxEo/4uuhlLc9Xqlq+PM1fAbDfRBH64imMLvKYE=";
};

Expand Down

0 comments on commit 311138d

Please sign in to comment.