2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, qbe
|
|
|
|
}:
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
stdenv.mkDerivation (self: {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "harec";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "unstable-2023-02-18";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
2022-08-12 12:06:08 +00:00
|
|
|
repo = "harec";
|
2023-04-12 12:48:02 +00:00
|
|
|
rev = "dd50ca7740408e3c6e41c0ca48b59b9f7f5911f2";
|
|
|
|
hash = "sha256-616mPMdy4yHHuwGcq+aDdEOteEiWgufRzreXHGhmHr0=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qbe
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qbe
|
|
|
|
];
|
|
|
|
|
|
|
|
# TODO: report upstream
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
meta = {
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "http://harelang.org/";
|
|
|
|
description = "Bootstrapping Hare compiler written in C for POSIX systems";
|
2023-02-16 17:41:37 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = [ lib.maintainers.AndersonTorres ];
|
2022-04-27 09:35:20 +00:00
|
|
|
# The upstream developers do not like proprietary operating systems; see
|
|
|
|
# https://harelang.org/platforms/
|
2023-02-16 17:41:37 +00:00
|
|
|
platforms = with lib.platforms;
|
2022-04-27 09:35:20 +00:00
|
|
|
lib.intersectLists (freebsd ++ linux) (aarch64 ++ x86_64 ++ riscv64);
|
2023-02-16 17:41:37 +00:00
|
|
|
badPlatforms = lib.platforms.darwin;
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
2022-08-12 12:06:08 +00:00
|
|
|
})
|