diff --git a/flake.nix b/flake.nix index 262a5a5..c07276f 100644 --- a/flake.nix +++ b/flake.nix @@ -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 = { diff --git a/pkgs/adguardian-term/default.nix b/pkgs/adguardian-term/default.nix new file mode 100644 index 0000000..0b2cb85 --- /dev/null +++ b/pkgs/adguardian-term/default.nix @@ -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 ]; + }; +} + + diff --git a/users/rouven/modules/packages.nix b/users/rouven/modules/packages.nix index ee2c6d6..6104a6f 100644 --- a/users/rouven/modules/packages.nix +++ b/users/rouven/modules/packages.nix @@ -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