···16 # The human version (e.g. 21.05-pre) is left as is, because it is useful
17 # for external modules that test with e.g. testers.nixosTest and rely on that
18 # version number.
19- config.system.nixos.revision = mkForce "constant-nixos-revision";
00020 }
2122 ];
···16 # The human version (e.g. 21.05-pre) is left as is, because it is useful
17 # for external modules that test with e.g. testers.nixosTest and rely on that
18 # version number.
19+ config.system.nixos = {
20+ revision = mkForce "constant-nixos-revision";
21+ label = mkForce "test";
22+ };
23 }
2425 ];
···1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, cmake
5+, fetchpatch
6+}:
7+8+stdenv.mkDerivation {
9+ pname = "cld2";
10+ version = "unstable-2015-08-21";
11+12+ src = fetchFromGitHub {
13+ owner = "CLD2Owners";
14+ repo = "cld2";
15+ rev = "b56fa78a2fe44ac2851bae5bf4f4693a0644da7b";
16+ hash = "sha256-YhXs45IbriKWKULguZM4DgfV/Fzr73VHxA1pFTXCyv8=";
17+ };
18+19+ patches = [
20+ (fetchpatch {
21+ name = "add-cmakelists.txt";
22+ url = "https://github.com/CLD2Owners/cld2/pull/65/commits/9cfac02c2ac7802ab7079560b38a474473c45f51.patch";
23+ hash = "sha256-uOjmUk8kMFl+wED44ErXoLRyblhgDwFx9K1Wj65Omh8=";
24+ })
25+ ];
26+27+ nativeBuildInputs = [ cmake ];
28+29+ meta = with lib; {
30+ homepage = "https://github.com/CLD2Owners/cld2";
31+ description = "Compact Language Detector 2";
32+ longDescription = ''
33+ CLD2 probabilistically detects over 80 languages in Unicode UTF-8 text,
34+ either plain text or HTML/XML. Legacy encodings must be converted to valid
35+ UTF-8 by the caller. For mixed-language input, CLD2 returns the top three
36+ languages found and their approximate percentages of the total text bytes
37+ (e.g. 80% English and 20% French out of 1000 bytes of text means about 800
38+ bytes of English and 200 bytes of French). Optionally, it also returns a
39+ vector of text spans with the language of each identified. This may be
40+ useful for applying different spelling-correction dictionaries or
41+ different machine translation requests to each span. The design target is
42+ web pages of at least 200 characters (about two sentences); CLD2 is not
43+ designed to do well on very short text, lists of proper names, part
44+ numbers, etc.
45+ '';
46+ license = licenses.asl20;
47+ maintainers = with maintainers; [ chvp ];
48+ platforms = platforms.all;
49+ };
50+}
+4-9
pkgs/by-name/cn/cntb/package.nix
···3, fetchFromGitHub
4}: buildGoModule rec {
5 pname = "cntb";
6- version = "1.4.6";
78 src = fetchFromGitHub {
9 owner = "contabo";
10 repo = "cntb";
11- rev = "v${version}";
12- hash = "sha256-bvWNcEUSSHEk8fwwPdowATGEHIAj+TN8Z+A156sPVtA=";
13- # docs contains two files with the same name but different cases,
14- # this leads to a different hash on case insensitive filesystems (e.g. darwin)
15- postFetch = ''
16- rm -rf $out/openapi/docs
17- '';
18 };
1920 subPackages = [ "." ];
2122- vendorHash = "sha256-++y2C3jYuGZ0ovRFoxeqnx7S9EwoOZBJ5zxeLGWjkqc=";
2324 meta = with lib; {
25 description = "CLI tool for managing your products from Contabo like VPS and VDS";
···3, fetchFromGitHub
4}: buildGoModule rec {
5 pname = "cntb";
6+ version = "1.4.8";
78 src = fetchFromGitHub {
9 owner = "contabo";
10 repo = "cntb";
11+ rev = version;
12+ hash = "sha256-Cj1PO82JeztThFAHR4/8UyqKrodgxBqVDMDsun3iGDo=";
0000013 };
1415 subPackages = [ "." ];
1617+ vendorHash = "sha256-4PhLUUtlnRh2dKkeVD7rZDDVP0eTDVAohvLLftQxQyE=";
1819 meta = with lib; {
20 description = "CLI tool for managing your products from Contabo like VPS and VDS";