2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-11-21 19:51:51 +00:00
|
|
|
, fetchgit
|
|
|
|
, unstableGitUpdater
|
2021-06-28 23:13:55 +00:00
|
|
|
, callPackage
|
2020-11-21 19:51:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "qbe";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "unstable-2022-04-11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://c9x.me/qbe.git";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "2caa26e388b1c904d2f12fb09f84df7e761d8331";
|
|
|
|
sha256 = "sha256-TNKHKX/PbrNIQJ+Q50KemfcigEBKe7gmJzTjB6ofYL8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {};
|
|
|
|
updateScript = unstableGitUpdater { };
|
|
|
|
};
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +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;
|
|
|
|
};
|
|
|
|
}
|