diff options
author | Pierre Bourdon <delroth@gmail.com> | 2024-05-24 03:17:34 +0200 |
---|---|---|
committer | Pierre Bourdon <delroth@gmail.com> | 2024-05-24 02:15:45 +0000 |
commit | 6922d67eb3d9df49d67a3308d427a48c01895039 (patch) | |
tree | 764616714b667870382a02007a3ef00a619238d3 | |
parent | d1fa446454ce6bb1119dac5caa181be977c24c61 (diff) |
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
-rw-r--r-- | package.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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; }; |