A Nix-friendly SQLite-enhanced fork of Flitter, a speedrunning split timer for Unix-style terminals
修订版 | 70e6f405ccfce3fa8ea7c04ab6026d1741fc25d4 (tree) |
---|---|
时间 | 2023-05-17 03:48:00 |
作者 | Corbin <cds@corb...> |
Commiter | Corbin |
Fulfill the flitter-new command.
@@ -22,6 +22,16 @@ | ||
22 | 22 | patchPhase = '' |
23 | 23 | sed -i -e 's,python3,${py}/bin/python3,g' src/hotkeys.ml |
24 | 24 | ''; |
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 | + ''; | |
25 | 35 | |
26 | 36 | buildInputs = [ pkgs.git ]; |
27 | 37 | propagatedBuildInputs = with pkgs.ocamlPackages; [ |