2014-07-24 12:04:36 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, libxml2, llvm }:
|
2008-08-22 19:33:52 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-07-24 12:04:36 +01:00
|
|
|
name = "sparse-0.5.0";
|
2008-08-22 19:33:52 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-07-24 12:04:36 +01:00
|
|
|
url = "mirror://kernel/software/devel/sparse/dist/${name}.tar.xz";
|
|
|
|
sha256 = "1mc86jc5xdrdmv17nqj2cam2yqygnj6ar1iqkwsx2y37ij8wy7wj";
|
2008-08-22 19:33:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2014-07-24 12:04:36 +01:00
|
|
|
sed -i Makefile -e "s|^PREFIX=.*$|PREFIX=$out|g"
|
2008-08-22 19:33:52 +01:00
|
|
|
'';
|
|
|
|
|
2014-07-24 12:04:36 +01:00
|
|
|
buildInputs = [ pkgconfig libxml2 llvm ];
|
2008-08-22 19:33:52 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Semantic parser for C";
|
2014-07-24 12:04:36 +01:00
|
|
|
homepage = "https://git.kernel.org/cgit/devel/sparse/sparse.git/";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
2008-08-22 19:33:52 +01:00
|
|
|
};
|
|
|
|
}
|