summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorstuebinm2021-08-19 19:34:15 +0200
committerstuebinm2021-08-19 19:34:15 +0200
commit430fdd501c2017b125e75b2e55358a51216b45ab (patch)
tree29be3196370b11b0ceee0dbd15e6bc1458b8dddf /pkgs
parentb9a5df8499e8ca78a4b67d022f5bd110a2a2a859 (diff)
workadventure: use exneuland backend
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/exneuland.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/exneuland.nix b/pkgs/exneuland.nix
new file mode 100644
index 0000000..9cd4c71
--- /dev/null
+++ b/pkgs/exneuland.nix
@@ -0,0 +1,32 @@
+let
+ sources = import ../nix/sources.nix {};
+in
+
+with import sources.nixpkgs {};
+
+let
+ packages = beam.packagesWith beam.interpreters.erlang;
+ src = fetchFromGitLab {
+ owner = "hexchen";
+ repo = "exneuland";
+ rev = "main";
+ sha256 = "0zh1vvjhzaymlngg5armhp6xqrdjmnd29hpf7c3ci03h3rg4snbq";
+ };
+
+ pname = "exneuland";
+ version = "0.0.1";
+ mixEnv = "prod";
+
+ mixDeps = packages.fetchMixDeps {
+ pname = "mix-deps-${pname}";
+ inherit src mixEnv version;
+ sha256 = "0nyips2ky6rmgq3xdhrhg4fnw4m2pmck6p1amw9m7qisdqlxhv25";
+ };
+
+in (packages.mixRelease.override {
+ elixir = (import sources.nixpkgs-unstable {}).elixir_1_12;
+}) {
+ inherit src pname version mixEnv mixDeps;
+
+ buildInputs = [ rebar3 protobuf ];
+}