Questions tagged [nix]
a package manager and build system that parses reproducible build instructions specified in the Nix Expression Language
54 questions
1
vote
0
answers
10
views
Error `'config' is not a recognised command` received when installing `cardano-node` using Cardano-EZ-Installer (via Jambhala command `j setup)`:
I've been working my way through the installation instructions in order to get up and running with Plutus programming. As instructed, I ran j setup and cardano-cli was installed successfully. But when ...
0
votes
0
answers
8
views
nix-build for Pluto takes hours -- stills haven't finished
I have installed Nix 2.20.5 in my ubuntu 22.04.4, following Readme I ran nix-build in Pluto directory.
It's taking several hours(>4) in building packages,not sure hong long it will need to finish ...
0
votes
1
answer
29
views
Nix error trying to install correct GHC version for Plutus
As recommended by Haskell/Nix expert lan Burzynski, I'm trying to use Nix install the correct GHC version for Plutus as follows:
nix shell nixpkgs#haskell.compiler.ghc8107BinaryMinimal nixpkgs#cabal-...
1
vote
2
answers
185
views
Unable to build project using latest version of plutus-apps using nix develop
When I run cabal repl on my project using nix develop I get the following error:
Warning: Requested index-state 2023-02-20T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (...
1
vote
0
answers
43
views
setup a Plutus project use haskell.nix Error on Mac M1
I'm trying to set up a Plutus project with flake on my Macbook by IOHK document
I did the following steps:
create default.nix
enter command nix flake init --template templates#haskell-nix --impure
...
0
votes
1
answer
133
views
plutus-apps nix-shell on Mac M2 segmentation fault
I'm unable to run nix-shell on my new M2 Macbook.
I read through the posts from last year on setting up M1 Macbooks with previous plutus-apps tags, but the same steps do not seem to work.
Environment: ...
0
votes
1
answer
74
views
Error when executing nix-shell in plutus-apps
I am getting...
error: experimental Nix feature 'flakes' is disabled; use '--extra-experimental-features flakes' to override
...when trying to run nix-shell from plutus-apps repo.
Does anybody know ...
0
votes
1
answer
61
views
nix shell did not work in plutus-apps
I checkout to branch c2b310968d0915e2af0ea4680186b41ad88ffbe9 and run nix-shell at plutus-apps. No error, nothing change when I run nix-shell.I reinstalled nix, changed iohk-cache, reinstalled ubuntu. ...
0
votes
1
answer
96
views
cardano-node preprod testnet sync stuck in nix develop, possible headerError
Supposed to run testnet node in nix develop.
which cardano-node outputs /nix/store/y29rzxcr6vswgc5nhmind0cjbkqxi414-cardano-node-exe-cardano-node-1.35.3/bin/cardano-node
seems to be a HeaderError with ...
0
votes
1
answer
236
views
Configuring Nix Cardano Node for pre-production / preview
The build instructions using nix for the cardano node are well documented, however they currently lack an option to build pre-production and preview testnet.
Does anyone know which config I could ...
1
vote
1
answer
111
views
Plutus Playground Server error: opening lock file '/nix/...root.lock': Permission denied
So I've been going through the Plutus Pioneers 3rd cohort lectures and last night accidentally left my computer unplugged. When I booted up Ubuntu Linux on the computer this morning I noticed I have 3 ...
1
vote
1
answer
28
views
How do I set Up a Cabal file?
Whats a basic template I should use for cabal files that is easily customisable?
0
votes
1
answer
49
views
How to install the Marlowe Pioneers Daedalus bin in NixOS?
To enhance my education during the Marlowe Pioneers program (with simultaneous Emurgo Haskell Dev Pro course), I've been running NixOS as my daily driver for full immersion over the past two weeks or ...
1
vote
1
answer
211
views
Bad File Descriptor on nix-build of Plutus-Apps on Mac M1
I am seeing an error building Plutus-Apps on Mac M1.
After precisely following
https://github.com/renzwo/cardano-plutus-apps-install-m1/blob/main/README.md
UPDATE: This did resolve. These errors ...
0
votes
1
answer
272
views
Plutus Starter nix-shell build errors on MacOS Monterey M1 - ghc-cabal: Encountered missing or private dependencies
MacOS Monterey, Apple M1
Installed latest GHC via https://www.haskell.org/ghcup/ but not Stack.
Installed nix 2.8.0 multiuser
Set Cache in /etc/nix/nix.conf as below:
UPDATE: I have since updated nix....
0
votes
1
answer
70
views
nix attribute not found setting up Dapp repo
I modified slightly cabal.project of the plutus-apps to serve as base for my own application repo. It includes another repo of my own that is also a sligh modification of the plutus repo. If my own ...
0
votes
2
answers
46
views
Uninstalling Nix after Node, Db-sync & Postgres Installation
I have installed via Nix a cardano node, DB-sync and Postgres on a single server.
My plan is to pass my Postgres data into an Apache Kafka cluster.
My node is synced to tip and DB-sync is on epoch ...
2
votes
4
answers
609
views
Disk Space of Cardano node & Cardano DB-sync
I recently installed the Cardano node and Db-sync and Postgres using nix. I use a server with 97 GB of space, node version 1.34.1 and DB-sync version 12.0. The node took about 70 GB after fully synced ...
0
votes
1
answer
69
views
Why does building cardano-node require unreasonable amounts of disk space?
What is the reason behind the build process with nix requiring so much disk space when building cardano-node?
I totally understand when video games with 4K videos, high resolution textures, large ...
0
votes
1
answer
71
views
unable to start plutus-playground-server after full rebuild --> /bin/plutus-playground-server: No such file or directory
After having to completely re-install an OS and setup a development environment. attempting to run the plutus-playground-server after building it wiht nix-build -A plutus-playground.server once in nix-...
0
votes
1
answer
103
views
How Do you generate the Cabal and Nix files for a new project?
I built the plutus-apps repo from iohk, and then made a different folder to orgenise my projects. I want to know how to have the nix files needed to make the environment generated in the new project ...
1
vote
1
answer
265
views
"You may need to update to a newer hackage.nix" when trying to enter a nix-shell
I am trying to update the packages in my plutus app to the newest version of the PAB. I am by no means an expert with nix or cabal, or any haskell package managers for that matter. I can't seem to ...
2
votes
4
answers
385
views
How long Cardano node takes to be installed?
I'm running this script but it takes hours !
curl https://hydra.iohk.io/build/9941098/reproduce | bash
Any help?
Thanks
0
votes
1
answer
30
views
Error starting /plutus-apps client and connecting to localhost macOS
Incurred an error starting /plutus-apps client and connecting to localhost: user error, Interpreter Error, CompilationErrors
Short Error
plutus-playground-server: user error (Error evaluating ...
1
vote
0
answers
110
views
Errors with compiling when trying to install offchain-metadata-tools
Hello I am trying to install the offchain-metadata-tools library from IOHK and when using nix-build -A project I am getting this error below saying failed in linker phase when trying to connect to the ...
0
votes
1
answer
246
views
macOS Monterey i7, what is the best `nix.conf` file to use?
Does anyone have the recommended nix.conf file to use for macOS Monterey i7?
Following a few different tutorials, my current .conf file looks like:
build-users-group = nixbld
substituters = ...
1
vote
1
answer
251
views
What is the GC_DONT_GC=1 variable for when running the Plutus Playground locally?
I tried to look for this but I didn't find anything specifically explaining why this fixes errors when launching Plutus Playground locally, although I definitely found instructions on how to go over ...
0
votes
1
answer
374
views
nix doctor --verbose [FAIL] Multiple versions of nix found in PATH, on MacOS i7
After performing a git commit tag update on plutus-apps, I restarted my computer, and ran nix doctor --verbose and got the following FAIL
[FAIL] Multiple versions of nix found in PATH:
/nix/...
2
votes
1
answer
396
views
error: suspicious ownership or permission with nix-shell command on plutus-apps repository
Using the nix-shell command in a docker container on GitHub codespaces results in the following error:
$ nix-shell --show-trace
trace: To materialize project.plan-nix for cabal-install entirely, pass ...
0
votes
1
answer
200
views
nix-build not found inside nix-shell (Linux)
Every time I enter nix-shell, I need to execute the following command, otherwise nix-build and other nix-* commands are not found.
source /home/xxx/.nix-profile/etc/profile.d/nix.sh
I have added the ...
0
votes
3
answers
64
views
Is nix on an Intel Mac too problematic?
After too many errors I didn't know how to fix. I removed nix, even that was difficult. The nix blog show some progress in supporting M1 Macs but there are still problems. Has anyone succeeded with ...
1
vote
3
answers
649
views
nix installation issue on Fedora 35
I just ran sh <(curl -L https://nixos.org/nix/install) --daemon to install nix via its installation instructions. I proceeded through the installation menu where it backs up your bashrc and other ...
0
votes
2
answers
110
views
How to set plutus-apps NixOS options on Mac
This is the first time I've used nix. On plutus-apps readme, I changed nix.conf but I don't know how to do this step.
2.On NixOS, set the following NixOS options:
nix = {
binaryCaches = [ &...
1
vote
4
answers
680
views
WSL2 install - plutus fails to build, unable to open db file in 'nix/var/nix/db/db.sqlite'
I'm attempting to finish the setup for plutus pioneers cohort3 on wsl2 (Windows 10) with Ubunutu 20.04. When I run the command:
nix --extra-experimental-features nix-command build -f default.nix ...
1
vote
1
answer
215
views
Haskell Language Server - linker error: symbol sqlite3_fts3_may_be_corrupt
When I run haskell-language-server in nix-shell in plutus-pioneer-progam i get this error.
sqlite3_fts3_may_be_corrupt
whilst processing object file
/nix/store/jmhwwzn1yfjzlxavz16afkf1r4shmp8z-...
1
vote
3
answers
465
views
Installing on WLS2 - error: experimental Nix feature 'nix-command' is disabled
I am completely green here. I'm following the instructions laid out in https://docs.plutus-community.com/docs/setup/WindowsWSL.html to setup my windows environment for cohort 3 of the pioneer program ...
0
votes
2
answers
87
views
What is minimum RAM for running plutus-playground-server on Ubuntu VirtualBox?
I am facing this issues when running
$ nix-build -A plutus-playground.server
> error: 1 dependencies of derivation
> '/nix/store/39qxl421bhkzks2zrra7vy3yl6qqhsib-zlib-lib-zlib-0.6.2.3-config.drv'...
0
votes
1
answer
82
views
Need help installing pioneer-based code on intel Mac (Big Sur)
I'm following the instructions laid out in https://docs.plutus-community.com/docs/setup/MacOS.html to setup my intel Mac (Big Sur) dev environment for cohort 3 of the pioneer program and having issues....
-2
votes
1
answer
34
views
Wil I habe Problems with VirtualMachine?
I have a question: will I have problems installing Nix or Haskell on an Ubuntu VirtualMachine over Win11? Will I have problems with Plutus in the future? Would it be better to install Ubuntu only on ...
2
votes
1
answer
877
views
Nix is building ghc during on nix build command (How to fix the cache?)
I'm preparing the Plutus Pioneer program and installing the environment.
After installing nix and updating the "IOHK binary cache", I tried to do nix build but it seems that it is building ...
4
votes
3
answers
451
views
nix-shell did not create the server/client directories
I am trying to follow the instructions in https://docs.plutus-community.com/docs/setup/Ubuntu.html
The nix-shell command completes without any errors. But, I cannot cd to plutus-plaground-server or ...
0
votes
2
answers
2k
views
Error when installing nix : the group 'nixbld' specified in 'build-users-group' does not exist
I am trying to install nix/plutus following the below instructions :
https://docs.plutus-community.com/docs/setup/Ubuntu.html
The first step to install curl when fine. I get below error when ...
0
votes
1
answer
662
views
nix installation failure on mac with "curl: (60) SSL certificate problem: certificate has expired"
I'm trying to install nix on my macbook but I had following error message.
How can I fix this certificate expired problem?
macOS : High Sierra 10.13.6
Thanks in advance.
//-- error message ---
~ MyMac$...
2
votes
3
answers
532
views
Sandbox error when running nix build on macOS
I'm trying to get the exercises for week 1 of the plutus pioneer program working. I've installed nix and have set the IOHK caches.
When I try to run nix build -f default.nix plutus.haskell.packages....
1
vote
1
answer
106
views
Error Starting plutus-playground-client
I'm having error running the plutus-playground-client. Not sure where to look, here is the complete error log. Any suggestions on how to fix?
0 info it worked if it ends with ok
1 verbose cli [
1 ...
2
votes
1
answer
45
views
nix-build alonzo mainnet
I've installed cardano-node via nix-build:
git clone https://github.com/input-output-hk/cardano-node
cd cardano-node
git checkout tags/1.29.0 -b 1_29_0
nix-build -A scripts.mainnet.node -o mainnet-...
5
votes
2
answers
521
views
nix-shell stuck on Building library for hnix
I'm just gonna post a problem that I've been experiencing for a few days (and having a hard time searching for the answer on the internet) and the solution, so that future questions can refer to this ...
2
votes
1
answer
143
views
Error with cabal build using plutus-starter-devcontainer on macOS Big Sur
I'm working to set up the plutus-starter-devcontainer integration with VSCode.
Dev Environment:
macOS Big Sur 11.5.2
Docker Desktop 4.0.0
Following the instructions from here: https://github.com/...
2
votes
2
answers
273
views
How to compile plutus source code locally?
I'm trying to compile the Plutus source code locally, I tried cabal build in nix-shell,
getting this error
After searching the rest of the dependency tree exhaustively, these were the
goals I've had ...
2
votes
2
answers
2k
views
Installing nix: where is shell profile - MacOS using zsh?
I am trying to install nix on my local iMac. I am following the following Guide to do that. After executing
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
I ...