2014-07-24 13:04:36 +02:00
|
|
|
{ fetchurl, stdenv, pkgconfig, libxml2, llvm }:
|
2008-08-22 20:33:52 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-07-24 13:04:36 +02:00
|
|
|
name = "sparse-0.5.0";
|
2008-08-22 20:33:52 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-07-24 13:04:36 +02:00
|
|
|
url = "mirror://kernel/software/devel/sparse/dist/${name}.tar.xz";
|
|
|
|
sha256 = "1mc86jc5xdrdmv17nqj2cam2yqygnj6ar1iqkwsx2y37ij8wy7wj";
|
2008-08-22 20:33:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2014-07-24 13:04:36 +02:00
|
|
|
sed -i Makefile -e "s|^PREFIX=.*$|PREFIX=$out|g"
|
2008-08-22 20:33:52 +02:00
|
|
|
'';
|
|
|
|
|
2014-07-24 13:04:36 +02:00
|
|
|
buildInputs = [ pkgconfig libxml2 llvm ];
|
2008-08-22 20:33:52 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Semantic parser for C";
|
2014-07-24 13:04:36 +02: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 20:33:52 +02:00
|
|
|
};
|
|
|
|
}
|