Questions tagged [nixpkgs]

Nixpkgs is the collection of packages available via Nix package manager.

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

84 questions
3
votes
0 answers

Nixpkgs Overlays: Why are some non-overwritten attributes different between "super" and "self"?

Background When I've added the first Overlay for Nixpkgs, I found out that a bunch of system utils got built for a different version: these derivations will be built: /nix/store/028dqnwq36xja16gba3gckq5mcprpn06-postfix-main.cf.drv …
zetavg
  • 318
  • 1
  • 9
3
votes
1 answer

How to write a shell.nix file which combines other nix-shell environments?

I want to write a shell.nix file that will provide me a development environment which includes developer tools + haskell dependencies. I would like to keep my nix expressions separate - for now that means one file containing information about my…
ocstat
  • 189
  • 3
  • 8
3
votes
1 answer

Docker — Cannot connect to the Docker daemon at unix:///var/run/docker.sock

I installed Docker 17.12.0-ce via Nix in Ubuntu (Linux uplink 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux), but every time I try to execute any Docker command, it keeps telling me: Cannot…
x80486
  • 6,627
  • 5
  • 52
  • 111
3
votes
1 answer

nix-prefetch-git sha256 requirement with using a revision over a tag

question when using nix-prefetch-git with a --rev, do we actually really need a sha256 also? assumption i understand this requirement when using git with tags since tags can be reattached to a different rev. so my current theory is that we distrust…
qknight
  • 866
  • 10
  • 23
3
votes
1 answer

How to get newer Nixpkgs stdenv versions to set the NIX_CFLAGS/NIX_LDFLAGS for 'libav'?

The stdenv of newer Nixpkgs versions fails to set the NIX_CFLAGS/NIX_LDFLAGS for the package libav, which has worked in older versions. What am I doing wong? The following script illustrates the problem. It runs several builds with buildInputs = […
ens
  • 1,068
  • 13
  • 14
3
votes
2 answers

Haskell / Stack / Nix build fails, requiring pkg-config >= 0.9.0 and cairo >= 1.2.0, but latest versions are pkg-config 0.29.2 and cairo 1.15.4

I'm building a Haskell project using Stack and Nix and depending on the cairo library from Hackage. When I build the project, I get an error: unable to find pkg-config >= 0.9.0 or cairo >= 1.2.0. However, the latest versions according to their…
saylu
  • 31
  • 4
3
votes
1 answer

How to use an idris package installed with a nixpkg in another nixpkg?

Currently I am having some trouble using an Idris package that was installed with nixpkg in another Idris package that depends on it. Both of these packages have been tested on a Debian system, so the problem is not with the Idris code itself, but…
3
votes
1 answer

How can I create a development shell for qt 5.5 with debug symbols in the qt libraries

I have a development shell with a buildInputs entry that includes qt55.qtbase. This works great. Today, I got a seg fault that happens in a qt library and I'd like qt libraries with debug symbols. I took a look at…
helpwithhaskell
  • 558
  • 4
  • 13
2
votes
0 answers

Infinite recursion while loading nixpkgs

I'm relatively new to nix, and I'm really clueless about what is happening. I'm getting the following while attempting to load nixpkgs: ~ % nix repl '' warning: future versions of Nix will require using `--file` to load a file Welcome to…
Annibale
  • 241
  • 3
  • 6
2
votes
2 answers

Infinite recursion when referring to pkgs.system from Nix module options section

The following is a minimal reproducer for an infinite recursion error when building a nixos configuration: (import ) { configuration = { pkgs, ... }: { options = builtins.trace "Building a system with system ${pkgs.system}" {}; …
Charles Duffy
  • 280,126
  • 43
  • 390
  • 441
2
votes
1 answer

How do you build an executable from haskell packages (which use stack / cabal) in nix?

I'm looking for something similar to this: shell.nix { pkgs ? import {} }: let threadscope = ... speedscope = ... in stdenv.mkDerivation { name = "haskell-env"; nativeBuildInputs = [ # Haskell tools ghcid ghc …
Noel Kwan
  • 123
  • 1
  • 5
2
votes
2 answers

How can I install binary file into NixOS

I'm trying to install external binary inside NixOS, using declarative ways. Inside nix-pkg manual, I found such way of getting external binary inside NixOS { pkgs ? import {} }: pkgs.stdenv.mkDerivation { name = "goss"; src =…
dragonhaze
  • 189
  • 1
  • 8
2
votes
1 answer

How can I install some nix packages?

I know how to install some nix packages with nix-env but there are some of them I have no clue how to install, for example: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/pygit2/default.nix How to install that…
Patricio
  • 21
  • 4
2
votes
1 answer

Override Firefox makeFlags in Nixpkgs

I want to add a makeFlag to the Firefox package using Nixpkgs overlays, but it seems to be non-trivial. Overriding w3m works... (import { overlays = [ (self: super: { w3m = super.w3m.overrideAttrs (oldAttrs: { # that…
erictapen
  • 578
  • 3
  • 13
2
votes
0 answers

How to configure QML import path when using qt5 from nixpkgs

I'm building a QML application on Ubuntu 18.04 and want to setup my development environment using nix (and nixpkgs). However the QML import paths are messed up. If I run the application, I get: qrc:/main.qml:14 Type ToolButton…
Panke
  • 156
  • 9