diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-09-07 22:07:54 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-10-03 08:26:42 +0200 |
commit | de84782dedffc177043775e3fc0f5790cc4a7628 (patch) | |
tree | fc4df86ec5bbdb78b26d9db26880263c278500c4 /pkgs | |
parent | 3a658f4c41d9e30c31d366f2388c69181e8cb3d1 (diff) |
ocaml-deriving: drop legacy package
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/ocaml/deriving/default.nix | 72 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 0 insertions, 74 deletions
diff --git a/pkgs/development/tools/ocaml/deriving/default.nix b/pkgs/development/tools/ocaml/deriving/default.nix deleted file mode 100644 index 55bbf3748ea91..0000000000000 --- a/pkgs/development/tools/ocaml/deriving/default.nix +++ /dev/null @@ -1,72 +0,0 @@ -{stdenv, fetchurl, zlib, ocaml, findlib, ncurses -, versionedDerivation, unzip -, version ? - let match = { - "ocaml-3.10.0" = "for-3.10.0"; - "ocaml-3.12.1" = "for-3.12.1"; - }; in stdenv.lib.maybeAttr ocaml.name (throw "no matching source of ocaml-deriving for ocaml version: ${ocaml.name}") match -}: - -/* -Usage example: - -== main.ml == -type t = | A | B - deriving (Show) - -print_string (Show.show<t> (A));; -== - -ocamlopt -pp $out/bin/deriving -I $d/lib -I $d/syntax nums.cmxa show.cmx main.ml -*/ - -versionedDerivation "ocaml-deriving" version { - - "for-3.10.0" = { - name = "deriving-0.1.1a"; - # ocaml: 3.10.0 - src = fetchurl { - url = https://deriving.googlecode.com/files/deriving-0.1.1a.tar.gz; - sha256 = "0ppmqhc23kccfjn3cnd9n205ky627ni8f5djf8sppmc3lc1m97mb"; - }; - }; - - "for-3.12.1" = { - name = "deriving-git20100903"; - - # https://github.com/jaked/deriving - src = fetchurl { - name = "for-3.12.0.zip"; - url = https://codeload.github.com/jaked/deriving/zip/c7b9cea3eb4bbfb9e09673faf725f70247c9df78; - sha256 = "1zrmpqb5lsjmizqs68czmfpsbz9hz30pf97w11kkby175hhj84gi"; - }; - - buildInputs = [ unzip ]; - }; - -} -{ - buildInputs = [ocaml findlib]; - - installPhase = '' - # not all tests compile !? - # (cd tests; make) - - mkdir -p $out/bin - cp -a lib $out/ - cp -a syntax $out - - # this allows -pp deriving - ln -s $out/syntax/deriving $out/bin/deriving - ''; - - meta = { - homepage = "https://code.google.com/p/deriving/source/checkout"; - description = "A library of cryptographic primitives for OCaml"; - license = stdenv.lib.licenses.mit; - platforms = ocaml.meta.platforms; - maintainers = [ - stdenv.lib.maintainers.z77z - ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9d77849bbb77a..2292307f89860 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4357,8 +4357,6 @@ let ctypes = callPackage ../development/ocaml-modules/ctypes { }; - deriving = callPackage ../development/tools/ocaml/deriving { }; - dolog = callPackage ../development/ocaml-modules/dolog { }; easy-format = callPackage ../development/ocaml-modules/easy-format { }; |