Skip to content

Commit

Permalink
Bump flake
Browse files Browse the repository at this point in the history
  • Loading branch information
jonringer committed Jun 5, 2024
1 parent be7aa7f commit ca34220
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@
legacyPackages = pkgsForSystem system;
packages = utils.lib.flattenTree {
inherit (legacyPackages) devShell nix-template;
default = legacyPackages.nix-template;
};
defaultPackage = packages.nix-template;
apps.nix-template = utils.lib.mkApp { drv = packages.nix-template; }; # use as `nix run <mypkg>`
hydraJobs = { inherit (legacyPackages) nix-template; };
checks = { inherit (legacyPackages) nix-template; }; # items to be ran as part of `nix flake check`
devShells.default = with legacyPackages; mkShell {
nativeBuildInputs = [ rustc cargo clippy pkg-config ];
buildInputs = [ openssl ];
};
}) // {
# non-system suffixed items should go here
overlays.default = localOverlay;
Expand Down
2 changes: 1 addition & 1 deletion nix/nix-template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];

doCheck = true;
checkInputs = [ clippy ];
nativeCheckInputs = [ clippy ];
postCheck = ''
cargo clippy
'';
Expand Down

0 comments on commit ca34220

Please sign in to comment.