Files
nixpkgs/pkgs/development/tools/analysis/sparse/default.nix
T

27 lines
720 B
Nix
Raw Normal View History

2014-07-24 06:04:36 -05:00
{ fetchurl, stdenv, pkgconfig, libxml2, llvm }:
2008-08-22 18:33:52 +00:00
stdenv.mkDerivation rec {
2014-07-24 06:04:36 -05:00
name = "sparse-0.5.0";
2008-08-22 18:33:52 +00:00
src = fetchurl {
2014-07-24 06:04:36 -05: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 06:04:36 -05:00
sed -i Makefile -e "s|^PREFIX=.*$|PREFIX=$out|g"
2008-08-22 18:33:52 +00:00
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 llvm ];
2008-08-22 18:33:52 +00:00
doCheck = true;
meta = {
2014-08-24 16:21:08 +02:00
description = "Semantic parser for C";
2014-07-24 06:04:36 -05: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
};
}