nixpkgs/pkgs/development/compilers/qbe/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
654 B
Nix
Raw Normal View History

{ lib, stdenv
2022-06-25 15:55:45 +02:00
, fetchzip
2021-06-21 15:53:14 +02:00
, callPackage
2020-10-19 19:58:45 +02:00
}:
2019-05-23 12:20:32 +02:00
2020-10-19 19:58:45 +02:00
stdenv.mkDerivation rec {
2019-05-23 12:20:32 +02:00
pname = "qbe";
2022-06-25 15:55:45 +02:00
version = "1.0";
2019-05-23 12:20:32 +02:00
2022-06-25 15:55:45 +02:00
src = fetchzip {
url = "https://c9x.me/compile/release/qbe-${version}.tar.xz";
sha256 = "sha256-Or6m/y5hb9SlSToBevjhaSbk5Lo5BasbqeJmKd1QpGM=";
2019-05-23 12:20:32 +02:00
};
makeFlags = [ "PREFIX=$(out)" ];
2020-10-19 19:58:45 +02:00
2021-06-21 15:55:50 +02:00
doCheck = true;
2021-06-21 15:53:14 +02:00
passthru = {
tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {};
};
2020-10-19 19:58:45 +02:00
meta = with lib; {
2019-05-23 12:20:32 +02:00
homepage = "https://c9x.me/compile/";
description = "A small compiler backend written in C";
maintainers = with maintainers; [ fgaz ];
license = licenses.mit;
platforms = platforms.all;
};
}