sniffnet: 1.0.1 -> 1.1.0

Changelog: https://github.com/gyulyvgc/sniffnet/blob/main/CHANGELOG.md
This commit is contained in:
figsoda 2023-02-07 12:26:30 -05:00
parent a2faa3cc5e
commit 825fb77506

View file

@ -1,9 +1,11 @@
{ lib
, rustPlatform
, fetchCrate
, fetchFromGitHub
, pkg-config
, libpcap
, stdenv
, alsa-lib
, expat
, fontconfig
, libGL
, xorg
@ -12,20 +14,24 @@
rustPlatform.buildRustPackage rec {
pname = "sniffnet";
version = "1.0.1";
version = "1.1.0";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-8K774j04BOEuJjnFYjaSctPwBrKYYKqjFS2+PyxJ2FM=";
src = fetchFromGitHub {
owner = "gyulyvgc";
repo = "sniffnet";
rev = "v${version}";
hash = "sha256-zqk0N1S0vylleyyXaSflIZyWncZV0+wbSy1oAbyLx/4=";
};
cargoSha256 = "sha256-096i4wDdoJCICd0L2QNY+7cKHQnijK22zj4XaQNuko8=";
cargoHash = "sha256-9CTA7Yh2O5S8DvRjwvkrb4ye0/8f+l0tsTxNBMmxLpQ=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libpcap
] ++ lib.optionals stdenv.isLinux [
alsa-lib
expat
fontconfig
libGL
xorg.libX11
@ -34,6 +40,7 @@ rustPlatform.buildRustPackage rec {
xorg.libXrandr
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
rustPlatform.bindgenHook
];
postFixup = lib.optionalString stdenv.isLinux ''