add adguardian package

This commit is contained in:
Rouven Seifert 2023-05-31 14:32:33 +02:00
parent 3bc1e3e76e
commit 0359c7cc0c
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 25 additions and 1 deletions

View file

@ -62,6 +62,7 @@
}@attrs: {
packages.x86_64-linux.iso = self.nixosConfigurations.iso.config.system.build.isoImage;
packages.x86_64-linux.jmri = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/jmri { };
packages.x86_64-linux.adguardian-term = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/adguardian-term { };
hydraJobs = self.packages;
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
nixosConfigurations = {

View file

@ -0,0 +1,22 @@
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "adguardian-term";
version = "1.2.0";
src = fetchFromGitHub {
owner = "lissy93";
repo = pname;
rev = version;
hash = "sha256-UZIwVvBBBj82IxGuZPKaNc/UZI1DAh5/5ni3fjiRF4o=";
};
cargoSha256 = "sha256-5JBX7zCKlaMj2+/YudQLapb3WzDEH7l3pqgN8/M2IEs=";
meta = with lib; {
description = "Terminal-based, real-time traffic monitoring and statistics for your AdGuard Home instance Resources";
homepage = "https://github.com/lissy93/adguardian-term";
license = with licenses; [ mit ];
maintainers = with maintainers; [ therealr5 ];
};
}

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ self, pkgs, ... }:
{
home.packages = with pkgs; [
@ -58,6 +58,7 @@
rustc
rustfmt
gcc
self.packages.x86_64-linux.adguardian-term
# libs
libyubikey