hugs: Fix build failure

We change to Lennart Augustsson's branch in preparation for booting
MicroHs via Hugs.
This commit is contained in:
Alex Tunstall 2025-09-15 23:40:35 +01:00
parent ca77296380
commit 4e3eb5a44f
No known key found for this signature in database
GPG key ID: 6216CF3A4B23969A

View file

@ -1,29 +1,28 @@
{ {
lib, lib,
stdenv, stdenv,
fetchurl, fetchFromGitHub,
bison, bison,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation {
pname = "hugs98"; pname = "hugs98";
version = "2006-09"; version = "2006-09";
src = fetchurl { src = fetchFromGitHub {
url = "https://www.haskell.org/hugs/downloads/${version}/hugs98-Sep2006.tar.gz"; owner = "augustss";
sha256 = "1dj65c39zpy6qqvvrwns2hzj6ipnd4ih655xj7kgyk2nfdvd5x1w"; repo = "hugs98-plus-Sep2006";
rev = "1f7b60e05b12df00d715d535bb01c189bc1b9b3c";
hash = "sha256-g6/4kmdWKGDIu5PXVfP8O6Fl3v4bstXWAVkoxZiS6qo=";
}; };
patches = [
(fetchurl {
url = "https://aur.archlinux.org/cgit/aur.git/plain/hsbase_inline.patch?h=hugs";
name = "hsbase_inline.patch";
sha256 = "1h0sp16d17hlm6gj7zdbgwrjwi2l4q02m8p0wd60dp4gn9i9js0v";
})
];
nativeBuildInputs = [ bison ]; nativeBuildInputs = [ bison ];
NIX_CFLAGS_COMPILE = [
"-Wno-error=implicit-int"
"-Wno-error=implicit-function-declaration"
];
postUnpack = "find -type f -exec sed -i 's@/bin/cp@cp@' {} +"; postUnpack = "find -type f -exec sed -i 's@/bin/cp@cp@' {} +";
preConfigure = "unset STRIP"; preConfigure = "unset STRIP";
@ -45,7 +44,6 @@ stdenv.mkDerivation rec {
]; ];
meta = with lib; { meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
mainProgram = "hugs"; mainProgram = "hugs";
homepage = "https://www.haskell.org/hugs"; homepage = "https://www.haskell.org/hugs";
description = "Haskell interpreter"; description = "Haskell interpreter";