Skip to content

Commit ec55198

Browse files
authored
flake: avoid ifd (#70)
1 parent f0267df commit ec55198

File tree

2 files changed

+2
-36
lines changed

2 files changed

+2
-36
lines changed

flake.lock

Lines changed: 0 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,14 @@
88
inputs.nixpkgs.follows = "nixpkgs";
99
};
1010

11-
gitignore = {
12-
url = "github:hercules-ci/gitignore.nix";
13-
inputs.nixpkgs.follows = "nixpkgs";
14-
};
15-
1611
};
1712

1813
outputs =
1914
{ self
2015
, nixpkgs
2116
, fenix
22-
, gitignore
2317
}:
2418
let
25-
inherit (gitignore.lib) gitignoreSource;
26-
2719
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
2820
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
2921
nixpkgsFor = forAllSystems (system:
@@ -32,12 +24,7 @@
3224
overlays = [ self.overlays.default ];
3325
});
3426

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

4229
in
4330
{
@@ -59,7 +46,7 @@
5946
src = self;
6047
cargoLock.lockFile = ./Cargo.lock;
6148

62-
buildFeatures = "json";
49+
buildFeatures = [ "json" ];
6350

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

0 commit comments

Comments
 (0)