Init repo
This commit is contained in:
33
concraft-pl.nix
Normal file
33
concraft-pl.nix
Normal file
@@ -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;
|
||||||
|
'';
|
||||||
|
}
|
||||||
27
flake.nix
Normal file
27
flake.nix
Normal file
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
2
module.nix
Normal file
2
module.nix
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
{...}: {
|
||||||
|
}
|
||||||
32
morfeusz.nix
Normal file
32
morfeusz.nix
Normal file
@@ -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/;
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user