···1616 # The human version (e.g. 21.05-pre) is left as is, because it is useful
1717 # for external modules that test with e.g. testers.nixosTest and rely on that
1818 # version number.
1919- config.system.nixos.revision = mkForce "constant-nixos-revision";
1919+ config.system.nixos = {
2020+ revision = mkForce "constant-nixos-revision";
2121+ label = mkForce "test";
2222+ };
2023 }
21242225 ];
···11+{ lib
22+, stdenv
33+, fetchFromGitHub
44+, cmake
55+, fetchpatch
66+}:
77+88+stdenv.mkDerivation {
99+ pname = "cld2";
1010+ version = "unstable-2015-08-21";
1111+1212+ src = fetchFromGitHub {
1313+ owner = "CLD2Owners";
1414+ repo = "cld2";
1515+ rev = "b56fa78a2fe44ac2851bae5bf4f4693a0644da7b";
1616+ hash = "sha256-YhXs45IbriKWKULguZM4DgfV/Fzr73VHxA1pFTXCyv8=";
1717+ };
1818+1919+ patches = [
2020+ (fetchpatch {
2121+ name = "add-cmakelists.txt";
2222+ url = "https://github.com/CLD2Owners/cld2/pull/65/commits/9cfac02c2ac7802ab7079560b38a474473c45f51.patch";
2323+ hash = "sha256-uOjmUk8kMFl+wED44ErXoLRyblhgDwFx9K1Wj65Omh8=";
2424+ })
2525+ ];
2626+2727+ nativeBuildInputs = [ cmake ];
2828+2929+ meta = with lib; {
3030+ homepage = "https://github.com/CLD2Owners/cld2";
3131+ description = "Compact Language Detector 2";
3232+ longDescription = ''
3333+ CLD2 probabilistically detects over 80 languages in Unicode UTF-8 text,
3434+ either plain text or HTML/XML. Legacy encodings must be converted to valid
3535+ UTF-8 by the caller. For mixed-language input, CLD2 returns the top three
3636+ languages found and their approximate percentages of the total text bytes
3737+ (e.g. 80% English and 20% French out of 1000 bytes of text means about 800
3838+ bytes of English and 200 bytes of French). Optionally, it also returns a
3939+ vector of text spans with the language of each identified. This may be
4040+ useful for applying different spelling-correction dictionaries or
4141+ different machine translation requests to each span. The design target is
4242+ web pages of at least 200 characters (about two sentences); CLD2 is not
4343+ designed to do well on very short text, lists of proper names, part
4444+ numbers, etc.
4545+ '';
4646+ license = licenses.asl20;
4747+ maintainers = with maintainers; [ chvp ];
4848+ platforms = platforms.all;
4949+ };
5050+}
+4-9
pkgs/by-name/cn/cntb/package.nix
···33, fetchFromGitHub
44}: buildGoModule rec {
55 pname = "cntb";
66- version = "1.4.6";
66+ version = "1.4.8";
7788 src = fetchFromGitHub {
99 owner = "contabo";
1010 repo = "cntb";
1111- rev = "v${version}";
1212- hash = "sha256-bvWNcEUSSHEk8fwwPdowATGEHIAj+TN8Z+A156sPVtA=";
1313- # docs contains two files with the same name but different cases,
1414- # this leads to a different hash on case insensitive filesystems (e.g. darwin)
1515- postFetch = ''
1616- rm -rf $out/openapi/docs
1717- '';
1111+ rev = version;
1212+ hash = "sha256-Cj1PO82JeztThFAHR4/8UyqKrodgxBqVDMDsun3iGDo=";
1813 };
19142015 subPackages = [ "." ];
21162222- vendorHash = "sha256-++y2C3jYuGZ0ovRFoxeqnx7S9EwoOZBJ5zxeLGWjkqc=";
1717+ vendorHash = "sha256-4PhLUUtlnRh2dKkeVD7rZDDVP0eTDVAohvLLftQxQyE=";
23182419 meta = with lib; {
2520 description = "CLI tool for managing your products from Contabo like VPS and VDS";