Skip to content

Commit

Permalink
switch to fenix
Browse files Browse the repository at this point in the history
  • Loading branch information
t56k committed Mar 13, 2024
1 parent dffcf89 commit 7c84199
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 33 deletions.
93 changes: 72 additions & 21 deletions flake.lock

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

18 changes: 6 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
crane.url = "github:ipetkov/crane";
crane.inputs.nixpkgs.follows = "nixpkgs";

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

flake-utils.url = "github:numtide/flake-utils";
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = { self, nixpkgs, crane, rust-overlay, flake-utils, ... }:
outputs = { self, nixpkgs, crane, fenix, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
craneLib = crane.lib.${system};

pkgs = import nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
packages.${system}.default =
fenix.packages.${system}.default.toolchain;
};

gitu = craneLib.buildPackage {
Expand Down

0 comments on commit 7c84199

Please sign in to comment.