summary refs log tree commit diff
path: root/pkgs/development/compilers/crystal/default.nix
diff options
context:
space:
mode:
authorEvangelos Paterakis <evan@geopjr.dev>2022-12-21 16:30:37 +0200
committerEvangelos Paterakis <evan@geopjr.dev>2022-12-21 16:30:37 +0200
commita979bd9214a622ef444a20e2023d37c268c43ea4 (patch)
treea1d7db920138a526b486480224e37a41aca01ccb /pkgs/development/compilers/crystal/default.nix
parent44073f6d1667ba1c723a6240b91ebacb3e72ee05 (diff)
downloadnixpkgs-a979bd9214a622ef444a20e2023d37c268c43ea4.tar
nixpkgs-a979bd9214a622ef444a20e2023d37c268c43ea4.tar.gz
nixpkgs-a979bd9214a622ef444a20e2023d37c268c43ea4.tar.bz2
nixpkgs-a979bd9214a622ef444a20e2023d37c268c43ea4.tar.lz
nixpkgs-a979bd9214a622ef444a20e2023d37c268c43ea4.tar.xz
nixpkgs-a979bd9214a622ef444a20e2023d37c268c43ea4.tar.zst
nixpkgs-a979bd9214a622ef444a20e2023d37c268c43ea4.zip
fix(tzdata): prepend to ZONE_SOURCES instead of substituting in place
Diffstat (limited to 'pkgs/development/compilers/crystal/default.nix')
-rw-r--r--pkgs/development/compilers/crystal/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/development/compilers/crystal/default.nix b/pkgs/development/compilers/crystal/default.nix
index ef835ff69f0..e642e8ee7bc 100644
--- a/pkgs/development/compilers/crystal/default.nix
+++ b/pkgs/development/compilers/crystal/default.nix
@@ -4,6 +4,7 @@
 , fetchurl
 , fetchpatch
 , lib
+, substituteAll
   # Dependencies
 , boehmgc
 , coreutils
@@ -100,7 +101,12 @@ let
         inherit sha256;
       };
 
-      patches = [ ]
+      patches = [
+          (substituteAll {
+            src = ./tzdata.patch;
+            inherit tzdata;
+          })
+        ]
         ++ lib.optionals (lib.versionOlder version "1.2.0") [
         # add support for DWARF5 debuginfo, fixes builds on recent compilers
         # the PR is 8 commits from 2019, so just fetch the whole thing
@@ -124,9 +130,6 @@ let
         substituteInPlace Makefile \
           --replace 'docs: ## Generate standard library documentation' 'docs: crystal ## Generate standard library documentation'
 
-        substituteInPlace src/crystal/system/unix/time.cr \
-          --replace /usr/share/zoneinfo ${tzdata}/share/zoneinfo
-
         mkdir -p $TMP/crystal
 
         substituteInPlace spec/std/file_spec.cr \