Unverified Commit 2a13cee8 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

cynthion: make udev rules accessible (#436000)

parents 9d68cce9 1df0ced6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@

  # tests
  pytestCheckHook,
  udevCheckHook,
}:
buildPythonPackage rec {
  pname = "cynthion";
@@ -44,6 +45,8 @@ buildPythonPackage rec {
      --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
  '';

  nativeBuildInputs = [ udevCheckHook ];

  build-system = [
    setuptools
  ];
@@ -72,6 +75,13 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "cynthion" ];

  # Make udev rules available for NixOS option services.udev.packages
  postInstall = ''
    install -Dm444 \
      -t $out/lib/udev/rules.d \
      build/lib/cynthion/assets/54-cynthion.rules
  '';

  meta = {
    description = "Python package and utilities for the Great Scott Gadgets Cynthion USB Test Instrument";
    homepage = "https://github.com/greatscottgadgets/cynthion";