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 .direnv
result

View file

@ -18,26 +18,13 @@
let let
pkgs = import inputs.nixpkgs { pkgs = import inputs.nixpkgs {
inherit system; inherit system;
overlays = [ overlays = [ inputs.rust-overlay.overlays.default ];
inputs.rust-overlay.overlays.default
];
}; };
rustTarget = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml; lib = import ./lib { inherit inputs; };
craneLib = (inputs.crane.mkLib pkgs).overrideToolchain rustTarget;
lib = import ./lib {
inherit
inputs
craneLib
pkgs
;
};
in in
{ {
packages = lib // { inherit lib;
rust = rustTarget;
};
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -1,39 +1,7 @@
{ {
pkgs, inputs,
craneLib,
pkg-config,
openssl,
}: }:
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"