summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2021-05-29 15:28:47 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2021-06-05 13:38:01 +0200
commitc3d87595f101339701fcb63dc6cb962406597fbf (patch)
tree81448b653737e9efdd79109b1ed05def6255badc
parent759d05ce9e9f899f91d1b82e47633b00e6a975b0 (diff)
downloadnixpkgs-c3d87595f101339701fcb63dc6cb962406597fbf.tar
nixpkgs-c3d87595f101339701fcb63dc6cb962406597fbf.tar.gz
nixpkgs-c3d87595f101339701fcb63dc6cb962406597fbf.tar.bz2
nixpkgs-c3d87595f101339701fcb63dc6cb962406597fbf.tar.lz
nixpkgs-c3d87595f101339701fcb63dc6cb962406597fbf.tar.xz
nixpkgs-c3d87595f101339701fcb63dc6cb962406597fbf.tar.zst
nixpkgs-c3d87595f101339701fcb63dc6cb962406597fbf.zip
coccinelle: 1.0.6 → 1.1.0
-rw-r--r--pkgs/development/tools/misc/coccinelle/default.nix26
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 6 insertions, 24 deletions
diff --git a/pkgs/development/tools/misc/coccinelle/default.nix b/pkgs/development/tools/misc/coccinelle/default.nix
index 40a22f18203..8534f1e2d85 100644
--- a/pkgs/development/tools/misc/coccinelle/default.nix
+++ b/pkgs/development/tools/misc/coccinelle/default.nix
@@ -2,36 +2,20 @@
 
 stdenv.mkDerivation rec {
   pname = "coccinelle";
-  version = "1.0.6";
+  version = "1.1.0";
 
   src = fetchurl {
-    url = "http://coccinelle.lip6.fr/distrib/${pname}-${version}.tgz";
-    sha256 = "02g9hmwkvfl838zz690yra5jzrqjg6y6ffxkrfcsx790bhkfsll4";
+    url = "https://coccinelle.gitlabpages.inria.fr/website/distrib/${pname}-${version}.tar.gz";
+    sha256 = "0k0x4qnxzj8fymkp6y9irggcah070hj7hxq8l6ddj8ccpmjbhnsb";
   };
 
   buildInputs = with ocamlPackages; [
     ocaml findlib menhir
-    ocaml_pcre pycaml
+    ocaml_pcre parmap stdcompat
     python ncurses pkg-config
   ];
 
-  doCheck = !stdenv.isDarwin;
-
-  # The build system builds two versions of spgen:
-  # 'spgen' with ocamlc -custom (bytecode specially linked)
-  # and 'spgen.opt' using ocamlopt.
-  # I'm not sure of the intentions here, but the way
-  # the 'spgen' binary is produced results in an
-  # invalid/incorrect interpreter path (/lib/ld-linux*).
-  # We could patch it, but without knowing why it's
-  # finding the wrong path it seems safer to use
-  # the .opt version that is built correctly.
-  # All that said, our fix here is simple: remove 'spgen'.
-  # The bin/spgen entrypoint is really a bash script
-  # and will use spgen.opt if 'spgen' doesn't exist.
-  postInstall = ''
-    rm $out/lib/coccinelle/spgen/spgen
-  '';
+  doCheck = false;
 
   meta = {
     description = "Program to apply semantic patches to C code";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index bbcc8958686..1e9f9c1087c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -13072,9 +13072,7 @@ in
   # Does not actually depend on Qt 5
   inherit (plasma5Packages) extra-cmake-modules;
 
-  coccinelle = callPackage ../development/tools/misc/coccinelle {
-    ocamlPackages = ocaml-ng.ocamlPackages_4_05;
-  };
+  coccinelle = callPackage ../development/tools/misc/coccinelle { };
 
   cpptest = callPackage ../development/libraries/cpptest { };