commit d0407e8bccb2659e4ba74685d7618d3347155614 Author: Bartłomiej Pluta Date: Wed Jan 7 14:58:49 2026 +0100 Init repo diff --git a/concraft-pl.nix b/concraft-pl.nix new file mode 100644 index 0000000..b22db0a --- /dev/null +++ b/concraft-pl.nix @@ -0,0 +1,33 @@ +{ + lib, + stdenv, + fetchzip, + autoPatchelfHook, + libgcc, + zlib, + gmp, + ... +}: +stdenv.mkDerivation { + pname = "concraft-pl"; + version = "2020-05-13"; + + src = fetchzip { + url = "https://zil.ipipan.waw.pl/Concraft?action=AttachFile&do=get&target=Concraft-Linux.zip"; + hash = "sha256-7CxCwaSgi8wIKxoaaMMT8DRApJj6eGsvgr0s6/YXn6g="; + }; + + buildInputs = [ + autoPatchelfHook + + gmp + zlib + libgcc + stdenv.cc.cc.lib + ]; + + installPhase = '' + mkdir -p "$out/bin"; + install -Dm 755 concraft-pl $out/bin; + ''; +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..7883566 --- /dev/null +++ b/flake.nix @@ -0,0 +1,27 @@ +{ + description = "A base set of NLP tools for Polish Language"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem (system: let + pkgs = nixpkgs.legacyPackages.${system}; + in { + packages = rec { + morfeusz = pkgs.callPackage ./morfeusz.nix {}; + concraft-pl = pkgs.callPackage ./concraft-pl.nix {}; + }; + }) + // { + nixosModules = rec { + default = import ./module.nix self; + }; + }; +} diff --git a/module.nix b/module.nix new file mode 100644 index 0000000..ea8f50d --- /dev/null +++ b/module.nix @@ -0,0 +1,2 @@ +{...}: { +} diff --git a/morfeusz.nix b/morfeusz.nix new file mode 100644 index 0000000..641a975 --- /dev/null +++ b/morfeusz.nix @@ -0,0 +1,32 @@ +{ + pkgs, + lib, + stdenv, + autoPatchelfHook, + libgcc, + ... +}: +stdenv.mkDerivation { + pname = "morfeusz"; + version = "2025.11.16"; + + src = builtins.fetchTarball { + url = "http://download.sgjp.pl/morfeusz/20251116/Linux/manylinux_2_28/64/morfeusz2-1.99.12.sgjp.20251116-Linux-amd64.tar.gz"; + sha256 = "sha256:09dya2pjbvh9i8d7fgcl4hgmmf9x3vwgiq7fm3n5b4c8ic495wgh"; + }; + + buildInputs = [ + autoPatchelfHook + + libgcc + stdenv.cc.cc.lib + ]; + + installPhase = '' + mkdir -p $out/{bin,lib,include}; + + install -Dm 755 $src/bin/* $out/bin/; + install -Dm 755 $src/lib/* $out/lib/; + install -Dm 755 $src/include/* $out/include/; + ''; +}