This commit does feature a _few_ changes to my general NixOS config (namely the ideology switch from importing things everywhere to having my own custom "`mpkgs`"). However most of this effort was all thanks to TETR.IO. The former maintainer of `pkgs.tetrio-desktop` and `pkgs.tetrio-plus` seems to not have been playing recently enough to update the packages to v10. Making them unusuable. `mpkgs.tetrio.desktop` is a patched `pkgs.tetrio-desktop` that updates to v10. Alongside this, and a quick discovery that you could make custom home-manager modules, I took it upon myself to make TETR.IO configurations (including those of TETR.IO PLUS) fully generated from Nix. This effort took way too long, and feels slightly hacky (the way injecting configurations works is by generating a LevelDB (Chromium IndexedDB) for the electron instance's Local Storage) and it involves some custom stuff. (LevelDB deriviation, plus home-manager module for copying files rather than linking them `home.initialFile`.) I'm proud of the result, and Tetris is now fully deterministic, reproducible, and Nix-y.
22 lines
432 B
Nix
22 lines
432 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
}:
|
|
|
|
pkgs.buildGoModule {
|
|
name = "leveldb-cli";
|
|
version = "1.0.0";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "theblueplum";
|
|
repo = "leveldb-cli";
|
|
rev = "main";
|
|
hash = "sha256-Q4BVmmqc6MPrOLy/lSV1FyhAoKBq0U2UcMHYEMOhtpo=";
|
|
};
|
|
|
|
vendorHash = "sha256-b25hlPQft9iKyIw6E9jtORBgoLPnNa4+Z5QoeFoayfc=";
|
|
|
|
meta = {
|
|
mainProgram = "leveldb";
|
|
};
|
|
}
|