nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv
2, fetchgit
3, unstableGitUpdater
4, callPackage
5}:
6
7stdenv.mkDerivation rec {
8 pname = "qbe";
9 version = "unstable-2022-04-11";
10
11 src = fetchgit {
12 url = "git://c9x.me/qbe.git";
13 rev = "2caa26e388b1c904d2f12fb09f84df7e761d8331";
14 sha256 = "sha256-TNKHKX/PbrNIQJ+Q50KemfcigEBKe7gmJzTjB6ofYL8=";
15 };
16
17 makeFlags = [ "PREFIX=$(out)" ];
18
19 doCheck = true;
20
21 passthru = {
22 tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {};
23 updateScript = unstableGitUpdater { };
24 };
25
26 meta = with lib; {
27 homepage = "https://c9x.me/compile/";
28 description = "A small compiler backend written in C";
29 maintainers = with maintainers; [ fgaz ];
30 license = licenses.mit;
31 platforms = platforms.all;
32 };
33}