at 23.05-pre 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-2022-07-02"; 10 11 src = fetchFromSourcehut { 12 owner = "~sircmpwn"; 13 repo = "harec"; 14 rev = "56359312644f76941de1878d33a1a0b840be8056"; 15 hash = "sha256-8SFYRJSvX8hmsHBgaLUfhLUV7d54im22ETZds1eASc4="; 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 = with lib; { 34 homepage = "http://harelang.org/"; 35 description = "Bootstrapping Hare compiler written in C for POSIX systems"; 36 license = licenses.gpl3Only; 37 maintainers = with maintainers; [ AndersonTorres ]; 38 # The upstream developers do not like proprietary operating systems; see 39 # https://harelang.org/platforms/ 40 platforms = with platforms; 41 lib.intersectLists (freebsd ++ linux) (aarch64 ++ x86_64 ++ riscv64); 42 badPlatforms = with platforms; darwin; 43 }; 44})