Skip to content

Commit

Permalink
Merge pull request #128 from DeterminateSystems/flake-schemas
Browse files Browse the repository at this point in the history
Add flake schemas
  • Loading branch information
lucperkins authored Jul 5, 2024
2 parents 6ba8ec5 + 50929ac commit 6e16904
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
15 changes: 15 additions & 0 deletions flake.lock

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

10 changes: 6 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
{
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2405.*";

rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};

crane = {
url = "https://flakehub.com/f/ipetkov/crane/0.17.*";
inputs.nixpkgs.follows = "nixpkgs";
};

flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*";
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.0.1";
};

outputs = { self, nixpkgs, rust-overlay, crane, ... }:
outputs = { self, nixpkgs, rust-overlay, crane, flake-schemas, ... }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f rec {
Expand All @@ -33,6 +31,10 @@
});
in
{
schemas = {
inherit (flake-schemas) devShells packages;
};

packages = forAllSystems ({ cranePkgs, ... }: rec {
inherit (cranePkgs) flake-checker;
default = flake-checker;
Expand Down

0 comments on commit 6e16904

Please sign in to comment.