Initial commit

This commit is contained in:
Martin Puppe 2020-09-10 16:39:11 +02:00
commit 0d00fa5123
7 changed files with 121 additions and 0 deletions

30
dist.nix Normal file
View file

@ -0,0 +1,30 @@
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem}:
let
financier = (import ./default.nix { inherit pkgs system; }).package;
meta = import ./meta.nix;
in
pkgs.stdenv.mkDerivation {
inherit (meta) version;
pname = "financier-dist";
src = "${financier}/lib/node_modules/financier";
buildInputs = [ financier.nodejs ];
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
buildPhase = ''
env NO_UPDATE_NOTIFIER=true npm run build
'';
installPhase = ''
cp -r dist $out/
'';
}