Skip to content

Instantly share code, notes, and snippets.

@hhefesto
Created January 23, 2020 18:52
Show Gist options
  • Save hhefesto/44795950dded7d1c4f8a8cec7fadadc2 to your computer and use it in GitHub Desktop.
Save hhefesto/44795950dded7d1c4f8a8cec7fadadc2 to your computer and use it in GitHub Desktop.
╭─hhefesto@Olimpo ~/src/purescript-nix-example ‹master*›
╰─$ git reset --hard HEAD 1 ↵
HEAD is now at 854868d fix bundle command
╭─hhefesto@Olimpo ~/src/purescript-nix-example ‹master›
╰─$ nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/d3f928282c0989232e425d26f0302120a8c7218b.tar.gz --pure shell.nix
[nix-shell:~/src/purescript-nix-example]$ yarn clean
yarn run v1.19.2
$ rm -rf output .spago dist/* node_modules output .cache .spago2nix
Done in 0.42s.
[nix-shell:~/src/purescript-nix-example]$ yarn install
yarn install v1.19.2
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.11: The platform "linux" is incompatible with this module.
info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[-/5] ⠐ waiting...
[5/5] ⠐ parcel-bundler
[3/5] ⠈ purescript
[4/5] ⠈ spago
error /home/hhefesto/src/purescript-nix-example/node_modules/purescript: Command failed.
Exit code: 1
Command: install-purescript --purs-ver=0.13.5
Arguments:
Directory: /home/hhefesto/src/purescript-nix-example/node_modules/purescript
Output:
[ SUCCESS ] Check if a prebuilt 0.13.5 binary is provided for linux (2s)
[ SUCCESS ] Download the prebuilt PureScript binary (34s)
[ FAILURE ] Verify the prebuilt binary works correctly
Error: spawn /home/hhefesto/src/purescript-nix-example/node_modules/purescript/purs.bin ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
↓ Fallback: building from source
[ FAILURE ] Check if 'stack' command is available
Error: Command failed with exit code 2 (ENOENT): stack --allow-different-user --numeric-version
spawn stack ENOENT
[nix-shell:~/src/purescript-nix-example]$ yarn full-clean
yarn run v1.19.2
$ rm -rf node_modules output .spago dist/* *.lock spago-packages.nix yarn.nix .spago2nix .cache spago.dhall packages.dhall
Done in 0.43s.
[nix-shell:~/src/purescript-nix-example]$ yarn install
yarn install v1.19.2
info No lockfile found.
[1/4] Resolving packages...
warning parcel-bundler > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning parcel-bundler > babylon-walk > babel-runtime > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
[2/4] Fetching packages...
info fsevents@1.2.11: The platform "linux" is incompatible with this module.
info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[-/5] ⢀ waiting...
[5/5] ⢀ parcel-bundler
[3/5] ⢀ purescript
[4/5] ⢀ spago
error /home/hhefesto/src/purescript-nix-example/node_modules/purescript: Command failed.
Exit code: 1
Command: install-purescript --purs-ver=0.13.6
Arguments:
Directory: /home/hhefesto/src/purescript-nix-example/node_modules/purescript
Output:
[ SUCCESS ] Check if a prebuilt 0.13.6 binary is provided for linux (1s)
[ SUCCESS ] Download the prebuilt PureScript binary (18s)
[ FAILURE ] Verify the prebuilt binary works correctly
Error: spawn /home/hhefesto/src/purescript-nix-example/node_modules/purescript/purs.bin ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
↓ Fallback: building from source
[ FAILURE ] Check if 'stack' command is available
Error: Command failed with exit code 2 (ENOENT): stack --allow-different-user --numeric-version
spawn stack ENOENT
[nix-shell:~/src/purescript-nix-example]$ which stack
The program ‘which’ is currently not installed. It is provided by
several packages. You can install it by typing one of the following:
nix-env -iA nixos.busybox
nix-env -iA nixos.debianutils
nix-env -iA nixos.toybox
nix-env -iA nixos.which
[nix-shell:~/src/purescript-nix-example]$ stack --version
The program ‘stack’ is currently not installed. You can install it by typing:
nix-env -iA nixos.stack
[nix-shell:~/src/purescript-nix-example]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment