move outputcheck to python3, add python3Package lit

This commit is contained in:
Sebastien Bourdeauducq 2019-02-22 12:54:10 +08:00
parent f03d5d52b9
commit 5be4588e7d
2 changed files with 23 additions and 3 deletions

View File

@ -32,7 +32,7 @@ let
in in
rec { rec {
inherit (rust) rustc; inherit (rust) rustc;
inherit (pythonDeps) asyncserial levenshtein pythonparser quamash pyqtgraph-qt5 misoc migen microscope jesd204b outputcheck sphinx-argparse wavedrom sphinxcontrib-wavedrom; inherit (pythonDeps) asyncserial levenshtein pythonparser quamash pyqtgraph-qt5 misoc migen microscope jesd204b lit outputcheck sphinx-argparse wavedrom sphinxcontrib-wavedrom;
binutils-or1k = callPackage ./pkgs/binutils-or1k.nix {}; binutils-or1k = callPackage ./pkgs/binutils-or1k.nix {};
llvm-or1k = callPackage ./pkgs/llvm-or1k.nix { inherit llvm-src; }; llvm-or1k = callPackage ./pkgs/llvm-or1k.nix { inherit llvm-src; };
llvmlite-artiq = callPackage ./pkgs/llvmlite-artiq.nix { inherit llvm-or1k; }; llvmlite-artiq = callPackage ./pkgs/llvmlite-artiq.nix { inherit llvm-or1k; };

View File

@ -1,4 +1,4 @@
{ pkgs, stdenv, fetchFromGitHub, python, python2Packages, python3Packages }: { pkgs, stdenv, fetchFromGitHub, python, python3Packages }:
rec { rec {
# User dependencies # User dependencies
@ -150,7 +150,27 @@ rec {
}; };
}; };
outputcheck = python2Packages.buildPythonApplication rec { # not using the nixpkgs version because it is Python 2 and an "application"
lit = python3Packages.buildPythonPackage rec {
pname = "lit";
version = "0.7.1";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "ecef2833aef7f411cb923dac109c7c9dcc7dbe7cafce0650c1e8d19c243d955f";
};
# Non-standard test suite. Needs custom checkPhase.
doCheck = false;
meta = with stdenv.lib; {
description = "Portable tool for executing LLVM and Clang style test suites";
homepage = http://llvm.org/docs/CommandGuide/lit.html;
license = licenses.ncsa;
};
};
outputcheck = python3Packages.buildPythonApplication rec {
pname = "outputcheck"; pname = "outputcheck";
version = "0.4.2"; version = "0.4.2";