Skip to content

Instantly share code, notes, and snippets.

@haruki7049
Created May 2, 2025 11:00
Show Gist options
  • Save haruki7049/529f3f36fba71d177f8a19b03a6ce987 to your computer and use it in GitHub Desktop.
Save haruki7049/529f3f36fba71d177f8a19b03a6ce987 to your computer and use it in GitHub Desktop.
[haruki@tuf-chan:~/program-dir/Simula]$ git log --max-count=1
commit b4d6995a48260cd623cb0257ec07f9349e71ff51 (HEAD -> init-flakes, origin/init-flakes)
Author: haruki7049 <[email protected]>
Date: Tue Apr 22 09:55:34 2025 +0900
doc(README): Update to suggest Nix flakes
[haruki@tuf-chan:~/program-dir/Simula]$ git diff --staged
diff --git a/flake.nix b/flake.nix
index 4ea1767..d3872d8 100644
--- a/flake.nix
+++ b/flake.nix
@@ -426,6 +426,10 @@
mkdir -p $out/opt/simula
cp -r $src/* $src/.??* $out/opt/simula
+ # Install godot-haskell-plugin from the result by currently source code
+ chmod 755 $out/opt/simula/addons/godot-haskell-plugin/bin/x11/libgodot-haskell-plugin.so
+ find ${godot-haskell-plugin} -name libgodot-haskell-plugin.so | xargs -i cp {} $out/opt/simula/addons/godot-haskell-plugin/bin/x11/libgodot-haskell-plugin.so
+
# Install Simula runner
mkdir -p $out/bin
echo '#!/usr/bin/env sh
[haruki@tuf-chan:~/program-dir/Simula]$ nix build && echo $?
warning: Git tree '/home/haruki/program-dir/Simula' is dirty
0
[haruki@tuf-chan:~/program-dir/Simula]$ rm -rf addons/godot-haskell-plugin/src
[haruki@tuf-chan:~/program-dir/Simula]$ nix build && echo $?
warning: Git tree '/home/haruki/program-dir/Simula' is dirty
error: builder for '/nix/store/mjrnj6b42a4ffp2a11kjzr62fzqrddxz-godot-haskell-plugin-0.1.0.0.drv' failed with exit code 1;
last 25 log lines:
> Using haskell-suite found on system at: haskell-suite-dummy-location
> Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
> No hmake found
> Using hpc version 0.68 found on system at:
> /nix/store/0rnmmwnlrfssbz6s4f96jc9mi1w1ggj5-ghc-9.6.5/bin/hpc-ghc-9.6.5
> Using hsc2hs version 0.68.9 found on system at:
> /nix/store/0rnmmwnlrfssbz6s4f96jc9mi1w1ggj5-ghc-9.6.5/bin/hsc2hs-ghc-9.6.5
> Using hscolour version 1.25 found on system at:
> /nix/store/slqyy18hchanwpq22lmaprg4rbrr2s85-hscolour-1.25/bin/HsColour
> No jhc found
> Using ld found on system at:
> /nix/store/kln7kinji3b7sz8r50h4gn9yy6k1js9a-binutils-wrapper-2.41/bin/ld.gold
> No pkg-config found
> Using runghc version 9.6.5 found on system at:
> /nix/store/0rnmmwnlrfssbz6s4f96jc9mi1w1ggj5-ghc-9.6.5/bin/runghc-9.6.5
> Using strip version 2.41 found on system at:
> /nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/strip
> Using tar found on system at:
> /nix/store/rik7p68cq7yzlj5pmfpf4yv6jnrpvlgf-gnutar-1.35/bin/tar
> No uhc found
> Running phase: buildPhase
> Preprocessing library for godot-haskell-plugin-0.1.0.0..
> Error: Setup: can't find source for Plugin in src, telemetry,
> dist/build/autogen, dist/build/global-autogen
>
For full logs, run 'nix log /nix/store/mjrnj6b42a4ffp2a11kjzr62fzqrddxz-godot-haskell-plugin-0.1.0.0.drv'.
error: 1 dependencies of derivation '/nix/store/zv9668j085kpzxj9262sqrvh0inimafh-simula-0.0.0-dev.drv' failed to build
[haruki@tuf-chan:~/program-dir/Simula]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment