mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
e7836bc5a5
cgcc command has shebang of /usr/bin/perl, which obviously does not work for nixos, adding perl to buildInputs seems to make all the magic happen, as per usual.
28 lines
745 B
Nix
28 lines
745 B
Nix
{ fetchurl, lib, stdenv, pkg-config, libxml2, llvm, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sparse";
|
|
version = "0.5.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kernel/software/devel/sparse/dist/${pname}-${version}.tar.xz";
|
|
sha256 = "1mc86jc5xdrdmv17nqj2cam2yqygnj6ar1iqkwsx2y37ij8wy7wj";
|
|
};
|
|
|
|
preConfigure = ''
|
|
sed -i Makefile -e "s|^PREFIX=.*$|PREFIX=$out|g"
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libxml2 llvm perl ];
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Semantic parser for C";
|
|
homepage = "https://git.kernel.org/cgit/devel/sparse/sparse.git/";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|