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

install haskell-platform on nixOS

It's said to be a good starting point for haskell-beginners: the haskell platform. unfortunately, it looks like it's been removed from the nix-os package manager. What would be the preferred way to quickly get this up and running on a nix-os system?
Anton Harald
  • 5,772
  • 4
  • 27
  • 61
0
votes
2 answers

Nix on OSX fails to build nano?

I'm trying to use nix and I've run into a problem which I think is related to nix failing to build nano, but I'm not certain. I'm on OSX 10.11.4 (I'm very new to Macs as well) and am getting the following error: clang -DHAVE_CONFIG_H -I. -I.. …
Gregory
  • 1,205
  • 10
  • 17
0
votes
0 answers

How to achieve build isolation and caching simultaneously?

I am experimenting with tools like Docker and nix to see if there is a modern solution to build environment dependency hell. Docker has no knowledge or ability to cache packages downloaded within the (usually linux) environment inside the…
Andrew Wagner
  • 22,677
  • 21
  • 86
  • 100
0
votes
1 answer

How to add linux config in configuration.nix

I currently have this in my nixpkgs.config packageOverrides = pkgs: rec { netbeans81 = pkgs.stdenv.lib.overrideDerivation pkgs.netbeans ( oldAttrs: { name = "netbeans-8.1"; src = pkgs.fetchurl { url =…
John Mercier
  • 1,637
  • 3
  • 20
  • 44
0
votes
1 answer

glpk and pcre not found (NIXOS)

I am trying to build my own nix-shell environment in my NixOS. I have 2 .nix file, default.nix and shell.nix, here's the configuration: default.nix: { stdenv, haskellngPackages}: let env = haskellngPackages (p: with p; [ aeson …
Rizary
  • 123
  • 1
  • 7
0
votes
1 answer

Using unshare and still executing original function

I am trying to generalize and make a shell script out of the instructions on this page, specifically here: https://nixos.org/wiki/How_to_add_files_to_the_nix-store#Large_files because of Nix's failure to handle a 4.5 GB file, I get out of memory…
user1971598
0
votes
1 answer

What might this ghcjs-boot error mean?

I'm trying to try out GHCJS, and I get this error during ghcjs-boot: (https://gist.github.com/Wizek/e4a73c6e9542a119ddd6) ➜ ghcjs-test load-env-ghc7103 ghcjs-boot env-ghc7103 loaded program ghcjs found at ./.cabal-sandbox/bin/ghcjs program…
Wizek
  • 4,854
  • 2
  • 25
  • 52
0
votes
1 answer

Does Nix recognize already installed packages?

I want to clarify regarding dependencies installed by Nix. I have a linux installation which has packages D1 and D2 installed. Now I install Nix and then a package through Nix which needs dependencies D1 and D2. Will Nix reinstall D1 and D2 again or…
rnso
  • 23,686
  • 25
  • 112
  • 234
0
votes
1 answer

Package installed by Nix not in Mate desktop menu

I have used Nix package manager to install Abiword in a Slackware/Salix install with Mate desktop. The application runs fine but it has not appeared in the main Menu. Is this usual for applications installed by Nix?
rnso
  • 23,686
  • 25
  • 112
  • 234
0
votes
2 answers

If for a package a distribution exists for NixOS, then is it possible to (easily) install that package to Ubuntu using Nix, if yes how?

Here is this Haskell package. For this package there is a distribution for NixOS. If such a distribution for NixOS exists then is it easy to install the same package to Ubuntu on which the Nix package manager is installed ? If yes, how ? If not,…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
0
votes
0 answers

/usr/bin/ld: cannot find -lsqlite3

while installing nix I am getting this error.when I doing make. LD src/libstore/libnixstore.so /usr/bin/ld: cannot find -lsqlite3 /usr/bin/ld: cannot find -lbz2 collect2: error: ld returned 1 exit status make: *** [src/libstore/libnixstore.so]…
Kapil
  • 817
  • 2
  • 13
  • 25
0
votes
2 answers

How to enable php in NixOs

I'm trying to setup an LAMP environment with NixOs. I managed to have mysql and apache running, but I can't find a way to enable php. At the moment, apache is serving php file as text instead of executing it. I've seen there is a enablePHP option…
mb14
  • 22,276
  • 7
  • 60
  • 102
-1
votes
1 answer

what is ${modulesPath} is configuration.nix

In /etc/nixos/configuration.nix, I have this code { lib, pkgs, config, modulesPath, ... }: with lib; let nixos-wsl = import ./nixos-wsl; in { imports = [ "${modulesPath}/profiles/minimal.nix" nixos-wsl.nixosModules.wsl ]; I would…
-1
votes
1 answer

Can't get basic nix home manager setup working

I've followed the instructions in the manual exactly, but am getting an error. I've run the following as specified: $ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager $ nix-channel --update $ export…
James Flight
  • 1,424
  • 1
  • 13
  • 21
-1
votes
1 answer

How build pyobjc 7.3 with nix?

I want to build pyobjc-7.3, because it has fix for send2trash. Classic building on BigSur 20.5.0 is strait forward. cd pyobjc-7.3/pyobjc-framework-Cocoa python3 setup.py build though once I run same build inside nix-shell magic happens. nix-shell…
Daniil Iaitskov
  • 5,525
  • 8
  • 39
  • 49
1 2 3
51
52