feat: deadlock-api-ingest package and output
This is an utility to have my matches in Deadlock (video-game) be fed into the community maintained API faster and perhaps more accurately.
This commit is contained in:
parent
88dd0a7e2e
commit
dd52f6ee91
3 changed files with 42 additions and 1 deletions
|
@ -73,6 +73,7 @@
|
||||||
formatter."${system}" = pkgs.nixfmt-rfc-style;
|
formatter."${system}" = pkgs.nixfmt-rfc-style;
|
||||||
|
|
||||||
packages."${system}" = {
|
packages."${system}" = {
|
||||||
|
deadlock-api-ingest = pkgs.callPackage ./packages/deadlock-api-ingest.nix { };
|
||||||
lmms = pkgs.callPackage ./packages/lmms/package.nix { };
|
lmms = pkgs.callPackage ./packages/lmms/package.nix { };
|
||||||
miraclecast = pkgs.callPackage ./packages/miraclecast.nix { };
|
miraclecast = pkgs.callPackage ./packages/miraclecast.nix { };
|
||||||
wb32dfu-udev-rules = pkgs.callPackage ./packages/wb32dfu-udev-rules { };
|
wb32dfu-udev-rules = pkgs.callPackage ./packages/wb32dfu-udev-rules { };
|
||||||
|
|
39
packages/deadlock-api-ingest.nix
Normal file
39
packages/deadlock-api-ingest.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
rustPlatform,
|
||||||
|
fetchFromGitHub,
|
||||||
|
pkg-config,
|
||||||
|
libpcap,
|
||||||
|
openssl,
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
pname = "deadlock-api-ingest";
|
||||||
|
version = "0-unstable-2025-09-23";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "deadlock-api";
|
||||||
|
repo = "deadlock-api-ingest";
|
||||||
|
rev = "5536816e2b9afa227c6ba9771f54b61a5cc63ab8";
|
||||||
|
hash = "sha256-h9k1VlpZ7uvSoJX30LjnB+kLYJ6juLEr5lv/jPqGQn8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-LL4sd1VmsU890GdpeDB1yEdpJUBJZ4kpY85kYPneB3U=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libpcap
|
||||||
|
openssl
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A network packet capture tool that monitors HTTP traffic for Deadlock game replay files and ingests
|
||||||
|
metadata to the Deadlock API.";
|
||||||
|
homepage = "https://github.com/deadlock-api/deadlock-api-ingest";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = [ lib.maintainers.wizardlink ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ self, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
||||||
heroic
|
heroic
|
||||||
protontricks
|
protontricks
|
||||||
r2modman
|
r2modman
|
||||||
|
self.packages.${system}.deadlock-api-ingest
|
||||||
wineWowPackages.stableFull
|
wineWowPackages.stableFull
|
||||||
winetricks
|
winetricks
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue