From 7352984a5c3bc35f20184ddff97daea93f6b3738 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Fri, 26 Feb 2021 21:34:48 +0100 Subject: Deduplicate workadventure sources Maximal sharing means that even if the workadventure sources are imported in all nix files, there will still only be one copy of it in the nix store --- nevertheless, it seems reasonable to only have them once in the code, too, if only to make upgrading them easier. --- uploader/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'uploader/default.nix') diff --git a/uploader/default.nix b/uploader/default.nix index fa42f12..58e10c0 100644 --- a/uploader/default.nix +++ b/uploader/default.nix @@ -1,3 +1,5 @@ +workadventuresrc: + { stdenv , fetchFromGitHub , makeWrapper @@ -11,13 +13,7 @@ yarn2nix-moretea.mkYarnPackage rec { pname = "workadventureuploader"; version = "unstable"; - src = fetchFromGitHub - { - owner = "thecodingmachine"; - repo = "workadventure"; - rev = "6e9c71598004dc9cbab9418efb3c0ac892da7ca2"; - sha256 = "0rvra0dy631al4aylacyqldkyd6biawz2shsikgcy30nv5lzc78c"; - } + "/uploader"; + src = "${workadventuresrc}/uploader"; # NOTE: this is optional and generated dynamically if omitted yarnNix = ./yarn.nix; -- cgit v1.2.3