mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 22:07:00 +05:30
feat(flakes): adopt nix-systems for flake systems
This commit is contained in:
parent
00cd331a4d
commit
d69a1ff10c
2 changed files with 29 additions and 37 deletions
21
flake.lock
generated
21
flake.lock
generated
|
@ -82,7 +82,9 @@
|
|||
},
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
"systems": [
|
||||
"systems"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1687171271,
|
||||
|
@ -121,7 +123,8 @@
|
|||
"fenix": "fenix",
|
||||
"flake-compat": "flake-compat",
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"systems": "systems"
|
||||
}
|
||||
},
|
||||
"rust-analyzer-src": {
|
||||
|
@ -168,16 +171,16 @@
|
|||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"lastModified": 1687694171,
|
||||
"narHash": "sha256-m4E0xN69qKj/oKOj8OtiZcSFpFlO8paI6E3Wo5oXDJc=",
|
||||
"owner": "msfjarvis",
|
||||
"repo": "flake-systems",
|
||||
"rev": "7876462a5f60841e8b2712ad20dc18470f448e8d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"owner": "msfjarvis",
|
||||
"repo": "flake-systems",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
|
|
45
flake.nix
45
flake.nix
|
@ -1,45 +1,34 @@
|
|||
{
|
||||
description = "gitice";
|
||||
|
||||
inputs = {
|
||||
nixpkgs = {url = "github:NixOS/nixpkgs/nixpkgs-unstable";};
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
|
||||
fenix = {
|
||||
url = "github:nix-community/fenix";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
inputs.systems.url = "github:msfjarvis/flake-systems";
|
||||
|
||||
flake-utils = {url = "github:numtide/flake-utils";};
|
||||
inputs.advisory-db.url = "github:rustsec/advisory-db";
|
||||
inputs.advisory-db.flake = false;
|
||||
|
||||
flake-compat = {
|
||||
url = "github:nix-community/flake-compat";
|
||||
flake = false;
|
||||
};
|
||||
inputs.crane.url = "github:ipetkov/crane";
|
||||
inputs.crane.inputs.flake-compat.follows = "flake-compat";
|
||||
inputs.crane.inputs.flake-utils.follows = "flake-utils";
|
||||
inputs.crane.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
crane = {
|
||||
url = "github:ipetkov/crane";
|
||||
inputs = {
|
||||
flake-compat.follows = "flake-compat";
|
||||
flake-utils.follows = "flake-utils";
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
inputs.fenix.url = "github:nix-community/fenix";
|
||||
inputs.fenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
advisory-db = {
|
||||
url = "github:rustsec/advisory-db";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
inputs.flake-utils.inputs.systems.follows = "systems";
|
||||
|
||||
inputs.flake-compat.url = "github:nix-community/flake-compat";
|
||||
inputs.flake-compat.flake = false;
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
fenix,
|
||||
advisory-db,
|
||||
crane,
|
||||
fenix,
|
||||
flake-utils,
|
||||
advisory-db,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue