libkookie: update nom builder

wip/nixpkgs-raku
Katharina Fey 3 years ago
parent eb46f6c6aa
commit fd8efbb25f
Signed by: kookie
GPG Key ID: 90734A9E619C8A6C
  1. 38
      infra/nom/default.nix

@ -1,37 +1,7 @@
with import <nixpkgs> {};
with import ../libkookie {};
let
mkRakuPackage = { name
, version
, src
, buildInputs ? []
, nativeBuildInputs ? []
}: stdenv.mkDerivation {
pname = name;
inherit src version;
nativeBuildInputs = [ pkgs.makeWrapper ] ++ nativeBuildInputs;
buildInputs = with pkgs; [ rakudo ] ++ buildInputs;
# Raku programs are just-in-time compiled
dontBuild = true;
installPhase = ''
mkdir -p $out
cp -r bin/ $out/
for bin in $out/bin/*; do
wrapProgram $bin --set RAKULIB $out/lib
done
cp -r lib/ $out/
'';
};
in
mkRakuPackage {
name = "nom";
buildRakuPackage {
pname = "nom";
version = "0.1.0";
src = ./.;
src = ./.;
}

Loading…
Cancel
Save