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