aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorSerge Bazanski2021-02-04 22:27:50 +0000
committerSerge Bazanski2021-02-04 22:27:50 +0000
commit059adccbe54c6a85d2366f0d0bb3956356bf64a3 (patch)
tree28dcbda0d04dac203b7d9c00e1dde46f9a919d21 /default.nix
parent51d69620e1543f8cf4ae093c4c0b15e228c58d14 (diff)
parentb4bfd52e7c27141890a16f913c7a5873fc5a06ef (diff)
Merge branch 'overlay' into 'master'
create overlay and move everything into workadventure.* See merge request fediventure/workadventure-nix!2
Diffstat (limited to '')
-rw-r--r--default.nix19
1 files changed, 8 insertions, 11 deletions
diff --git a/default.nix b/default.nix
index c77e02c..47254a6 100644
--- a/default.nix
+++ b/default.nix
@@ -1,11 +1,8 @@
-with import <nixpkgs> {};
-lib.fix (self: let
- callPackage = lib.callPackageWith self;
-in pkgs // {
- workadventure-back = callPackage ./back {};
- workadventure-pusher = callPackage ./pusher {};
- workadventure-messages = callPackage ./messages {};
- workadventure-front = callPackage ./front {};
- workadventure-uploader = callPackage ./uploader {};
- workadventure-maps = callPackage ./maps {};
-})
+{ system ? builtins.currentSystem, nixpkgs ? <nixpkgs> }:
+
+let
+ pkgs = import nixpkgs { inherit system; overlays = [ (import ./overlay.nix) ]; };
+in {
+ inherit pkgs;
+ inherit (pkgs) workadventure;
+}