From 6922d67eb3d9df49d67a3308d427a48c01895039 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Fri, 24 May 2024 03:17:34 +0200 Subject: package.nix: add meta.mainProgram nix-repl> lib.getExe (builtins.getFlake ".").packages.x86_64-linux.nix "/nix/store/ajps2zn5hlap0l2abvnfdaphg8k0789r-lix-2.90.0pre20240524_dirty/bin/nix" Fixes #316. Change-Id: Iec3125dc2dc99d100beb6357f7d1555456924ddc --- package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package.nix') diff --git a/package.nix b/package.nix index 2d4f6c2cd..adb629dd6 100644 --- a/package.nix +++ b/package.nix @@ -366,7 +366,10 @@ stdenv.mkDerivation (finalAttrs: { # strictoverflow is disabled because we trap on signed overflow instead hardeningDisable = [ "strictoverflow" ] ++ lib.optional stdenv.hostPlatform.isStatic "pie"; - meta.platforms = lib.platforms.unix; + meta = { + mainProgram = "nix"; + platforms = lib.platforms.unix; + }; passthru.perl-bindings = pkgs.callPackage ./perl { inherit fileset stdenv; }; -- cgit v1.2.3