mirror of
https://github.com/tweag/nickel.git
synced 2024-11-10 10:46:49 +03:00
b7726ceacc
and node 10 -> 12
20 lines
620 B
Nix
20 lines
620 B
Nix
{pkgs ? import <nixpkgs> {
|
|
inherit system;
|
|
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}:
|
|
|
|
let
|
|
nodePackages = import ./makam-composition.nix {
|
|
inherit pkgs nodejs;
|
|
inherit (pkgs.stdenv.hostPlatform) system;
|
|
};
|
|
in
|
|
nodePackages // {
|
|
makam = nodePackages.makam.override {
|
|
buildInputs = [ pkgs.nodejs pkgs.makeWrapper ];
|
|
postFixup = ''
|
|
wrapProgram "$out/bin/makam" --prefix PATH : ${pkgs.stdenv.lib.makeBinPath [ pkgs.nodejs ]}
|
|
patchelf --set-interpreter ${pkgs.stdenv.glibc}/lib/ld-linux-x86-64.so.2 "$out/lib/node_modules/makam/makam-bin-linux64"
|
|
'';
|
|
};
|
|
}
|