2021-08-11 06:06:17 +00:00
|
|
|
{ fetchurl, lib, stdenv, pkg-config, libxml2, llvm, perl }:
|
2008-08-22 18:33:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 10:34:30 +00:00
|
|
|
pname = "sparse";
|
|
|
|
version = "0.5.0";
|
2008-08-22 18:33:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 10:34:30 +00:00
|
|
|
url = "mirror://kernel/software/devel/sparse/dist/${pname}-${version}.tar.xz";
|
2014-07-24 11:04:36 +00:00
|
|
|
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
|
|
|
'';
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-08-11 06:06:17 +00:00
|
|
|
buildInputs = [ libxml2 llvm perl ];
|
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/";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2008-08-22 18:33:52 +00:00
|
|
|
};
|
|
|
|
}
|