2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv
|
2020-10-19 17:58:45 +00:00
|
|
|
, fetchgit
|
|
|
|
, unstableGitUpdater
|
2021-06-21 13:53:14 +00:00
|
|
|
, callPackage
|
2020-10-19 17:58:45 +00:00
|
|
|
}:
|
2019-05-23 10:20:32 +00:00
|
|
|
|
2020-10-19 17:58:45 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-23 10:20:32 +00:00
|
|
|
pname = "qbe";
|
2021-12-08 00:09:34 +00:00
|
|
|
version = "unstable-2021-11-22";
|
2019-05-23 10:20:32 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://c9x.me/qbe.git";
|
2021-12-08 00:09:34 +00:00
|
|
|
rev = "bf153b359e9ce3ebef9bca899eb7ed5bd9045c11";
|
|
|
|
sha256 = "sha256-13Mvq4VWZxlye/kncJibCnfSECx4PeHMYLuX0xMkN3A=";
|
2019-05-23 10:20:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2020-10-19 17:58:45 +00:00
|
|
|
|
2021-06-21 13:55:50 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-06-21 13:53:14 +00:00
|
|
|
passthru = {
|
|
|
|
tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {};
|
|
|
|
updateScript = unstableGitUpdater { };
|
|
|
|
};
|
2020-10-19 17:58:45 +00:00
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2019-05-23 10:20:32 +00:00
|
|
|
homepage = "https://c9x.me/compile/";
|
|
|
|
description = "A small compiler backend written in C";
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|