diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index e1845dbbe0..3182538248 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -32,6 +32,7 @@ hg-evolve ]); netbox = pkgs.python3Packages.callPackage ./netbox {}; + ubi_reader = pkgs.python3Packages.callPackage ./ubi_reader {}; prometheus-bird-exporter-lfty = pkgs.callPackage ./prometheus-bird-exporter-lfty.nix {}; eapol-test = pkgs.callPackage ./eapol-test.nix {}; datez = pkgs.callPackage ./datez { diff --git a/nix/pkgs/ubi_reader/default.nix b/nix/pkgs/ubi_reader/default.nix new file mode 100644 index 0000000000..20b8b6ac5f --- /dev/null +++ b/nix/pkgs/ubi_reader/default.nix @@ -0,0 +1,23 @@ +{ buildPythonApplication +, fetchFromGitHub +, lib +, python-lzo +}: + +buildPythonApplication rec { + pname = "ubi_reader"; + version = "0.7.2-master"; + + src = fetchFromGitHub { + owner = "jrspruitt"; + repo = pname; + rev = "v${version}"; + sha256 = "1crggg4f8jm9bs6x354nacs8c714mxq60aajya0izxk5b7w411dn"; + }; + + propagatedBuildInputs = [ + python-lzo + ]; + + doCheck = false; +}