es: 0.9.2 -> 0.10.0 (#509134)

This commit is contained in:
Marcin Serwin
2026-05-16 15:48:28 +00:00
committed by GitHub
+12 -23
View File
@@ -1,8 +1,8 @@
{
lib,
stdenv,
fetchpatch,
fetchurl,
fetchFromGitHub,
autoreconfHook,
readline,
bison,
}:
@@ -10,31 +10,20 @@
stdenv.mkDerivation (finalAttrs: {
pname = "es";
version = "0.9.2";
version = "0.10.0";
src = fetchurl {
url = "https://github.com/wryun/es-shell/releases/download/v${finalAttrs.version}/es-${finalAttrs.version}.tar.gz";
sha256 = "sha256-ySZIK0IITpA+uHHuHrDO/Ana5vGt64QI3Z6TMDXE9d0=";
src = fetchFromGitHub {
owner = "wryun";
repo = "es-shell";
tag = "v${finalAttrs.version}";
hash = "sha256-Rm0hG3B93p1lFb6IlnKYXtSxuRSIa2AT3SiAjMSb/oc=";
};
# The distribution tarball does not have a single top-level directory.
preUnpack = ''
mkdir $name
cd $name
sourceRoot=.
'';
patches = [
(fetchpatch {
# https://github.com/wryun/es-shell/pull/101
name = "new-compiler-issues.patch";
url = "https://github.com/wryun/es-shell/commit/1eafb5fc4be735e59c9a091cc30adbca8f86fd96.patch";
hash = "sha256-0CV1seEiH6PsUnq0akPLiRMy+kIb9qnAK7Ta4I47i60=";
})
];
strictDeps = true;
nativeBuildInputs = [ bison ];
nativeBuildInputs = [
autoreconfHook
bison
];
buildInputs = [ readline ];
configureFlags = [ "--with-readline" ];