I’m using a NixOS overlay to get a newer version of a package. All goes well until the step in the build that does this:
wget -O scintilla523.tgz https://www.scintilla.org/scintilla523.tgz
--2022-07-23 13:24:46-- https://www.scintilla.org/scintilla523.tgz
Resolving www.scintilla.org (www.scintilla.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'www.scintilla.org'
make: *** [Makefile:451: scintilla523.tgz] Error 4
That same command works fine at a bash prompt, so it seems there’s something not available in the build environment that I need. Is there something I need to add? Below is my default.nix
; I’ve marked all the changes I made from the current version in nixpkgs.
{ lib, stdenv, fetchFromGitHub, fetchurl, gtk2, glib, pkg-config, unzip, ncurses, zip, wget }:
# ORIGINAL { lib, stdenv, fetchFromGitHub, fetchurl, gtk2, glib, pkg-config, unzip, ncurses, zip }:
stdenv.mkDerivation rec {
version = "11.3.1";
# ORIGINAL version = "11.3";
pname = "textadept";
nativeBuildInputs = [ pkg-config unzip zip wget ];
# ORIGINAL nativeBuildInputs = [ pkg-config unzip zip ];
buildInputs = [
gtk2 ncurses glib
];
enableParallelBuilding = true;
src = fetchFromGitHub {
name = "textadept11";
owner = "mhwombat";
# ORIGINAL owner = "orbitalquark";
repo = "textadept";
rev = "textadept_${version}";
sha256 = "sha256-SlhwwUeCmb3iLv9fEVQDKU5Wm/ZC9BZdlIjtNKOQTxk=";
# ORIGINAL sha256 = "sha256-C7J/Qr/58hLbyw39R+GU4wot1gbAXf51Cv6KGk3kg30=";
};
preConfigure =
lib.concatStringsSep "\n" (lib.mapAttrsToList (name: params:
"ln -s ${fetchurl params} $PWD/src/${name}"
) (import ./deps.nix)) + ''
cd src
make deps
'';
postBuild = ''
make curses
'';
preInstall = ''
mkdir -p $out/share/applications
mkdir -p $out/share/pixmaps
'';
postInstall = ''
make curses install PREFIX=$out MAKECMDGOALS=curses
'';
makeFlags = [
"PREFIX=$(out)"
"WGET=true"
"PIXMAPS_DIR=$(out)/share/pixmaps"
];
meta = with lib; {
description = "An extensible text editor based on Scintilla with Lua scripting.";
homepage = "http://foicica.com/textadept";
license = licenses.mit;
maintainers = with maintainers; [ raskin mirrexagon patricksjackson ];
platforms = platforms.linux;
};
}