aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/compilers/qbe/default.nix
blob: 436b03e499c37f93d376d83fa414323454e76313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv
, fetchgit
, unstableGitUpdater
}:

stdenv.mkDerivation rec {
  pname = "qbe";
  version = "unstable-2019-07-11";

  src = fetchgit {
    url = "git://c9x.me/qbe.git";
    rev = "7bf08ff50729037c8820b26d085905175b5593c8";
    sha256 = "0w1yack5ky6x6lbw8vn6swsy8s90n6ny0jpkw0866ja677z7qz34";
  };

  makeFlags = [ "PREFIX=$(out)" ];

  passthru.updateScript = unstableGitUpdater { };

  meta = with stdenv.lib; {
    homepage = "https://c9x.me/compile/";
    description = "A small compiler backend written in C";
    maintainers = with maintainers; [ fgaz ];
    license = licenses.mit;
    platforms = platforms.all;
  };
}