at 23.05-pre 30 lines 654 B view raw
1{ lib, stdenv 2, fetchzip 3, callPackage 4}: 5 6stdenv.mkDerivation rec { 7 pname = "qbe"; 8 version = "1.0"; 9 10 src = fetchzip { 11 url = "https://c9x.me/compile/release/qbe-${version}.tar.xz"; 12 sha256 = "sha256-Or6m/y5hb9SlSToBevjhaSbk5Lo5BasbqeJmKd1QpGM="; 13 }; 14 15 makeFlags = [ "PREFIX=$(out)" ]; 16 17 doCheck = true; 18 19 passthru = { 20 tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {}; 21 }; 22 23 meta = with lib; { 24 homepage = "https://c9x.me/compile/"; 25 description = "A small compiler backend written in C"; 26 maintainers = with maintainers; [ fgaz ]; 27 license = licenses.mit; 28 platforms = platforms.all; 29 }; 30}