Questions tagged [nixpkgs]

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

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

60 questions
0
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 =…
Daneel Yaitskov
  • 4,019
  • 6
  • 34
  • 40
0
votes
2 answers

What does two at (@) signs surrounding a string mean in a shell script?

For example, # Execute the pre-hook. export SHELL=@shell@ param1=@param1@ param2=@param2@ param3=@param3@ param4=@param4@ param5=@param5@ if test -n "@preHook@"; then . @preHook@ fi For context, this is from a shell script in a commit from 2004…
toraritte
  • 4,130
  • 3
  • 26
  • 43
0
votes
1 answer

What is the `patchShebangs` command in Nix build expressions?

Came across the patchShebangs command while looking at packages in the Nixpkgs repo, and saw it used in various phases of the standard environment's generic builder, but not sure what it is for or why it is needed in the first place.
toraritte
  • 4,130
  • 3
  • 26
  • 43
0
votes
0 answers

my .config/nixpkgs/config.nix file isn't load

is there any required config to use .config/nixpkgs/config.nix ? My .config/nixpkgs/config.nix is here. { packageOverrides = pkgs: with pkgs; { myPackages = pkgs.buildEnv { name = "my-packages"; paths = [ neovim …
Kaoru
  • 21
  • 2
0
votes
0 answers

Missing symbols in dynamic library

I am trying to upgrade R from version 4.0.3 to 4.0.4 in Nixpkgs. I changed the version and sha256 values and the package compiles, albeit with some warnings, and I can use R but when I look at the dynamic library libR.so I get the following errors…
Vijay
  • 141
  • 1
  • 9
0
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
  • 51
  • 5
0
votes
1 answer

What is the recommended way to install packages not in `nixpkgs/pkgs/top-level/all-packages.nix`

I would like to install elementary-terminal. This package is not in nixpkgs/pkgs/top-level/all-packages.nix and I suppose it is therefore not sufficient to just add elementary-terminal into configuration.nix What is the recommended way to install…
Manuel Schmidt
  • 2,227
  • 1
  • 14
  • 29
0
votes
1 answer

julia 1.0 installation tests - nix-pkgs - ubuntu

My laptop: Linux g-TP 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux I installed julia via nix-env and got the following test result Test Summary: | Pass Broken Total Overall |…
InLaw
  • 2,026
  • 2
  • 16
  • 28
0
votes
2 answers

How to change the serviceConfig of a service defined in nixpkgs from configuration.nix?

The nagios in nixpkgs has systemd.services.nagios.serviceConfig.Restart="always"; which is cluttering the journalctl -u nagios log and should be Restart="no"; instead! MySQL fix For MySQL this works: systemd.services.mysql.serviceConfig = { …
qknight
  • 593
  • 6
  • 16
0
votes
1 answer

Permission denied (publickey) when using Nix's Git

I installed Git via Nix (on Arch Linux). [gorre@uplink ~]$ uname -a Linux uplink 4.16.9-1-ARCH #1 SMP PREEMPT Thu May 17 02:10:09 UTC 2018 x86_64 GNU/Linux [gorre@uplink ~]$ nix-env…
x80486
  • 5,131
  • 4
  • 32
  • 71
0
votes
1 answer

What is a reliable way to include libraries for virtualenv python packages in nix?

I'll start by saying virtualenv is basically a requirement here since Nix is not yet being used by the rest of the development team. This excellent guide on Python in Nix doesn't quite drill down to this particular issue. In some cases I can update…
bbarker
  • 7,931
  • 5
  • 30
  • 44
0
votes
1 answer

How to have a derivation not clash with derived environment in Nix?

I get the following collision error when attempting to build an environment that, as far as I can see, shouldn't have a collision (in this case, scala-env depends on ideaLocal, so it shouldn't conflict with…
bbarker
  • 7,931
  • 5
  • 30
  • 44
0
votes
1 answer

Where should the builder script be located for a stand-alone nix expression?

I have a nix expression file (.nix) and a shell script builder, specified like: stdenv.mkDerivation rec { name = "my-env"; builder = './my-builder.sh'; ... ./my-builder.sh: No such file or directory when I run nix-build ./my-env.nix;…
bbarker
  • 7,931
  • 5
  • 30
  • 44
0
votes
1 answer

nix-shell for perlPackages

problem i want to play with a perl package called Mail::SPF and there is a Build.PL issue. now i would like to modify the source before running the buildPhase. for c/c++ based projects this is working well but for perl it fails: nix-shell -I…
qknight
  • 593
  • 6
  • 16
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
  • 113
  • 1
  • 7
1 2 3
4