From 73ba71eae6d90006fc90d17406fcec6cd52a8def Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Fri, 15 Jul 2022 10:22:02 +0800 Subject: [PATCH] hdfview: avoid hostname dependency Signed-off-by: Jiajie Chen --- ...u-false-to-avoid-hostname-dependency.patch | 38 +++++++++++++++++++ pkgs/tools/misc/hdfview/default.nix | 6 ++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 pkgs/tools/misc/hdfview/0001-Hardcode-isUbuntu-false-to-avoid-hostname-dependency.patch diff --git a/pkgs/tools/misc/hdfview/0001-Hardcode-isUbuntu-false-to-avoid-hostname-dependency.patch b/pkgs/tools/misc/hdfview/0001-Hardcode-isUbuntu-false-to-avoid-hostname-dependency.patch new file mode 100644 index 000000000000..fde26e0dca83 --- /dev/null +++ b/pkgs/tools/misc/hdfview/0001-Hardcode-isUbuntu-false-to-avoid-hostname-dependency.patch @@ -0,0 +1,38 @@ +From e5eb394458e19ce8f8a231e8b2005c80c64fd426 Mon Sep 17 00:00:00 2001 +From: Jiajie Chen +Date: Fri, 15 Jul 2022 10:13:23 +0800 +Subject: [PATCH] Hardcode isUbuntu=false to avoid hostname dependency. + +The original build.xml detects whether the system is ubuntu based on its +hostname, which is useless in nixpkgs and brings additional dependency. + +As suggested by @risicle in #180613, we can simply hardcode isUbuntu to +false. + +Signed-off-by: Jiajie Chen +--- + build.xml | 8 +++----- + 1 file changed, 3 insertions(+), 5 deletions(-) + +diff --git a/build.xml b/build.xml +index c4f0974..15a6078 100644 +--- a/build.xml ++++ b/build.xml +@@ -143,11 +143,9 @@ + + + +- +- +- +- +- ++ ++ + +