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…
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…
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;…
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…
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…
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;
…
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…
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 =…
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 =…
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…
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?
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 =…
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 =…
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…