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