• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A Nix-friendly SQLite-enhanced fork of Flitter, a speedrunning split timer for Unix-style terminals


Commit MetaInfo

修订版70e6f405ccfce3fa8ea7c04ab6026d1741fc25d4 (tree)
时间2023-05-17 03:48:00
作者Corbin <cds@corb...>
CommiterCorbin

Log Message

Fulfill the flitter-new command.

更改概述

差异

--- a/flake.nix
+++ b/flake.nix
@@ -22,6 +22,16 @@
2222 patchPhase = ''
2323 sed -i -e 's,python3,${py}/bin/python3,g' src/hotkeys.ml
2424 '';
25+
26+ postInstall = ''
27+ mkdir -p $out/share/
28+ cp init.sql $out/share/
29+ cat >$out/bin/flitter-new <<EOF
30+ #!/bin/sh
31+ exec ${pkgs.sqlite}/bin/sqlite3 "\$1" ".read $out/share/init.sql"
32+ EOF
33+ chmod +x $out/bin/flitter-new
34+ '';
2535
2636 buildInputs = [ pkgs.git ];
2737 propagatedBuildInputs = with pkgs.ocamlPackages; [