Hello,
I want to override the parameter “unicodeSupport” from the ncurses5 package with the value “false”. But it gives an error “cannot overwrite directory” on nix build.
Is it related to the fact that the ncurses-package has multiple outputs? How to override the parameter?
error: builder for '/nix/store/1pw13a1znvvj9fkkgzs2x11jpmzbz07k-ncurses-abi5-compat-6.4.drv' failed with exit code 1;
last 10 log lines:
> patching script interpreter paths in /nix/store/6qqrx296dp53137vkwniqq37jfddf344-ncurses-abi5-compat-6.4-dev
> stripping (with command strip and flags -S) in /nix/store/6qqrx296dp53137vkwniqq37jfddf344-ncurses-abi5-compat-6.4-dev/lib /nix/store/6qqrx296dp53137vkwniqq37jfddf344-ncurses-abi5-compat-6.4-dev/bin
> shrinking RPATHs of ELF executables and libraries in /nix/store/6ymmjqgaa91bdij2icwm4zx2wjhk6357-ncurses-abi5-compat-6.4-man
> checking for references to /build/ in /nix/store/6ymmjqgaa91bdij2icwm4zx2wjhk6357-ncurses-abi5-compat-6.4-man...
> gzipping man pages under /nix/store/6ymmjqgaa91bdij2icwm4zx2wjhk6357-ncurses-abi5-compat-6.4-man/share/man/
> patching script interpreter paths in /nix/store/6ymmjqgaa91bdij2icwm4zx2wjhk6357-ncurses-abi5-compat-6.4-man
> '/nix/store/6qqrx296dp53137vkwniqq37jfddf344-ncurses-abi5-compat-6.4-dev/include/ncurses' -> '.'
> '/nix/store/6qqrx296dp53137vkwniqq37jfddf344-ncurses-abi5-compat-6.4-dev/bin/ncurses-config' -> 'ncurses5-config'
> ln: /nix/store/6qqrx296dp53137vkwniqq37jfddf344-ncurses-abi5-compat-6.4-dev/include/ncurses/.: cannot overwrite directory
> /nix/store/sw36plhp82916wwg6i6097rkzza7d950-stdenv-linux/setup: line 136: pop_var_context: head of shell_variables not a function context
For full logs, run 'nix log /nix/store/1pw13a1znvvj9fkkgzs2x11jpmzbz07k-ncurses-abi5-compat-6.4.drv'.
{
description = "Simple ncurses overlay test";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlay ];
};
in
{
overlay = final: prev: {
ncurses5 = prev.ncurses5.override {
unicodeSupport = false;
};
};
packages.${system}.default = pkgs.ncurses5;
};
}