Compare commits
No commits in common. "d2d39773c2a8c0bdb1000dd9c5865ded6e34d691" and "3f71fc976d470e33570054022bbd736f5ce70c4f" have entirely different histories.
d2d39773c2
...
3f71fc976d
5 changed files with 6 additions and 64 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1 @@
|
|||
.direnv
|
||||
result
|
||||
|
|
|
|||
19
flake.nix
19
flake.nix
|
|
@ -18,26 +18,13 @@
|
|||
let
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
inputs.rust-overlay.overlays.default
|
||||
];
|
||||
overlays = [ inputs.rust-overlay.overlays.default ];
|
||||
};
|
||||
|
||||
rustTarget = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||
craneLib = (inputs.crane.mkLib pkgs).overrideToolchain rustTarget;
|
||||
|
||||
lib = import ./lib {
|
||||
inherit
|
||||
inputs
|
||||
craneLib
|
||||
pkgs
|
||||
;
|
||||
};
|
||||
lib = import ./lib { inherit inputs; };
|
||||
in
|
||||
{
|
||||
packages = lib // {
|
||||
rust = rustTarget;
|
||||
};
|
||||
inherit lib;
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = [
|
||||
|
|
|
|||
|
|
@ -1,39 +1,7 @@
|
|||
{
|
||||
pkgs,
|
||||
craneLib,
|
||||
|
||||
pkg-config,
|
||||
openssl,
|
||||
inputs,
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "cargo-dylint";
|
||||
version = "4.0.0";
|
||||
{
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "trailofbits";
|
||||
repo = "dylint";
|
||||
tag = "v${version}";
|
||||
sha256 = "sha256-Z8uuewp7Buoadayc0oTafmfvwNT36KukWKiHxL/mQfI=";
|
||||
};
|
||||
in
|
||||
|
||||
craneLib.buildPackage {
|
||||
inherit
|
||||
pname
|
||||
version
|
||||
src
|
||||
;
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
RUSTUP_TOOLCHAIN = "nightly-2025-02-28";
|
||||
|
||||
doCheck = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,5 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
craneLib,
|
||||
...
|
||||
|
||||
}:
|
||||
|
||||
let
|
||||
callPackage = pkgs.lib.callPackageWith (pkgs // packages // { inherit inputs craneLib; });
|
||||
packages = {
|
||||
cargo-dylint = callPackage ./cargo-dylint.nix { };
|
||||
};
|
||||
|
||||
in
|
||||
packages
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
[toolchain]
|
||||
channel = "nightly-2025-03-01"
|
||||
Loading…
Add table
Add a link
Reference in a new issue