Closed deemp closed 2 years ago
It looks like you're also installing Nix via cachix/install-nix-action
while the instructions in the README of this repository are to only use rikhuijzer/cache-install
. Then, this Action can handle the permissions when installing Nix.
Having said that, I'm trying to get it to work but don't have much success yet. I've removed the cachix/install-nix-actions
and changed your default.nix
to
let
nixpkgs = builtins.fetchGit {
url = "https://github.com/NixOS/nixpkgs.git";
rev = "2291838453cd4fc3622aa73270390fc86c4ebf3e";
};
in with (import (builtins.fetchGit {
url = "https://github.com/dmjio/miso";
ref = "refs/tags/1.8.2";
}) {});
pkgs.haskell.packages.ghcjs.callCabal2nix "try-ghcjs" ./. {}
but then nix-shell default.nix
gives
error: builder for '/nix/store/7zn7jf9bqj207gwj5jmqvc25b7iwsaqm-ghcjs-base-01014ad.drv' failed with exit code 1;
last 10 log lines:
> Initialized empty Git repository in /nix/store/rw6wianl67igvdka1jrddbsrq3q2kri8-ghcjs-base-01014ad/.git/
> fatal: remote error:
> The unauthenticated git protocol on port 9418 is no longer supported.
> Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
>
> fatal: remote error:
> The unauthenticated git protocol on port 9418 is no longer supported.
> Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
>
> Unable to checkout 01014ade3f8f5ae677df192d7c2a208bd795b96c from git://github.com/ghcjs/ghcjs-base.
For full logs, run 'nix log /nix/store/7zn7jf9bqj207gwj5jmqvc25b7iwsaqm-ghcjs-base-01014ad.drv'.
error: 1 dependencies of derivation '/nix/store/9bnzmda3sphnwzbzqryd1hc8ay9zjcvz-ghcjs-base-0.2.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xyfry5pax1ph3rf0g6al16rccdcralaj-miso-1.8.2.0.drv' failed to build
error: build of '/nix/store/3hbxj8hkg9cw0kzvl8j5xzrys0pc5z74-ghcjs-8.6.0.1.drv', '/nix/store/85ayr5fziyydm0hh5k4gfvvlr4p2laqi-ghc-8.6.4.drv', '/nix/store/xyfry5pax1ph3rf0g6al16rccdcralaj-miso-1.8.2.0.drv' failed
I saw the same thing when running against NixOS stable in CI.
Thank you! Got a similar error when trying to follow nix's CI guide. That's, probably, a ghcjs
problem. Maybe will just build js
locally and then push
Hi, @rikhuijzer! Trying to build my simple app to deploy to GH pages. Followed this example and succesfully built locally. But get such error on GitHub. Here's the text:
Do you have any idea how to fix this?