Questions tagged [nixpkgs]

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

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

60 questions
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
  • 970
  • 11
  • 13
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…
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
  • 3
2
votes
1 answer

What is the nix-expression ""?

When querying for hackage packages, the manual suggests using the command: $ nix-env -f "" -qaP -A haskellPackages Thus we define the 'active Nix expression' to be "" when searching for Haskell packages. What does this expression…
mherzl
  • 4,119
  • 3
  • 25
  • 51
2
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
  • 188
  • 8
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
  • 144
  • 7
2
votes
2 answers

How can I enable Caddy plugins in NixOS?

I've just started playing with NixOS, and have so far managed to edit /etc/nixos/configuration.nix in my NixOS 18.09 VM to have PHP-FPM and the Caddy webserver enabled. { config, pkgs, ... }: { imports = […
David Oliver
  • 2,209
  • 21
  • 33
2
votes
1 answer

In NixOS, how can I resolve a collision?

I'm trying to set up a development environment with Python, including the Python libraries Spacy and Pandas. The command I'm trying to run is nix-shell -p 'python36.withPackages(ps: with ps; [ spacy pandas ])' But this is what happens: these…
Jonathan
  • 9,074
  • 8
  • 45
  • 80
2
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
  • 593
  • 6
  • 16
2
votes
2 answers

Gradle — The newly created daemon process has a different context than expected

I installed the OpenJDK via Nix in Ubuntu (Linux uplink 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux). gorre@uplink:~$ java -version openjdk version "1.8.0_172" OpenJDK Runtime Environment…
x80486
  • 5,131
  • 4
  • 32
  • 71
2
votes
3 answers

In Nixpkgs, what makes a python derivation an application rather than a library?

I'm trying to package a python application for Nix, but I'm finding that the majority of the documentation assumes that I want to package a library. In order to do this, I looked at Rednotebook example (not for any particular reason other than I…
Gareth Charnock
  • 1,106
  • 7
  • 16
2
votes
1 answer

implementing override in my repository

what i want https://nixos.org/nixpkgs/manual/#sec-pkg-overrideAttrs documents overrideAttrs and it can be used with top-level/all-packages.nix. so i want to be able to use overrideAttrs in my own nixpkgs overlay! the code rec { frontend =…
qknight
  • 593
  • 6
  • 16
1
vote
0 answers

nixos mkDerivation godot mono version (C# support)

i'm on nixos 20.09 and try to build godot-3.2.3-stable with support for C#. I'm following the instruction on the godot docs, which states that one first has to enable the mono module and then generate the mono-glue. I tried to adapt the default.nix…
leunam
  • 11
  • 1
1
vote
2 answers

How to pin an `import {}` call to a specific commit?

When trying to revive old projects, sometimes I have to fish around for older Nixpkgs commits to get things started. For example, most of my shell.nix files start like this, {pkgs ? import {} }: pkgs.mkShell { # ... } that would import…
toraritte
  • 4,130
  • 3
  • 26
  • 43