6 stdenv.mkDerivation (finalAttrs: {
11 url = "https://c9x.me/compile/release/qbe-${finalAttrs.version}.tar.xz";
12 hash = "sha256-UgtJnZF/YtD54OBy9HzGRAEHx5tC9Wo2YcUidGwrv+s=";
17 "CC=${stdenv.cc.targetPrefix}cc"
22 enableParallelBuilding = true;
25 # Use "${TMPDIR:-/tmp}" instead of the latter directly
26 # see <https://lists.sr.ht/~mpu/qbe/patches/49613>
27 ./001-dont-hardcode-tmp.patch
31 tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix { };
35 homepage = "https://c9x.me/compile/";
36 description = "Small compiler backend written in C";
37 maintainers = with maintainers; [ fgaz ];
38 license = licenses.mit;
39 platforms = platforms.all;