-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix crate name requirements and clean command dispay message ; - update `flake.lock`, now relying on `github:oxalica/rust-overlay` since `github:mozilla/nixpkgs-mozilla` was broken with Rust 1.67.0 ...
- Loading branch information
1 parent
7af148d
commit 2ed1fc5
Showing
10 changed files
with
81 additions
and
103 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,17 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
rust-overlay.url = "github:oxalica/rust-overlay"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
naersk.url = "github:nix-community/naersk/master"; | ||
nixpkgs-mozilla = { | ||
url = "github:mozilla/nixpkgs-mozilla"; | ||
flake = false; | ||
}; | ||
}; | ||
|
||
outputs = { self, flake-utils, naersk, nixpkgs, nixpkgs-mozilla }: | ||
outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
naersk' = pkgs.callPackage naersk { | ||
cargo = toolchain; | ||
rustc = toolchain; | ||
overlays = [ (import rust-overlay) ]; | ||
pkgs = import nixpkgs { inherit system overlays; }; | ||
in with pkgs; { | ||
devShells.default = mkShell { | ||
buildInputs = [ (rust-bin.fromRustupToolchainFile ./rust-toolchain) ]; | ||
}; | ||
pkgs = (import nixpkgs) { | ||
inherit system; | ||
overlays = [ (import nixpkgs-mozilla) ]; | ||
}; | ||
toolchain = (pkgs.rustChannelOf { | ||
rustToolchain = ./rust-toolchain; | ||
sha256 = "sha256-DzNEaW724O8/B8844tt5AVHmSjSQ3cmzlU4BP90oRlY="; | ||
}).rust; | ||
in { | ||
defaultPackage = naersk'.buildPackage ./.; | ||
devShell = with pkgs; | ||
mkShell { | ||
buildInputs = [ libiconv toolchain ]; | ||
RUST_SRC_PATH = rustPlatform.rustLibSrc; | ||
}; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters