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