Questions tagged [nix]

a package manager and build system that parses reproducible build instructions specified in the Nix Expression Language

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 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 ...
user1532146's user avatar
0 votes
1 answer
23 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-...
Eric's user avatar
  • 85
0 votes
0 answers
91 views

I am getting error when using nix build command

when using following command nix --extra-experimental-features nix-command build -f default.nix plutus.haskell.pack ages.plutus-core.components.library getting following error error: could not set ...
krishna babu's user avatar
1 vote
2 answers
161 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 (...
Eric's user avatar
  • 85
1 vote
0 answers
38 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 ...
nik's user avatar
  • 11
0 votes
1 answer
122 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: ...
Woodland Pools's user avatar
0 votes
1 answer
68 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 ...
Falcon Stakepool's user avatar
0 votes
2 answers
60 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. ...
Ming's user avatar
  • 1
0 votes
1 answer
81 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 ...
Hud's user avatar
  • 433
0 votes
1 answer
224 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 ...
cb0's user avatar
  • 103
1 vote
1 answer
104 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 ...
Ryan Thackston's user avatar
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?
KryptoKing's user avatar
0 votes
1 answer
43 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 ...
DeCentN2Madness's user avatar
1 vote
1 answer
196 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 ...
Deano's user avatar
  • 100
0 votes
1 answer
265 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....
Deano's user avatar
  • 100
0 votes
1 answer
65 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 ...
agocorona's user avatar
0 votes
2 answers
41 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 ...
George's user avatar
  • 35
2 votes
4 answers
511 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 ...
George's user avatar
  • 35
0 votes
1 answer
63 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 ...
DaveStrider's user avatar
0 votes
1 answer
69 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-...
Why_Is_This_Hard's user avatar
0 votes
1 answer
100 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 ...
KryptoKing's user avatar
1 vote
1 answer
256 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 ...
cmallalieu's user avatar
2 votes
4 answers
375 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
xserra68's user avatar
0 votes
1 answer
29 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 ...
TheStophe's user avatar
  • 400
1 vote
0 answers
101 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 ...
Visionzzz's user avatar
0 votes
1 answer
230 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 = ...
TheStophe's user avatar
  • 400
1 vote
1 answer
223 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 ...
joaquimgamero's user avatar
0 votes
1 answer
323 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/...
TheStophe's user avatar
  • 400
2 votes
1 answer
347 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 ...
deimagjas's user avatar
0 votes
1 answer
191 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 ...
Cyrus's user avatar
  • 11
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 ...
Gary Struthers's user avatar
1 vote
3 answers
605 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 ...
drock00's user avatar
  • 41
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 = [ &...
Gary Struthers's user avatar
1 vote
4 answers
618 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 ...
David Wilkins's user avatar
1 vote
1 answer
214 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-...
Johan Wahlqvist's user avatar
1 vote
4 answers
414 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 ...
Flesk69's user avatar
  • 25
0 votes
2 answers
84 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'...
Miro's user avatar
  • 1
0 votes
1 answer
78 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....
Steve Mason's user avatar
-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 ...
Marian Vasilof's user avatar
2 votes
1 answer
816 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 ...
Tae Euy's user avatar
  • 25
4 votes
3 answers
446 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 ...
wakathi's user avatar
  • 100
0 votes
2 answers
1k 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 ...
wakathi's user avatar
  • 100
0 votes
1 answer
580 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$...
Tae Euy's user avatar
  • 25
2 votes
3 answers
431 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....
Paymahn Moghadasian's user avatar
1 vote
1 answer
102 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 ...
Local Host's user avatar
3 votes
1 answer
44 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-...
Hud's user avatar
  • 433
6 votes
2 answers
446 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 ...
Owen Yuwono's user avatar
3 votes
1 answer
141 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/...
Brandon's user avatar
  • 151
2 votes
2 answers
262 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 ...
Prashanth S.'s user avatar
2 votes
2 answers
1k 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 ...
codeasasin's user avatar