1
1
mirror of https://github.com/tweag/nickel.git synced 2024-11-10 10:46:49 +03:00
nickel/makam-spec/default.nix
Teodoro Freund b7726ceacc 0.7.22 -> 0.7.24
and node 10 -> 12
2019-12-20 11:31:45 +01:00

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"
'';
};
}