Files
nixpkgs/pkgs/development/ocaml-modules/cil/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
959 B
Nix

{
lib,
stdenv,
fetchurl,
perl,
ocaml,
findlib,
ocamlbuild,
}:
stdenv.mkDerivation rec {
pname = "ocaml-cil";
version = "1.7.3";
src = fetchurl {
url = "mirror://sourceforge/cil/cil-${version}.tar.gz";
sha256 = "05739da0b0msx6kmdavr3y2bwi92jbh3szc35d7d8pdisa8g5dv9";
};
nativeBuildInputs = [
perl
ocaml
findlib
ocamlbuild
];
strictDeps = true;
createFindlibDestdir = true;
preConfigure = ''
substituteInPlace Makefile.in --replace 'MACHDEPCC=gcc' 'MACHDEPCC=$(CC)'
export FORCE_PERL_PREFIX=1
'';
prefixKey = "-prefix=";
meta = {
homepage = "https://sourceforge.net/projects/cil/";
description = "Front-end for the C programming language that facilitates program analysis and transformation";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
broken = lib.versionAtLeast ocaml.version "4.06";
platforms = ocaml.meta.platforms or [ ];
};
}