Questions tagged [nix]

Nix is a purely functional package manager.

Nix is a purely functional package manager. This means that it treats packages like values in purely functional programming languages such as Haskell — they are built by functions that don’t have side-effects, and they never change after they have been built.

Home page: http://nixos.org/nix

770 questions
0
votes
1 answer

Stack build without storing output in nix store?

I've been running stack build on a project multiple times - and each time it seems to save the result in the /nix/store which requires a lot of storage over time. Is there a way I can NOT save the result to the store?
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
0
votes
0 answers

Godot Nix Expression Fails

I've added the following nix expression to my project (verbatem from nixpkgs) and tried to build it, but I get the following error message: these derivations will be built: /nix/store/l6l5j1gas74pnzc2pb8w9fv2namxpgki-godot-3.0.6.drv building…
George
  • 6,927
  • 4
  • 34
  • 67
0
votes
0 answers

Headless setup of NixOS on raspberry pi3

Having followed Zupo's execellent post which was mentioned in a NixOs Weekly, I wondered if it might be possible to setup a rasberry pi3 without the need for a monitor and use wifi rather than an ethernet cable. There are all ready several blogs…
potong
  • 55,640
  • 6
  • 51
  • 83
0
votes
1 answer

Linker errors when trying to compile static executable with stack on Nixos

It seems I might need to add some 'packages' to the nix dependencies, though I'm not sure how to determine which packages (besides a tedious web search for each lm,lrt...)? stack install Building all executables for `sodiumSierraStrawberry'…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
0
votes
1 answer

SSL peer certificate or SSH remote key was not OK (60) for a fresh Nix installation

Fresh installation of Nix on Mac OS El Captain; I am getting the above error. Simply trying to run nix-env -i hello. Curling other resources works. Tried removing /nix and reinstalling, didnt help.
Russ Kiselev
  • 173
  • 11
0
votes
2 answers

Adding make targets to default.nix

I have a default.nix file that looks like this: with import {}; stdenv.mkDerivation { name = "tsm"; src = ./.; enableParallelBuilding = true; cmakeFlags = ["-DGTEST_INCLUDE_DIR=${gtest}/include -DBUILD_COVERAGE=ON"]; buildInputs = [gcc…
Sriram
  • 345
  • 2
  • 14
0
votes
1 answer

How can I stream test output when building a Haskell package with Nix?

I have a project built with Nix on Hydra. When the tests are run for it, it prints the logs to a file, which makes them hard to view from a CI server. Is there a way I can make the project print stdout/err as the test suite runs? This is what I…
MaxGabriel
  • 7,617
  • 4
  • 35
  • 82
0
votes
2 answers

Does nix upgrade support restarting and reconfiguring services?

I'm new to nix. I see that there is --upgrade option that allows to install a new version package, but what if this is just a configuration change and the service just needs a signal to reload the configuration? It could be notified on the…
sevo
  • 4,559
  • 1
  • 15
  • 31
0
votes
1 answer

What does installing from '' mean?

How is nix-env -f '' -i ... different to just nix-env -i ...? I would have guessed that nixpkgs is the default source of packages.
Stuart K
  • 3,212
  • 4
  • 22
  • 27
0
votes
1 answer

In Nix, how can I refactor this configuration?

So I'm playing around with home-manager in NixOS for managing my dotfiles. I have something in one of my dotfiles that looks like this: my_color0 = ${xrdb:color0} my_color1 = ${xrdb:color1} my_color2 = ${xrdb:color2} my_color3 =…
Jonathan
  • 10,571
  • 13
  • 67
  • 103
0
votes
1 answer

Haskell Stack Error on NixOS: "There are files missing in the package"

I'm trying to build a package that I have verified works on non-NixOS distros. Here is the error: $ stack --nix build th-expand-syns-0.4.4.0: configure th-expand-syns-0.4.4.0: build bytes-0.15.3: configure bytes-0.15.3: build …
George
  • 6,927
  • 4
  • 34
  • 67
0
votes
1 answer

How do I set the ulimit in a nix build shell?

I am attempting to install the certbot package for nix, and it fails during the tests every time because the tests hit the open file limit on the system. I have modified the certbot install script just enough to print out the ulimit at the beginning…
Savanni D'Gerinel
  • 2,379
  • 17
  • 27
0
votes
0 answers

Linking problems with nix package manager and termux

I tried to install the nix package manager on an Android device with termux. When I try to execute the nix applicatives (for instance nix-store or nix-env) I get the following…
Giorgio Mossa
  • 235
  • 2
  • 13
0
votes
1 answer

Issue downloading Compose for Docker on NixOS

I am attending a hackathon. It's early morning, and I'm going to sleep before the sun rise. I am hoping someone here knows how to install Compose for Docker, as it is required for running Gitcoin Web docker. I am new to Docker and NixOS. Here is a…
Casey
  • 444
  • 1
  • 7
  • 22
0
votes
2 answers

Build a nix package

I am trying to build a nix package for the datomic database. here is the derivation so far: { stdenv, fetchurl, unzip }: …
ftravers
  • 3,809
  • 3
  • 37
  • 38