aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgs/default.nix1
-rw-r--r--pkgs/mox-otp/default.nix19
2 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index e85fffe..50d6f13 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -14,6 +14,7 @@ let
# Crypto
libatsha204 = callPackage ./libatsha204 { };
+ mox-otp = python3Packages.callPackage ./mox-otp { };
# Overrides to get armv7 to work
bison = armv7lDisableCheck nixpkgs.bison;
diff --git a/pkgs/mox-otp/default.nix b/pkgs/mox-otp/default.nix
new file mode 100644
index 0000000..172d588
--- /dev/null
+++ b/pkgs/mox-otp/default.nix
@@ -0,0 +1,19 @@
+{ buildPythonApplication, lib, fetchgit
+, python3
+}:
+
+buildPythonApplication rec {
+ pname = "mox-otp";
+ version = "0.3";
+ meta = with lib; {
+ homepage = "https://gitlab.nic.cz/turris/mox-otp";
+ description = "Command line tool to query MOX CPU read-only OTP device";
+ license = licenses.gpl3;
+ };
+
+ src = fetchgit {
+ url = "https://gitlab.nic.cz/turris/mox-otp.git";
+ rev = "v" + version;
+ sha256 = "12k9mgv1kmv9cawgx0ccq4m4liqizszvvsl457jkkirb7rbzhw5y";
+ };
+}