More strictly control what goes into elm.nix
This commit is contained in:
parent
cd2d6366b0
commit
524796d74f
10
elm.nix
10
elm.nix
|
@ -1,6 +1,4 @@
|
|||
{ pkgs }:
|
||||
|
||||
with pkgs;
|
||||
{ lib, stdenv, elm, fetchElmDeps, uglify-js, }:
|
||||
|
||||
let
|
||||
mkDerivation =
|
||||
|
@ -15,10 +13,10 @@ let
|
|||
stdenv.mkDerivation {
|
||||
inherit name src;
|
||||
|
||||
buildInputs = [ elmPackages.elm ]
|
||||
++ lib.optional outputJavaScript nodePackages.uglify-js;
|
||||
buildInputs = [ elm ]
|
||||
++ lib.optional outputJavaScript uglify-js;
|
||||
|
||||
buildPhase = pkgs.elmPackages.fetchElmDeps {
|
||||
buildPhase = fetchElmDeps {
|
||||
elmPackages = import srcs;
|
||||
elmVersion = "0.19.1";
|
||||
inherit registryDat;
|
||||
|
|
|
@ -8,7 +8,11 @@
|
|||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
bergamot-elm = import ./elm.nix { inherit pkgs; };
|
||||
bergamot-elm = import ./elm.nix {
|
||||
inherit (pkgs) lib stdenv;
|
||||
inherit (pkgs.elmPackages) fetchElmDeps elm;
|
||||
inherit (pkgs.nodePackages) uglify-js;
|
||||
};
|
||||
in
|
||||
{
|
||||
packages = { inherit bergamot-elm; };
|
||||
|
|
Loading…
Reference in New Issue
Block a user