2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, qbe
|
|
|
|
}:
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "harec";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "unstable-2023-04-25";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
2022-08-12 12:06:08 +00:00
|
|
|
repo = "harec";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "068e8da091f9053726251bc221abf40fdea630ff";
|
|
|
|
hash = "sha256-PPR0d+6JJRzPURW7AznloBSrtylMJExNCGCxFMl2LsA=";
|
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;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with lib.maintainers; [ onemoresuza ];
|
2022-04-27 09:35:20 +00:00
|
|
|
# The upstream developers do not like proprietary operating systems; see
|
|
|
|
# https://harelang.org/platforms/
|
2023-11-16 04:20:00 +00:00
|
|
|
# UPDATE: https://github.com/hshq/harelang provides a MacOS port
|
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
|
|
|
})
|