mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
hobbes: unpin stdenv llvm
This commit is contained in:
parent
a89664f224
commit
a082c256ae
@ -1,7 +1,8 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, llvmPackages_10
|
||||
, llvmPackages
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, llvm_12
|
||||
, ncurses
|
||||
@ -10,9 +11,9 @@
|
||||
, libxml2
|
||||
, python3
|
||||
}:
|
||||
llvmPackages_10.stdenv.mkDerivation {
|
||||
llvmPackages.stdenv.mkDerivation {
|
||||
pname = "hobbes";
|
||||
version = "unstable-2023-06-03";
|
||||
version = "0-unstable-2023-06-03";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "morganstanley";
|
||||
@ -21,6 +22,19 @@ llvmPackages_10.stdenv.mkDerivation {
|
||||
hash = "sha256-2v0yk35/cLKTjX0Qbc8cjc7Y6bamRSa9GpPvGoxL2Cw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fix build for LLVM-12+
|
||||
# https://github.com/morganstanley/hobbes/pull/452
|
||||
(fetchpatch {
|
||||
name = "include-cstdint.patch";
|
||||
url = "https://github.com/morganstanley/hobbes/commit/924b71fca06c61e606792cc8db8521fb499d4237.patch";
|
||||
hash = "sha256-/VsWtTYc3LBOnm4Obgx/MOqaaWZhUc8yzmkygtNz+mY=";
|
||||
})
|
||||
];
|
||||
|
||||
# only one warning generated. try to remove on next update
|
||||
env.CXXFLAGS = "-Wno-error=deprecated-copy";
|
||||
|
||||
# TODO: re-enable Python tests once they work on Python 3
|
||||
# currently failing with "I don't know how to decode the primitive type: b'bool'"
|
||||
postPatch = ''
|
||||
|
Loading…
Reference in New Issue
Block a user