nixpkgs/pkgs/development/compilers/hare/harec/default.nix
Gustavo Coutinho de Souza e3bac87a89
hare: add onemoresuza as the maintainer
Since harec is part of its bootstrapping and it's also orphaned, also
add onemoresuza as its maintainer.
2023-11-07 11:04:35 -03:00

45 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromSourcehut
, qbe
}:
stdenv.mkDerivation (finalAttrs: {
pname = "harec";
version = "unstable-2023-04-25";
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "harec";
rev = "068e8da091f9053726251bc221abf40fdea630ff";
hash = "sha256-PPR0d+6JJRzPURW7AznloBSrtylMJExNCGCxFMl2LsA=";
};
nativeBuildInputs = [
qbe
];
buildInputs = [
qbe
];
# TODO: report upstream
hardeningDisable = [ "fortify" ];
strictDeps = true;
doCheck = true;
meta = {
homepage = "http://harelang.org/";
description = "Bootstrapping Hare compiler written in C for POSIX systems";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ onemoresuza ];
# The upstream developers do not like proprietary operating systems; see
# https://harelang.org/platforms/
# UPDATE: https://github.com/hshq/harelang provides a MacOS port
platforms = with lib.platforms;
lib.intersectLists (freebsd ++ linux) (aarch64 ++ x86_64 ++ riscv64);
badPlatforms = lib.platforms.darwin;
};
})