about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2024-06-17 21:18:16 +0300
committerDoron Behar <doron.behar@gmail.com>2024-06-17 21:18:16 +0300
commit5d8d521af2d682b4703c49a8e0b327f08b40e15e (patch)
treee60e0bcdf636b7a1a7bc4e9b6f9b2440e73d73ae /pkgs/os-specific
parent3b97a2e9ba4dd6abb8dc624941220a40d12ebe64 (diff)
wiringpi: help nix-update find the src position
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/wiringpi/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/wiringpi/default.nix b/pkgs/os-specific/linux/wiringpi/default.nix
index bc80e2a33543b..b79fae4cbc44a 100644
--- a/pkgs/os-specific/linux/wiringpi/default.nix
+++ b/pkgs/os-specific/linux/wiringpi/default.nix
@@ -7,14 +7,15 @@
 
 let
   version = "2.61-1";
-  mkSubProject = { subprj # The only mandatory argument
-  , buildInputs ? []
-  , src ? fetchFromGitHub {
+  srcAll = fetchFromGitHub {
     owner = "WiringPi";
     repo = "WiringPi";
     rev = version;
     sha256 = "sha256-VxAaPhaPXd9xYt663Ju6SLblqiSLizauhhuFqCqbO5M=";
-  }
+  };
+  mkSubProject = { subprj # The only mandatory argument
+  , buildInputs ? []
+  , src ? srcAll
   }: stdenv.mkDerivation (finalAttrs: {
     pname = "wiringpi-${subprj}";
     inherit version src;
@@ -33,6 +34,9 @@ let
     ];
   });
   passthru = {
+    # Helps nix-update and probably nixpkgs-update find the src of this package
+    # automatically.
+    src = srcAll;
     inherit mkSubProject;
     wiringPi = mkSubProject {
       subprj = "wiringPi";