Skip to content

Instantly share code, notes, and snippets.

@ankhers
Created June 18, 2019 15:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankhers/dab24c0c34d13246ffc4f8c4007f3eb5 to your computer and use it in GitHub Desktop.
Save ankhers/dab24c0c34d13246ffc4f8c4007f3eb5 to your computer and use it in GitHub Desktop.
{ mkDerivation }:
mkDerivation rec {
version = "custom";
rev = "e2c78e8ba948739768a335999e35a06d5eb5ad4b";
sha256 = "0fl49cznksscb1m0n87h3bpfknxg5hxvwgny69r5f7lgvlzzd3k3";
minimumOTPVersion = "20";
}
with import <nixpkgs> {};
let
lib = pkgs.callPackage <nixpkgs/pkgs/development/beam-modules/lib.nix> {};
elixir = lib.callElixir ./custom_elixir.nix { inherit rebar erlang; };
in
stdenv.mkDerivation {
name = "libfoo-1.2.3";
src = ./.;
buildInputs = [ elixir ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment