nixos-config/packages/plover/didoesdigital-dictionary.nix

16 lines
456 B
Nix
Raw Normal View History

{
fetchFromGitHub,
lib,
}: let
source = builtins.fromJSON (builtins.readFile ./didoesdigital-dictionary.json);
in
(fetchFromGitHub {
owner = "didoesdigital";
repo = "steno-dictionaries";
inherit (source) rev sha256;
})
.overrideAttrs (_: {
meta.license = lib.licenses.gpl2;
passthru.updateScript = [../scripts/update-git.sh "https://github.com/didoesdigital/steno-dictionaries" "plover/didoesdigital-dictionary.json"];
})