From 154327e63f3f10017eb814f7b1d5a91762997c20 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 13 Feb 2022 18:28:06 +0800 Subject: [PATCH] add back novatech409b, lda, thorlabs_tcube --- flake.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/flake.nix b/flake.nix index c7ad568..bb1e0fe 100644 --- a/flake.nix +++ b/flake.nix @@ -133,6 +133,44 @@ }; propagatedBuildInputs = [ artiq.inputs.sipyco.packages.x86_64-linux.sipyco artiq.packages.x86_64-linux.asyncserial ]; }; + novatech409b = pkgs.python3Packages.buildPythonPackage { + pname = "novatech409b"; + version = "1.1"; + src = pkgs.fetchFromGitHub { + owner = "m-labs"; + repo = "novatech409b"; + rev = "3bd559753972f07d881df66b7c6819afc5436053"; + sha256 = "1g9qv6fn5h7d393mb1v7w8sg6fimqg34blqdj22qnayb4agw1wyg"; + }; + propagatedBuildInputs = [ artiq.inputs.sipyco.packages.x86_64-linux.sipyco artiq.packages.x86_64-linux.asyncserial ]; + }; + lda = pkgs.python3Packages.buildPythonPackage { + name = "lda"; + version = "1.1"; + src = pkgs.fetchFromGitHub { + owner = "m-labs"; + repo = "lda"; + rev = "e6bf828b6dfd7fbf59b61b691712736c98c95970"; + sha256 = "1w4ykzsl3386bz4ggpd6i60b6a3k7rnc6qjw59xm3hk0vs3w2vyn"; + }; + propagatedBuildInputs = [ artiq.inputs.sipyco.packages.x86_64-linux.sipyco ]; + postPatch = '' + substituteInPlace lda/hidapi.py \ + --replace "hidapi_lib_path = None"\ + "hidapi_lib_path = '${hidapi}/lib/libhidapi-libusb.so.0'" + ''; + }; + thorlabs_tcube = pkgs.python3Packages.buildPythonPackage { + pname = "thorlabs_tcube"; + version = "1.1"; + src = pkgs.fetchFromGitHub { + owner = "m-labs"; + repo = "thorlabs_tcube"; + rev = "0cb0c15fc7e660a150e193245f5338d48f8b97db"; + sha256 = "1n4zmjcj2kpd97217y602pq6x8s80w39fgyi6qjmal92aicqdg07"; + }; + propagatedBuildInputs = [ artiq.inputs.sipyco.packages.x86_64-linux.sipyco artiq.packages.x86_64-linux.asyncserial ]; + }; newfocus8742 = pkgs.python3Packages.buildPythonPackage { pname = "newfocus8742"; version = "0.2";