aboutsummaryrefslogtreecommitdiff
path: root/exneuland.nix
diff options
context:
space:
mode:
Diffstat (limited to 'exneuland.nix')
-rw-r--r--exneuland.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/exneuland.nix b/exneuland.nix
new file mode 100644
index 0000000..1e9b2b1
--- /dev/null
+++ b/exneuland.nix
@@ -0,0 +1,23 @@
+{ pkgs ? import (import ./nix/sources.nix {}).nixpkgs {}
+, unstable-pkgs ? import (import ./nix/sources.nix {}).nixpkgs-unstable {}
+, exneuland-src ? (import ./nix/sources.nix {}).exneuland
+, ...}:
+
+let
+ packages = pkgs.beam.packagesWith pkgs.beam.interpreters.erlang;
+
+in (packages.mixRelease.override {elixir = unstable-pkgs.elixir_1_12; }) rec {
+ pname = "exneuland";
+ version = "0.0.1";
+ src = exneuland-src;
+
+ mixEnv = "prod";
+
+ mixDeps = packages.fetchMixDeps {
+ pname = "mix-deps-${pname}";
+ inherit src mixEnv version;
+ sha256 = "0nyips2ky6rmgq3xdhrhg4fnw4m2pmck6p1amw9m7qisdqlxhv25";
+ };
+
+ buildInputs = with pkgs; [ rebar3 protobuf ];
+}