Unverified Commit 2381491c authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

Merge pull request #294559 from marsam/fix-scsh-darwin

scsh: fix build on darwin
parents 6fe83dad a0dd4717
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, autoreconfHook, scheme48 }:
{ lib, stdenv, fetchFromGitHub, autoreconfHook, scheme48, fetchpatch }:

stdenv.mkDerivation {
  pname = "scsh";
@@ -12,6 +12,15 @@ stdenv.mkDerivation {
    fetchSubmodules = true;
  };

  patches = [
    # Don't not include util.h if libutil.h is available
    # https://github.com/scheme/scsh/pull/49
    (fetchpatch {
      url = "https://github.com/scheme/scsh/commit/b04e902de983761d7f432b2cfa364ca5d162a364.patch";
      hash = "sha256-XSHzzCOBkraqW2re1ePoFl9tKQB81iQ0W9wvv83iGdA=";
    })
  ];

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [ scheme48 ];
  configureFlags = [ "--with-scheme48=${scheme48}" ];
@@ -22,5 +31,6 @@ stdenv.mkDerivation {
    license = licenses.bsd3;
    maintainers = with maintainers; [ joachifm ];
    platforms = with platforms; unix;
    mainProgram = "scsh";
  };
}