1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

Set packages.default for nix run

With the pre-2.7 `defaultPackage` key, one would write
```
defaultPackage = packages.hello
```

I guess you can do the same in 2.7, but then you have two attrs in packages, which seems like it might confuse tooling:

```
packages.default = packages.hello
```

I wonder if packages.default shouldn't be a string? but then it would need validation...
This commit is contained in:
Eric Drechsel 2022-06-03 14:02:13 -07:00 committed by GitHub
parent 7678eacc0c
commit fe47133e9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@
# system. # system.
# Equivalent to inputs'.nixpkgs.legacyPackages.hello; # Equivalent to inputs'.nixpkgs.legacyPackages.hello;
packages.hello = pkgs.hello; packages.default = pkgs.hello;
}; };
flake = { flake = {
# The usual flake attributes can be defined here, including system- # The usual flake attributes can be defined here, including system-