nixpkgs/pkgs/development/compilers/hare/harec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1001 B
Nix
Raw Normal View History

2022-04-26 02:32:31 +00:00
{ lib
, stdenv
, fetchFromSourcehut
, qbe
}:
stdenv.mkDerivation (self: {
2022-04-26 02:32:31 +00:00
pname = "harec";
version = "unstable-2023-02-08";
2022-04-26 02:32:31 +00:00
src = fetchFromSourcehut {
owner = "~sircmpwn";
2022-08-10 07:53:56 +00:00
repo = "harec";
rev = "4730fa6b835f08c44bd7991cc8b264fbc27d752b";
hash = "sha256-XOhZWdmkMAuXbj7svILJI3wI7RF9OAb/OE1uGel4/vE=";
2022-04-26 02:32:31 +00:00
};
nativeBuildInputs = [
qbe
];
buildInputs = [
qbe
];
# TODO: report upstream
hardeningDisable = [ "fortify" ];
strictDeps = true;
doCheck = true;
meta = {
2022-04-26 02:32:31 +00:00
homepage = "http://harelang.org/";
description = "Bootstrapping Hare compiler written in C for POSIX systems";
license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.AndersonTorres ];
2022-04-26 02:32:31 +00:00
# The upstream developers do not like proprietary operating systems; see
# https://harelang.org/platforms/
platforms = with lib.platforms;
2022-04-26 02:32:31 +00:00
lib.intersectLists (freebsd ++ linux) (aarch64 ++ x86_64 ++ riscv64);
badPlatforms = lib.platforms.darwin;
2022-04-26 02:32:31 +00:00
};
2022-08-10 07:53:56 +00:00
})