mirror of
https://codeberg.org/puppe/financier-nix.git
synced 2025-12-20 00:12:17 +01:00
Initial commit
This commit is contained in:
commit
0d00fa5123
7 changed files with 121 additions and 0 deletions
30
dist.nix
Normal file
30
dist.nix
Normal 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/
|
||||
'';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue