nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 pythonPackages,
6}:
7
8stdenv.mkDerivation rec {
9 version = "0.7.10";
10 pname = "mwic";
11
12 src = fetchurl {
13 url = "https://github.com/jwilk/mwic/releases/download/${version}/${pname}-${version}.tar.gz";
14 sha256 = "sha256-dmIHPehkxpSb78ymVpcPCu4L41coskrHQOg067dprOo=";
15 };
16
17 makeFlags = [ "PREFIX=\${out}" ];
18
19 nativeBuildInputs = [
20 pythonPackages.wrapPython
21 ];
22
23 propagatedBuildInputs = with pythonPackages; [
24 pyenchant
25 regex
26 ];
27
28 postFixup = ''
29 wrapPythonPrograms
30 '';
31
32 meta = with lib; {
33 homepage = "http://jwilk.net/software/mwic";
34 description = "Spell-checker that groups possible misspellings and shows them in their contexts";
35 mainProgram = "mwic";
36 license = licenses.mit;
37 maintainers = with maintainers; [ matthiasbeyer ];
38 };
39}