mirror of
https://github.com/oppiliappan/statix.git
synced 2024-10-05 13:27:17 +03:00
flake: avoid ifd (#70)
This commit is contained in:
parent
f0267dfb72
commit
ec55198a39
21
flake.lock
21
flake.lock
@ -21,26 +21,6 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"gitignore": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1635165013,
|
||||
"narHash": "sha256-o/BdVjNwcB6jOmzZjOH703BesSkkS5O7ej3xhyO8hAY=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"rev": "5b9e0ff9d3b551234b4f3eb3983744fa354b17f1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1645013224,
|
||||
@ -60,7 +40,6 @@
|
||||
"root": {
|
||||
"inputs": {
|
||||
"fenix": "fenix",
|
||||
"gitignore": "gitignore",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
|
17
flake.nix
17
flake.nix
@ -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:
|
||||
@ -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
|
||||
{
|
||||
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user