default.nix (675B)
1 { 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 testers, 6 }: 7 8 buildGoModule (finalAttrs: { 9 pname = "odict"; 10 version = "1.5.0"; 11 12 src = fetchFromGitHub { 13 owner = "TheOpenDictionary"; 14 repo = "odict"; 15 tag = finalAttrs.version; 16 hash = "sha256-2520kNT3aTylE0ZVGuX92z1NehdCKKvGKd8OgdJ1q3M="; 17 }; 18 19 vendorHash = "sha256-8vDlrbdmGfpCLZIU3rxuk004T9om/CGTc8vJElvlP3s="; 20 21 passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; }; 22 23 meta = { 24 description = "A blazingly-fast portable dictionary file format"; 25 homepage = "https://odict.org/"; 26 license = lib.licenses.gpl3; 27 maintainers = [ lib.maintainers.sikmir ]; 28 }; 29 })