about summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorZhaofeng Li <hello@zhaofeng.li>2022-05-06 00:22:46 -0700
committerZhaofeng Li <hello@zhaofeng.li>2022-05-27 15:13:13 -0700
commitd2aa5ff6e7c17887fabb08aebca40f45d60b7cea (patch)
tree6f59e7d3d379dfdc53dfd472e2ddd26698125c2e /pkgs/misc
parent4098f21de1c9b3f81cd2bbc963541c00052544b3 (diff)
infnoise: unstable-2019-08-12 -> 0.3.2
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/drivers/infnoise/default.nix19
1 files changed, 12 insertions, 7 deletions
diff --git a/pkgs/misc/drivers/infnoise/default.nix b/pkgs/misc/drivers/infnoise/default.nix
index b64cb56c40760..d8e4dd6597571 100644
--- a/pkgs/misc/drivers/infnoise/default.nix
+++ b/pkgs/misc/drivers/infnoise/default.nix
@@ -1,14 +1,15 @@
-{ lib, stdenv, fetchFromGitHub, libftdi }:
+{ lib, stdenv, fetchFromGitHub, libftdi
+, infnoise, testers }:
 
 stdenv.mkDerivation rec {
   pname = "infnoise";
-  version = "unstable-2019-08-12";
+  version = "0.3.2";
 
   src = fetchFromGitHub {
-    owner = "13-37-org";
+    owner = "leetronics";
     repo = "infnoise";
-    rev = "132683d4b5ce0902468b666cba63baea36e97f0c";
-    sha256 = "1dzfzinyvhyy9zj32kqkl19fyhih6sy8r5sa3qahbbr4c30k7flp";
+    rev = "e80ddd78085abf3d06df2e0d8c08fd33dade78eb";
+    sha256 = "sha256-9MKG1InkV+yrQPBTgi2gZJ3y9Fokb6WbxuAnM7n7FyA=";
   };
 
   # Patch makefile so we can set defines from the command line instead of it depending on .git
@@ -26,8 +27,12 @@ stdenv.mkDerivation rec {
     substituteInPlace init_scripts/infnoise.service --replace "/usr/local" "$out"
   '';
 
+  passthru = {
+    tests.version = testers.testVersion { package = infnoise; };
+  };
+
   meta = with lib; {
-    homepage = "https://github.com/13-37-org/infnoise";
+    homepage = "https://github.com/leetronics/infnoise";
     description = "Driver for the Infinite Noise TRNG";
     longDescription = ''
       The Infinite Noise TRNG is a USB key hardware true random number generator.
@@ -37,7 +42,7 @@ stdenv.mkDerivation rec {
       services.udev.packages = [ pkgs.infnoise ];
     '';
     license = licenses.cc0;
-    maintainers = with maintainers; [ StijnDW ];
+    maintainers = with maintainers; [ StijnDW zhaofengli ];
     platforms = platforms.linux;
   };
 }