Loading pkgs/by-name/gp/gpsd/package.nix +1 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ stdenv.mkDerivation rec { patches = [ ./sconstruct-env-fixes.patch ./sconstrict-rundir-fixes.patch # fix build with Python 3.12 (fetchpatch { Loading pkgs/by-name/gp/gpsd/sconstrict-rundir-fixes.patch 0 → 100644 +21 −0 Original line number Diff line number Diff line diff -Naur gpsd-3.25.orig/SConscript gpsd-3.25/SConscript --- gpsd-3.25.orig/SConscript 2025-03-29 13:33:34 +++ gpsd-3.25/SConscript 2025-03-29 13:34:24 @@ -15,6 +15,7 @@ import os import pickle import re +import platform # replacement for functions from the commands module, which is deprecated. import subprocess import sys @@ -399,7 +400,7 @@ def_group = "dialout" # darwin and BSDs do not have /run, maybe others. -if os.path.exists("/run"): +if "BSD" in os.uname().sysname or platform.system() == "Darwin": rundir = "/run" else: rundir = "/var/run" No newline at end of file Loading
pkgs/by-name/gp/gpsd/package.nix +1 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ stdenv.mkDerivation rec { patches = [ ./sconstruct-env-fixes.patch ./sconstrict-rundir-fixes.patch # fix build with Python 3.12 (fetchpatch { Loading
pkgs/by-name/gp/gpsd/sconstrict-rundir-fixes.patch 0 → 100644 +21 −0 Original line number Diff line number Diff line diff -Naur gpsd-3.25.orig/SConscript gpsd-3.25/SConscript --- gpsd-3.25.orig/SConscript 2025-03-29 13:33:34 +++ gpsd-3.25/SConscript 2025-03-29 13:34:24 @@ -15,6 +15,7 @@ import os import pickle import re +import platform # replacement for functions from the commands module, which is deprecated. import subprocess import sys @@ -399,7 +400,7 @@ def_group = "dialout" # darwin and BSDs do not have /run, maybe others. -if os.path.exists("/run"): +if "BSD" in os.uname().sysname or platform.system() == "Darwin": rundir = "/run" else: rundir = "/var/run" No newline at end of file