about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergei Trofimovich2024-02-02 23:31:30 +0000
committerSergei Trofimovich2024-02-03 07:11:32 +0000
commit803a0617a732d46aca4485f45c71c1c735e8d255 (patch)
tree0442267a10e57b787f8871e5977f9a91f6ceeeb9
parent237e77803ea0f34707b154dafcd2f8a47e54798f (diff)
cakelisp: 0.1.0 -> 0.3.0-unstable-2023-12-18
The main change is the fix against `gcc-13` build failure:
https://hydra.nixos.org/build/247544946

    src/Utilities.hpp:84:46: error: 'uint32_t' has not been declared
       84 | void crc32(const void* data, size_t n_bytes, uint32_t* crc);
          |                                              ^~~~~~~~

Pulling unstable as latets release still does not build against `gcc-13`.

Co-authored-by: kirillrdy <kirillrdy@gmail.com>
-rw-r--r--pkgs/development/compilers/cakelisp/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/development/compilers/cakelisp/default.nix b/pkgs/development/compilers/cakelisp/default.nix
index 52e486c4ee60..422611cf2b86 100644
--- a/pkgs/development/compilers/cakelisp/default.nix
+++ b/pkgs/development/compilers/cakelisp/default.nix
@@ -1,13 +1,14 @@
-{ lib, stdenv, fetchgit, gcc }:
+{ lib, stdenv, fetchgit, fetchpatch, gcc, unstableGitUpdater }:
 
 stdenv.mkDerivation rec {
   pname = "cakelisp";
-  version = "0.1.0";
+  # using unstable as it's the only version that builds against gcc-13
+  version = "0.3.0-unstable-2023-12-18";
 
   src = fetchgit {
     url = "https://macoy.me/code/macoy/cakelisp";
-    rev = "v${version}";
-    sha256 = "sha256-r7Yg8+2U8qQTYRP3KFET7oBRCZHIZS6Y8TsfL1NR24g=";
+    rev = "866fa2806d3206cc9dd398f0e86640db5be42bd6";
+    hash = "sha256-vwMZUNy+updwk69ahA/D9LhO68eV6wH0Prq+o/i1Q/A=";
   };
 
   buildInputs = [ gcc ];
@@ -35,6 +36,10 @@ stdenv.mkDerivation rec {
     runHook postInstall
   '';
 
+  passthru.updateScript = unstableGitUpdater {
+    url = "https://macoy.me/code/macoy/cakelisp";
+  };
+
   meta = with lib; {
     description = "A performance-oriented Lisp-like language";
     homepage = "https://macoy.me/code/macoy/cakelisp";