nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 45 lines 1.0 kB view raw
1{ lib 2, stdenv 3, fetchFromSourcehut 4, qbe 5}: 6 7stdenv.mkDerivation rec { 8 pname = "harec"; 9 version = "0.pre+date=2022-04-26"; 10 11 src = fetchFromSourcehut { 12 name = pname + "-src"; 13 owner = "~sircmpwn"; 14 repo = pname; 15 rev = "e5fb5176ba629e98ace5fcb3aa427b2c25d8fdf0"; 16 hash = "sha256-sqt3q6sarzrpyJ/1QYM1WTukrZpflAmAYq6pQwAwe18="; 17 }; 18 19 nativeBuildInputs = [ 20 qbe 21 ]; 22 23 buildInputs = [ 24 qbe 25 ]; 26 27 # TODO: report upstream 28 hardeningDisable = [ "fortify" ]; 29 30 strictDeps = true; 31 32 doCheck = true; 33 34 meta = with lib; { 35 homepage = "http://harelang.org/"; 36 description = "Bootstrapping Hare compiler written in C for POSIX systems"; 37 license = licenses.gpl3Only; 38 maintainers = with maintainers; [ AndersonTorres ]; 39 # The upstream developers do not like proprietary operating systems; see 40 # https://harelang.org/platforms/ 41 platforms = with platforms; 42 lib.intersectLists (freebsd ++ linux) (aarch64 ++ x86_64 ++ riscv64); 43 badPlatforms = with platforms; darwin; 44 }; 45}