ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
30 lines
654 B
Nix
30 lines
654 B
Nix
{ lib, stdenv
|
|
, fetchzip
|
|
, callPackage
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qbe";
|
|
version = "1.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://c9x.me/compile/release/qbe-${version}.tar.xz";
|
|
sha256 = "sha256-Or6m/y5hb9SlSToBevjhaSbk5Lo5BasbqeJmKd1QpGM=";
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://c9x.me/compile/";
|
|
description = "A small compiler backend written in C";
|
|
maintainers = with maintainers; [ fgaz ];
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|