unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob c5f669a8bf41a8e0cc92555f9dd50e6bdf161139 1037 bytes (raw)
name: gnu/packages/patches/elm-compiler-old-time.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
From 849e80635427f1ff393728d27022cdd672ba82ba Mon Sep 17 00:00:00 2001
From: Matthew James Kraai <kraai@ftbfs.org>
Date: Sat, 7 Aug 2021 21:18:29 -0700
Subject: [PATCH] Support time < 1.9.1

---
 builder/src/File.hs | 2 +-
 elm.cabal           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/builder/src/File.hs b/builder/src/File.hs
index 238da083..aaf94369 100644
--- a/builder/src/File.hs
+++ b/builder/src/File.hs
@@ -46,7 +46,7 @@ newtype Time = Time Fixed.Pico
 getTime :: FilePath -> IO Time
 getTime path =
   fmap
-    (Time . Time.nominalDiffTimeToSeconds . Time.utcTimeToPOSIXSeconds)
+    (Time . realToFrac . Time.utcTimeToPOSIXSeconds)
     (Dir.getModificationTime path)
 
 
diff --git a/elm.cabal b/elm.cabal
index bf1cfcf0..e7afe91e 100644
--- a/elm.cabal
+++ b/elm.cabal
@@ -231,7 +231,7 @@ Executable elm
         snap-core,
         snap-server,
         template-haskell,
-        time >= 1.9.1,
+        time,
         unordered-containers,
         utf8-string,
         vector,
-- 
2.32.0


debug log:

solving c5f669a8bf ...
found c5f669a8bf in https://yhetil.org/guix-patches/20210808043423.28190-1-kraai@ftbfs.org/

applying [1/1] https://yhetil.org/guix-patches/20210808043423.28190-1-kraai@ftbfs.org/
diff --git a/gnu/packages/patches/elm-compiler-old-time.patch b/gnu/packages/patches/elm-compiler-old-time.patch
new file mode 100644
index 0000000000..c5f669a8bf

1:28: trailing whitespace.
 
1:29: trailing whitespace.
 
1:43: trailing whitespace.
-- 
Checking patch gnu/packages/patches/elm-compiler-old-time.patch...
1:45: new blank line at EOF.
+
Applied patch gnu/packages/patches/elm-compiler-old-time.patch cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 c5f669a8bf41a8e0cc92555f9dd50e6bdf161139	gnu/packages/patches/elm-compiler-old-time.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).