Merge pull request #11614 from Gerg-L/master

nix-ng: add meta.mainProgram
This commit is contained in:
tomberek 2024-09-29 18:28:56 -04:00 committed by GitHub
commit 973d4ede84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@
nix-perl-bindings, nix-perl-bindings,
}: }:
(buildEnv rec { (buildEnv {
name = "nix-${nix-cli.version}"; name = "nix-${nix-cli.version}";
paths = [ paths = [
nix-util nix-util
@ -76,6 +76,8 @@
] ++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ ] ++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
nix-perl-bindings nix-perl-bindings
]; ];
meta.mainProgram = "nix";
}).overrideAttrs (finalAttrs: prevAttrs: { }).overrideAttrs (finalAttrs: prevAttrs: {
doCheck = true; doCheck = true;
doInstallCheck = true; doInstallCheck = true;