Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 45 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchFromSourcehut 4, qbe 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "harec"; 9 version = "unstable-2023-04-25"; 10 11 src = fetchFromSourcehut { 12 owner = "~sircmpwn"; 13 repo = "harec"; 14 rev = "068e8da091f9053726251bc221abf40fdea630ff"; 15 hash = "sha256-PPR0d+6JJRzPURW7AznloBSrtylMJExNCGCxFMl2LsA="; 16 }; 17 18 nativeBuildInputs = [ 19 qbe 20 ]; 21 22 buildInputs = [ 23 qbe 24 ]; 25 26 # TODO: report upstream 27 hardeningDisable = [ "fortify" ]; 28 29 strictDeps = true; 30 31 doCheck = true; 32 33 meta = { 34 homepage = "http://harelang.org/"; 35 description = "Bootstrapping Hare compiler written in C for POSIX systems"; 36 license = lib.licenses.gpl3Only; 37 maintainers = with lib.maintainers; [ onemoresuza ]; 38 # The upstream developers do not like proprietary operating systems; see 39 # https://harelang.org/platforms/ 40 # UPDATE: https://github.com/hshq/harelang provides a MacOS port 41 platforms = with lib.platforms; 42 lib.intersectLists (freebsd ++ linux) (aarch64 ++ x86_64 ++ riscv64); 43 badPlatforms = lib.platforms.darwin; 44 }; 45})