Skip to content

Commit

Permalink
flake: avoid ifd (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
figsoda authored Feb 20, 2023
1 parent f0267df commit ec55198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
21 changes: 0 additions & 21 deletions flake.lock

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

17 changes: 2 additions & 15 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,14 @@
inputs.nixpkgs.follows = "nixpkgs";
};

gitignore = {
url = "github:hercules-ci/gitignore.nix";
inputs.nixpkgs.follows = "nixpkgs";
};

};

outputs =
{ self
, nixpkgs
, fenix
, gitignore
}:
let
inherit (gitignore.lib) gitignoreSource;

supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system:
Expand All @@ -32,12 +24,7 @@
overlays = [ self.overlays.default ];
});

chanspec = {
date = "2022-02-06";
channel = "nightly";
sha256 = "oKkTWopCDx4tphzTtRn+zDDtvmIZrL/H44tV2ruSfDw="; # set zeros after modifying channel or date
};
rustChannel = p: (fenix.overlay p p).fenix.toolchainOf chanspec;
rustChannel = p: (fenix.overlay p p).fenix.complete;

in
{
Expand All @@ -59,7 +46,7 @@
src = self;
cargoLock.lockFile = ./Cargo.lock;

buildFeatures = "json";
buildFeatures = [ "json" ];

meta = with lib; {
description = "Lints and suggestions for the Nix programming language";
Expand Down

0 comments on commit ec55198

Please sign in to comment.