depot/third_party/nixpkgs/pkgs/development/compilers/qbe/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

33 lines
756 B
Nix

{ lib, stdenv
, fetchgit
, unstableGitUpdater
, callPackage
}:
stdenv.mkDerivation rec {
pname = "qbe";
version = "unstable-2021-10-26";
src = fetchgit {
url = "git://c9x.me/qbe.git";
rev = "900805a8fe5cfa799966c4ef221524e967c44ca5";
sha256 = "sha256-ahUpG2JH3Ee6FUGfTYZZ2TLk5tF6ovvMxbsjZjVug2o=";
};
makeFlags = [ "PREFIX=$(out)" ];
doCheck = true;
passthru = {
tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {};
updateScript = unstableGitUpdater { };
};
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;
};
}