Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 44 lines 1.0 kB view raw
1{ lib 2, stdenv 3, fetchFromSourcehut 4, qbe 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "harec"; 9 version = "unstable-2023-02-18"; 10 11 src = fetchFromSourcehut { 12 owner = "~sircmpwn"; 13 repo = "harec"; 14 rev = "dd50ca7740408e3c6e41c0ca48b59b9f7f5911f2"; 15 hash = "sha256-616mPMdy4yHHuwGcq+aDdEOteEiWgufRzreXHGhmHr0="; 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 = [ lib.maintainers.AndersonTorres ]; 38 # The upstream developers do not like proprietary operating systems; see 39 # https://harelang.org/platforms/ 40 platforms = with lib.platforms; 41 lib.intersectLists (freebsd ++ linux) (aarch64 ++ x86_64 ++ riscv64); 42 badPlatforms = lib.platforms.darwin; 43 }; 44})