Skip to content

Instantly share code, notes, and snippets.

@ericbmerritt
Created January 14, 2014 20:32
Show Gist options
  • Save ericbmerritt/8425152 to your computer and use it in GitHub Desktop.
Save ericbmerritt/8425152 to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
stdenv = pkgs.stdenv;
in rec {
re = pkgs.callPackage ./pkgs/ocaml/re/v1.2.1.nix {
inherit (pkgs) stdenv fetchurl ocaml ocaml-findlib;
} ;
app = stdenv.mkDerivation {
name = "application";
src = ./lib;
PORT = "8888";
buildInputs = [ pkgs.ocaml re ];
};
}
{stdenv, fetchurl, ocaml, ocaml-findlib}:
stdenv.mkDerivation rec {
version = "1.2.1";
name = "re-${version}";
builder = ./builder.sh;
src = fetchurl {
url = https://github.com/ocaml/ocaml-re/archive/ocaml-re-1.2.1.tar.gz;
sha256 = "bfb5ef6a18b454b2caa845a4f6d388e3ac8505a78a4b8244a60c8b5bbc674141";
};
buildInputs = [ ocaml ocaml-findlib ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment