Merge pull request #294559 from marsam/fix-scsh-darwin
scsh: fix build on darwin
This commit is contained in:
commit
2381491cbf
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ 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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue