Questions tagged [nixpkgs]

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

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

60 questions
1
vote
1 answer

Custom Nix derivation for vim plugin fails

EDIT: leaving this as some history for other searching similar problems Some of it is solved, but last questions still unresolved See after the ==== line. I am using home manager and I set it up to provide me with neovim including some plugins.…
Chai
  • 606
  • 1
  • 7
  • 17
1
vote
1 answer

Building NixOS AMI image for Amazon from Nix on non-NixOS Linux

I'm trying to use nixos-generators to build an AMI in my Ubuntu machine which has nix package manager installed. I have this configuration: $ cat configuration.nix { pkgs, ... }: { imports = […
Sibi
  • 43,989
  • 14
  • 80
  • 146
1
vote
1 answer

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
  • 59
  • 6
1
vote
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
  • 425
  • 2
  • 11
1
vote
1 answer

selecting a list of files as build input

I would like to restrict the number of files to include in my build src to a select few. Directly passing the list of files to src or srcs isn't allowed as an archive or a directory is expected. I couldn't find a function to do this and…
Bruno Bieth
  • 2,087
  • 18
  • 30
1
vote
1 answer

Is there a standalone Nixpkgs “standard library” to create private Nixpkgs repos?

Is there any project/repo that contains "standard library" functions extracted from the Nixpkgs repo? Currently reading the Nixpkgs manual, and it seems that the Nixpkgs repo consists of functions that actually help build (cross-platform) packages…
toraritte
  • 4,130
  • 3
  • 26
  • 43
1
vote
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
  • 115
  • 2
  • 7
1
vote
1 answer

Overriding nixpkgs with a forked Haskell package

I am trying to override a Haskell package in nixpkgs with my own fork. The code I have seems to work; I can see the new fork building. However, when I open a nix-shell, I don't have the right package version. Here is my shell.nix file. { nixpkgs ?…
Jezen Thomas
  • 13,004
  • 5
  • 49
  • 87
1
vote
0 answers

How to correctly configure fonts for OpenJDK apps in nixpkgs?

When I run IntelliJ inside of Docker using a nixpkgs environment, I see a lot of missing characters in the GUI: A possibly unrelated problem is that the act of selecting text (when selectable) seems to improve the situation - see the transition…
bbarker
  • 7,931
  • 5
  • 30
  • 44
1
vote
2 answers

How to debug nix-build errors for a custom nix file?

I'm trying to use Nix on Ubuntu 16.04. After setup, I try to build the following expression: let pkgs = import {}; stdenv = pkgs.stdenv; in rec { scalaEnv = stdenv.mkDerivation rec { name = "scala-env"; shellHook = '' …
bbarker
  • 7,931
  • 5
  • 30
  • 44
1
vote
1 answer

nix-build nix-generate-from-cpan: expression does not evaluate to a derivation

I'm trying to use nix-generate-from-cspan to install sqitch From nix-generate-from-cpan App::Sqitch DBD::Pg, I made this file: {buildPerlModule, fetchurl}: buildPerlModule rec { name = "App-Sqitch-0.9995"; src = fetchurl { url =…
HectorJ
  • 4,507
  • 2
  • 27
  • 49
1
vote
1 answer

override python27Packages.bepasty-server

to experiment with upstream changes i want to alter the src= attribute in pkgs.python27Packages.bepasty-server. reading through https://nixos.org/nixpkgs/manual/#chap-functions there is no example how to do this for pythonPackages! so i have tried…
qknight
  • 593
  • 6
  • 16
1
vote
1 answer

Inject runtime dependency into nix package

Adding a runtime dependency to a package through override buildInputs causes the package to rebuild. Is there a simple way to inject runtime dependencies into a package without recompiling? So basically adding package/bin to PATH and package/lib to…
dvc
  • 114
  • 1
  • 9
1
vote
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
  • 538
  • 4
  • 12
0
votes
0 answers

Better reproductibility of rPackages (pin version of packages) in nix in comparison to guix

I'm actually evaluate different solution to enhance/explore reproductibility in my R/Python scientific workflow : data with reproductible analysis (plot, analysis) and paper. There is, as you know, two big linux flavours offer some solutions : Nix…
reyman64
  • 1,101
  • 2
  • 31
  • 62