Compare commits

..

No commits in common. "d2d39773c2a8c0bdb1000dd9c5865ded6e34d691" and "3f71fc976d470e33570054022bbd736f5ce70c4f" have entirely different histories.

5 changed files with 6 additions and 64 deletions

1
.gitignore vendored
View file

@ -1,2 +1 @@
.direnv
result

View file

@ -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 = [

View file

@ -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;
}

View file

@ -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

View file

@ -1,2 +0,0 @@
[toolchain]
channel = "nightly-2025-03-01"