From fd8efbb25f4a44036fc430a8f49f6921ae69679e Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Sun, 5 Sep 2021 14:08:37 +0200 Subject: [PATCH] libkookie: update nom builder --- infra/nom/default.nix | 38 ++++---------------------------------- 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/infra/nom/default.nix b/infra/nom/default.nix index e7b4d4cdc71..8c4a65dac90 100644 --- a/infra/nom/default.nix +++ b/infra/nom/default.nix @@ -1,37 +1,7 @@ -with import {}; +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 = ./.; }