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 ?…
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…
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…
I am trying to use the GitHub Copilot plugin for Neovim which is already available from Nixpkgs as copilot-vim. After installation, running the plugin with :Copilot setup gives me Copilot: 'Node.js not found in PATH'.
I thought I could just add…
can someone help me write a shell.nix file for testing my PR
https://github.com/NixOS/nixpkgs/pull/194516
The problem is that I can't just install the package as
nix-env -f "./my-nixpkgs-repo" -iA nixos.fortuneExtensions.blag-fortune
This is…
Based on How can I create a development shell for qt 5.5 with debug symbols in the qt libraries, and looking at qtbase.nix, I tried this in default.nix:
with import {};
stdenv.mkDerivation {
name = "myapp";
buildInputs = [
…
I’m trying to build a static binary that depends on libudev.
Unfortunately nix-env -iA nixpkgs.pkgsStatic.libudev fails with: error: p11-kit cannot be used as a static library.
Is there a better way of doing this?
I'm trying to use nix for building dotnet (sdk 5) projects.
The configuration is something like
stdenv.mkDerivation {
# builder = "${bash}/bin/bash";
# args = [ ./builder.sh ];
name = "mypackage";
src = ./.;
HOME =…
I'm trying to install jupyter-book on NixOS. I have this flake:
{
description = "Introduction to Computational Literary Analysis, a Textbook";
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit…
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…
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.
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…
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.…
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 = […