Questions tagged [nixpkgs]

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

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

84 questions
5
votes
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,317
  • 20
  • 31
5
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
  • 6,627
  • 5
  • 52
  • 111
5
votes
3 answers

Overriding python with python3 in vim_configurable.customize

I am following this template for configuring my custom vim with Nix. My vim-config/default.nix is as follows: { pkgs }: let my_plugins = import ./plugins.nix { inherit (pkgs) vimUtils fetchFromGitHub; }; in with (pkgs // { python = pkgs.python3;…
Ben
  • 1,557
  • 13
  • 30
4
votes
3 answers

How can I install extension of vscode?

This is a beginner question. So there is a package vscode-with-extensions. The package says: A set of vscode extensions to be installed alongside the editor. Here's a an example: vscode-with-extensions.override { # When the extension is already…
Manuel Schmidt
  • 2,429
  • 1
  • 19
  • 32
4
votes
1 answer

Configure location of ~/.config/nixpkgs/config.nix

Is there some envvar or similar that I can use to configure the location of ~/.config/nixpkgs/config.nix ?
user3416536
  • 1,429
  • 9
  • 20
4
votes
1 answer

node2nix override; wrapProgram: command not found

I'm packaging a node script with an external dependency (GraphicsMagick), and when attempting to override the derivation generated from node2nix I get the error: wrapProgram: command not found The following text goes into detail of what I've tried…
Jay
  • 18,959
  • 11
  • 53
  • 72
4
votes
1 answer

How to properly reference a local, dependent derivation's output directory

I have a derivation (default.nix) defined as: with import {}; let version = "7.5.1"; in stdenv.mkDerivation { name = "gurobi-${version}"; src = fetchurl { url = http://packages.gurobi.com/7.5/gurobi7.5.1_linux64.tar.gz; …
bbarker
  • 11,636
  • 9
  • 38
  • 62
4
votes
1 answer

How to get the name from a nixpkgs derivation in a nix expression to be used by nix-shell?

I'm writing a .nix expression to be used primarily by nix-shell. I'm not sure how to do that. Note this is not on NixOS, but I don't think that is very relevant. The particular example I'm looking at is that I want to get this version-dependent name…
bbarker
  • 11,636
  • 9
  • 38
  • 62
4
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
  • 866
  • 10
  • 23
4
votes
2 answers

nixOS: how to recover from collision between two instances of same package, same version

Here is my nixos version: $ nixos-version 16.09pre85931.125ffff (Flounder) Here is my shell script: $ cat test.nix { nixpkgs ? import { }, compiler ? "ghc801" }: let inherit (nixpkgs) pkgs; ghc =…
helpwithhaskell
  • 558
  • 4
  • 13
3
votes
1 answer

mkDerivation use cmake in buildPhase

I'm trying to create a derivation using nix files, and I'm a little stuck. A package I'm trying to install has a sh file in its repo to build it, and this sh file is running CMake with some arguments. More specifically, this package is vcpkg. Here's…
Guillaume Racicot
  • 39,621
  • 9
  • 77
  • 141
3
votes
1 answer

With nixos can I install a nodejs package globally?

Say I'd like to install @squoosh/cli, this package is mentioned in nixpkgs here. Is there a way to specify the package in configuration.nix, or in the home-manager, to have it be installed by nixos-rebuild?
3
votes
1 answer

How to use custom python with existing packages - nix derivation?

I defined a custom nix cpython derivation with unmerged patches. If I specify it as a target nix-shell gives me the version I expect. { pkgs ? import {} }: (pkgs.python3.overrideAttrs (old: { src = pkgs.fetchFromGitHub { owner =…
Daniil Iaitskov
  • 5,525
  • 8
  • 39
  • 49
3
votes
1 answer

Isolated temporary files in Nix derivation

I haven't found any info about handling temporary files in Nix derivations. I found $TMP and $TMPDIR env vars, but they both point just to /tmp, which is system global. { pkgs ? import {} }: pkgs.stdenv.mkDerivation { pname =…
Daniil Iaitskov
  • 5,525
  • 8
  • 39
  • 49
3
votes
2 answers

ggplot axes are garbled, look like Unicode boxes

Running Ubuntu 16.04; R 3.6.2; ggplot2 3.3.0 Running R under --nix If I run this .. library(ggplot2) data("midwest", package = "ggplot2") ggplot(midwest, aes(x=area, y=poptotal)) I get a plot with little boxes for the axes (Unicode?) I get the…
TomP
  • 51
  • 2