lol

ocamlPackages.nocrypto: remove at 0.5.4

ocamlPackages.wodan: mark as broken

authored by

Vincent Laporte and committed by
Vincent Laporte
d4cb9de8 f8529770

+3 -77
-73
pkgs/development/ocaml-modules/nocrypto/default.nix
··· 1 - { stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, ocamlbuild, topkg 2 - , cpuid, ocb-stubblr, sexplib 3 - , cstruct, zarith, ppx_sexp_conv, ppx_deriving, writeScriptBin 4 - , cstruct-lwt ? null 5 - }: 6 - 7 - with lib; 8 - let 9 - withLwt = cstruct-lwt != null; 10 - # the build system will call 'cc' with no way to override 11 - # this is wrong when we're cross-compiling, so insert a wrapper 12 - cc-wrapper = writeScriptBin "cc" '' 13 - set -e 14 - $CC "$@" 15 - ''; 16 - in 17 - 18 - if versionOlder ocaml.version "4.08" 19 - then throw "nocrypto is not available for OCaml ${ocaml.version}" 20 - else 21 - 22 - stdenv.mkDerivation rec { 23 - pname = "ocaml${ocaml.version}-nocrypto"; 24 - version = "0.5.4"; 25 - 26 - src = fetchurl { 27 - url = "https://github.com/mirleft/ocaml-nocrypto/releases/download/v${version}/nocrypto-${version}.tbz"; 28 - sha256 = "0zshi9hlhcz61n5z1k6fx6rsi0pl4xgahsyl2jp0crqkaf3hqwlg"; 29 - }; 30 - 31 - patches = [ 32 - (fetchpatch { 33 - url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/nocrypto/nocrypto.0.5.4-1/files/0001-add-missing-runtime-dependencies-in-_tags.patch"; 34 - sha256 = "1asybwj3rl07b4q4cxwy80a7j17j0i5vzz77p38hymilhc2ky7xn"; 35 - }) 36 - (fetchpatch { 37 - url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/nocrypto/nocrypto.0.5.4-1/files/0002-add-ppx_sexp_conv-as-a-runtime-dependency-in-the-pac.patch"; 38 - sha256 = "0zmp64n5fgkawpkyw0vv0bg0i2c3xbsxqy17vwy92nf5rbardi1r"; 39 - }) 40 - (fetchpatch { 41 - url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/nocrypto/nocrypto.0.5.4-1/files/0003-Auto-detect-ppx_sexp_conv-runtime-library.patch"; 42 - sha256 = "0lngbg5gyd5gs56lbjh6g86cps1y8x1xsqzi0vi1v28al1gn5dhw"; 43 - }) 44 - (fetchpatch { 45 - url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/nocrypto/nocrypto.0.5.4-1/files/0004-pack-package-workaround-ocamlbuild-272.patch"; 46 - sha256 = "16k0w78plvqhl17qiqq1mckxhhcdysqgs94l54a1bn0l6fx3rvb9"; 47 - }) 48 - (fetchpatch { 49 - url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/nocrypto/nocrypto.0.5.4-1/files/0005-use-modern-cstruct-findlib.patch"; 50 - sha256 = "021k38zbdidw6g7j4vjxlnbsrnzq07bnavxzdjq23nbwlifs2nq9"; 51 - }) 52 - (fetchpatch { 53 - url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/nocrypto/nocrypto.0.5.4-1/files/0006-explicit-dependency-on-sexplib.patch"; 54 - sha256 = "15kd0qgi96yxr3qkmaqny591l0s6qmwpprxd5xdx9qwv72hq813z"; 55 - }) 56 - ]; 57 - 58 - nativeBuildInputs = [ ocaml findlib ocamlbuild cc-wrapper ]; 59 - buildInputs = [ topkg cpuid ocb-stubblr ocamlbuild ]; 60 - propagatedBuildInputs = [ cstruct ppx_deriving ppx_sexp_conv sexplib zarith ] ++ optional withLwt cstruct-lwt; 61 - 62 - strictDeps = true; 63 - 64 - buildPhase = "${topkg.buildPhase} --accelerate false --with-lwt ${boolToString withLwt}"; 65 - inherit (topkg) installPhase; 66 - 67 - meta = { 68 - homepage = "https://github.com/mirleft/ocaml-nocrypto"; 69 - description = "Simplest possible crypto to support TLS"; 70 - license = lib.licenses.bsd2; 71 - maintainers = with lib.maintainers; [ vbgl ]; 72 - }; 73 - }
+3 -2
pkgs/development/ocaml-modules/wodan/default.nix
··· 1 1 { lib, buildDunePackage, fetchFromGitHub, lwt_ppx, ppx_cstruct, optint 2 - , checkseum, diet, bitv, nocrypto, logs, lru, io-page, mirage-block }: 2 + , checkseum, diet, bitv, logs, lru, io-page, mirage-block }: 3 3 4 4 buildDunePackage rec { 5 5 pname = "wodan"; ··· 24 24 checkseum 25 25 diet 26 26 bitv 27 - nocrypto 27 + /* nocrypto */ 28 28 logs 29 29 lru 30 30 io-page ··· 32 32 ]; 33 33 34 34 meta = with lib; { 35 + broken = true; # nocrypto is no longer available in nixpkgs 35 36 inherit (src.meta) homepage; 36 37 description = "A flash-friendly, safe and flexible filesystem library"; 37 38 license = licenses.isc;
-2
pkgs/top-level/ocaml-packages.nix
··· 921 921 922 922 netchannel = callPackage ../development/ocaml-modules/netchannel { }; 923 923 924 - nocrypto = callPackage ../development/ocaml-modules/nocrypto { }; 925 - 926 924 nonstd = callPackage ../development/ocaml-modules/nonstd { }; 927 925 928 926 notty = callPackage ../development/ocaml-modules/notty { };