flake.nix: use nightly for cargo fuzz.

This commit is contained in:
Asherah Connor 2024-01-24 12:03:40 +11:00
parent ba5b1e1200
commit 663d7d8202
3 changed files with 30 additions and 31 deletions

View File

@ -47,15 +47,16 @@
"rust-analyzer-src": []
},
"locked": {
"lastModified": 1693203690,
"narHash": "sha256-qrgyFtRaduofcJF1T7TscNWM4HTx4qtFzpilD0K8M0o=",
"lastModified": 1704090261,
"narHash": "sha256-Vti1mv4WhmXHPNcFgUiJyt4OKLvsvLzM2eKS4bEegf0=",
"owner": "nix-community",
"repo": "fenix",
"rev": "8eb35c8c402edda73a7dde82e48bf279542640c7",
"rev": "66fc1883c34c42df188b83272445aedb26bb64b5",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "monthly",
"repo": "fenix",
"type": "github"
}
@ -114,16 +115,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1701053011,
"narHash": "sha256-8QQ7rFbKFqgKgLoaXVJRh7Ik5LtI3pyBBCfOnNOGkF0=",
"lastModified": 1705916986,
"narHash": "sha256-iBpfltu6QvN4xMpen6jGGEb6jOqmmVQKUrXdOJ32u8w=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5b528f99f73c4fad127118a8c1126b5e003b01a9",
"rev": "d7f206b723e42edb09d9d753020a84b3061a79d8",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}

View File

@ -2,7 +2,7 @@
description = "comrak";
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05;
nixpkgs.url = github:NixOS/nixpkgs/nixos-23.11;
crane = {
url = "github:ipetkov/crane";
@ -10,7 +10,7 @@
};
fenix = {
url = "github:nix-community/fenix";
url = "github:nix-community/fenix/monthly";
inputs.nixpkgs.follows = "nixpkgs";
inputs.rust-analyzer-src.follows = "";
};
@ -33,9 +33,7 @@
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
};
pkgs = import nixpkgs {inherit system;};
inherit (pkgs) lib;
@ -45,21 +43,18 @@
commonArgs = {
inherit src;
buildInputs =
[
]
++ lib.optionals pkgs.stdenv.isDarwin [
pkgs.libiconv
];
buildInputs = lib.optionals pkgs.stdenv.isDarwin [
pkgs.libiconv
];
};
craneLibLLvmTools =
craneLib.overrideToolchain
(fenix.packages.${system}.complete.withComponents [
"cargo"
"llvm-tools"
"rustc"
]);
toolchain = fenix.packages.${system}.complete;
craneLibLLvmTools = craneLib.overrideToolchain (toolchain.withComponents [
"cargo"
"llvm-tools"
"rustc"
]);
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
@ -126,9 +121,12 @@
devShells.default = pkgs.mkShell {
inputsFrom = builtins.attrValues self.checks.${system};
nativeBuildInputs = with pkgs; [
cargo
rustc
nativeBuildInputs = [
(toolchain.withComponents [
"cargo"
"rustc"
])
pkgs.cargo-fuzz
];
};
});

6
fuzz/Cargo.lock generated
View File

@ -128,7 +128,7 @@ checksum = "4f0807fb6f644c83f3e4ec014fec9858c1c8b26a7db8eb5f0bde5817df9c1df7"
[[package]]
name = "comrak"
version = "0.19.0"
version = "0.20.0"
dependencies = [
"arbitrary",
"clap",
@ -528,9 +528,9 @@ dependencies = [
[[package]]
name = "proc-macro2"
version = "1.0.54"
version = "1.0.78"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e472a104799c74b514a57226160104aa483546de37e839ec50e3c2e41dd87534"
checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"
dependencies = [
"unicode-ident",
]