From 256c482ca93ed6015d43f253b33f330f65c14aa1 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 19 Sep 2024 22:14:34 -0400 Subject: [PATCH] support.StreamDevice: reorder attributes --- pkgs/epnix/support/StreamDevice/default.nix | 30 ++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pkgs/epnix/support/StreamDevice/default.nix b/pkgs/epnix/support/StreamDevice/default.nix index 806d425c..e0e6c5c1 100644 --- a/pkgs/epnix/support/StreamDevice/default.nix +++ b/pkgs/epnix/support/StreamDevice/default.nix @@ -15,6 +15,21 @@ in inherit version; varname = "STREAM"; + src = fetchFromGitHub { + owner = "paulscherrerinstitute"; + repo = "StreamDevice"; + rev = version; + # Tarball from GitHub is not completely reproducible due to usage of + # export-subst in .gitattributes for .VERSION + # See: https://epics.anl.gov/tech-talk/2022/msg01842.php + forceFetchGit = true; + hash = "sha256-/OgjdHvFr6sBRhOLa9F3KJeaxMiKuUuBduHUc4YLYBI="; + }; + + nativeBuildInputs = [pcre]; + buildInputs = [pcre] ++ (with epnix.support; [sscan]); + propagatedBuildInputs = with epnix.support; [asyn calc]; + inherit local_config_site; local_release = local_release @@ -27,21 +42,6 @@ in STREAM = null; }; - nativeBuildInputs = [pcre]; - buildInputs = [pcre] ++ (with epnix.support; [sscan]); - propagatedBuildInputs = with epnix.support; [asyn calc]; - - src = fetchFromGitHub { - owner = "paulscherrerinstitute"; - repo = "StreamDevice"; - rev = version; - # Tarball from GitHub is not completely reproducible due to usage of - # export-subst in .gitattributes for .VERSION - # See: https://epics.anl.gov/tech-talk/2022/msg01842.php - forceFetchGit = true; - hash = "sha256-/OgjdHvFr6sBRhOLa9F3KJeaxMiKuUuBduHUc4YLYBI="; - }; - meta = { description = "A generic EPICS device support for devices with a \"byte stream\" based communication interface"; homepage = "https://paulscherrerinstitute.github.io/StreamDevice/";