nixpkgs/pkgs/development/ocaml-modules/pycaml/default.nix
Matthew Justin Bauer 2eacddf0dc treewide: homepage URL fixes (#28475)
* pgadmin: use https homepage

* msn-pecan: move homepage to github

google code is now unavailable

* pidgin-latex: use https for homepage

* pidgin-opensteamworks: use github for homepage

google code is unavailable

* putty: use https for homepage

* ponylang: use https for homepage

* picolisp: use https for homepage

* phonon: use https for homepage

* pugixml: use https for homepage

* pioneer: use https for homepage

* packer: use https for homepage

* pokerth: usee https for homepage

* procps-ng: use https for homepage

* pycaml: use https for homepage

* proot: move homepage to .github.io

* pius: use https for homepage

* pdfread: use https for homepage

* postgresql: use https for homepage

* ponysay: move homepage to new site

* prometheus: use https for homepage

* powerdns: use https for homepage

* pm-utils: use https for homepage

* patchelf: move homepage to https

* tesseract: move homepage to github

* quodlibet: move homepage from google code

* jbrout: move homepage from google code

* eiskaltdcpp: move homepage to github

* nodejs: use https to homepage

* nix: use https for homepage

* pdf2djvu: move homepage from google code

* game-music-emu: move homepage from google code

* vacuum: move homepae from google code
2017-08-22 20:50:04 +02:00

51 lines
1.5 KiB
Nix

{stdenv, fetchurl, ocaml, findlib, ncurses, python, ocaml_make}:
# This is the original pycaml version with patches from debian.
let debian = fetchurl {
url = "mirror://debian/pool/main/p/pycaml/pycaml_0.82-14.debian.tar.gz";
sha256 = "a763088ec1fa76c769bf586ed6692e7ac035b0a2bfd48a90a8e7a9539ec0c2f1";
};
in stdenv.mkDerivation {
name = "pycaml-0.82-14";
srcs = [
(fetchurl {
url = "mirror://debian/pool/main/p/pycaml/pycaml_0.82.orig.tar.gz";
sha256 = "d57be559c8d586c575717d47817986bbdbcebe2ffd16ad6b291525c62868babe";
})
(fetchurl {
url = "mirror://debian/pool/main/p/pycaml/pycaml_0.82-14.debian.tar.gz";
sha256 = "a763088ec1fa76c769bf586ed6692e7ac035b0a2bfd48a90a8e7a9539ec0c2f1";
})
];
postPatch = ''
rm -f Makefile* configure*
cp ../debian/META ../debian/Makefile .
sed -i "Makefile" -e's|/usr/share/ocamlmakefile/OCamlMakefile|${ocaml_make}/include/OCamlMakefile|g'
'';
sourceRoot = "pycaml";
patches = [ "../debian/patches/*.patch" ];
buildInputs = [ ncurses ocaml findlib python ocaml_make ];
createFindlibDestdir = true;
# the Makefile is not shipped with an install target, hence we do it ourselves.
installPhase = ''
ocamlfind install pycaml \
dllpycaml_stubs.so libpycaml_stubs.a pycaml.a pycaml.cma \
pycaml.cmi pycaml.cmo pycaml.cmx pycaml.cmxa \
META
'';
meta = {
homepage = https://github.com/chemoelectric/pycaml;
description = "Bindings for python and ocaml";
license = "LGPL";
platforms = ocaml.meta.platforms or [];
};
}