64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
beamPackages,
|
|
makeWrapper,
|
|
rebar3,
|
|
elixir,
|
|
erlang,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
nix-update-script,
|
|
}:
|
|
beamPackages.mixRelease rec {
|
|
pname = "livebook";
|
|
version = "0.16.4";
|
|
|
|
inherit elixir;
|
|
|
|
buildInputs = [ erlang ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "livebook-dev";
|
|
repo = "livebook";
|
|
tag = "v${version}";
|
|
hash = "sha256-Cwzcoslqjaf7z9x2Sgnzrrl4zUcH2f7DEWaFPBIi3ms=";
|
|
};
|
|
|
|
mixFodDeps = beamPackages.fetchMixDeps {
|
|
pname = "mix-deps-${pname}";
|
|
inherit src version;
|
|
hash = "sha256-OEYkWh0hAl7ZXP2Cq+TgVGF4tnWlpF6W5uRSdyrswlA=";
|
|
};
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/livebook \
|
|
--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
elixir
|
|
erlang
|
|
]
|
|
} \
|
|
--set MIX_REBAR3 ${rebar3}/bin/rebar3
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests = {
|
|
livebook-service = nixosTests.livebook-service;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
license = lib.licenses.asl20;
|
|
homepage = "https://livebook.dev/";
|
|
description = "Automate code & data workflows with interactive Elixir notebooks";
|
|
maintainers = with lib.maintainers; [
|
|
munksgaard
|
|
scvalex
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|