mirror of
https://codeberg.org/puppe/financier-nix.git
synced 2025-12-20 00:12:17 +01:00
19 lines
532 B
Nix
19 lines
532 B
Nix
{ pkgs ? import <nixpkgs> { inherit system; }, system ? builtins.currentSystem
|
|
, financierVersion }:
|
|
|
|
let
|
|
financier = (import ./default.nix { inherit pkgs system; }).package;
|
|
|
|
in pkgs.stdenv.mkDerivation {
|
|
version = financierVersion;
|
|
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/
|
|
'';
|
|
}
|