Merge remote-tracking branch 'origin/master' into staging-next

This commit is contained in:
Martin Weinelt 2023-03-06 16:55:14 +00:00
commit bcf6c81a88
52 changed files with 2724 additions and 1553 deletions

View File

@ -27,6 +27,7 @@ jobs:
uses: korthout/backport-action@v1.2.0 uses: korthout/backport-action@v1.2.0
with: with:
# Config README: https://github.com/korthout/backport-action#backport-action # Config README: https://github.com/korthout/backport-action#backport-action
copy_labels_pattern: 'severity:\ssecurity'
pull_description: |- pull_description: |-
Bot-based backport to `${target_branch}`, triggered by a label in #${pull_number}. Bot-based backport to `${target_branch}`, triggered by a label in #${pull_number}.

View File

@ -19,6 +19,7 @@ fennel,,,,,,misterio77
fifo,,,,,, fifo,,,,,,
fluent,,,,,,alerque fluent,,,,,,alerque
gitsigns.nvim,https://github.com/lewis6991/gitsigns.nvim.git,,,,5.1, gitsigns.nvim,https://github.com/lewis6991/gitsigns.nvim.git,,,,5.1,
haskell-tools.nvim,,,,,,
http,,,,0.3-0,,vcunat http,,,,0.3-0,,vcunat
inspect,,,,,, inspect,,,,,,
jsregexp,,,,,, jsregexp,,,,,,
@ -102,6 +103,8 @@ std._debug,https://github.com/lua-stdlib/_debug.git,,,,,
std.normalize,https://github.com/lua-stdlib/normalize.git,,,,, std.normalize,https://github.com/lua-stdlib/normalize.git,,,,,
stdlib,,,,41.2.2,,vyp stdlib,,,,41.2.2,,vyp
teal-language-server,,,http://luarocks.org/dev,,, teal-language-server,,,http://luarocks.org/dev,,,
telescope.nvim,,,,,5.1,
telescope-manix,,,,,,
tl,,,,,,mephistophiles tl,,,,,,mephistophiles
vstruct,https://github.com/ToxicFrog/vstruct.git,,,,, vstruct,https://github.com/ToxicFrog/vstruct.git,,,,,
vusted,,,,,,figsoda vusted,,,,,,figsoda

1 name src ref server version luaversion maintainers
19 fifo
20 fluent alerque
21 gitsigns.nvim https://github.com/lewis6991/gitsigns.nvim.git 5.1
22 haskell-tools.nvim
23 http 0.3-0 vcunat
24 inspect
25 jsregexp
103 std.normalize https://github.com/lua-stdlib/normalize.git
104 stdlib 41.2.2 vyp
105 teal-language-server http://luarocks.org/dev
106 telescope.nvim 5.1
107 telescope-manix
108 tl mephistophiles
109 vstruct https://github.com/ToxicFrog/vstruct.git
110 vusted figsoda

View File

@ -180,7 +180,7 @@ in
# extraGroups = [ "wheel" ]; # Enable sudo for the user. # extraGroups = [ "wheel" ]; # Enable sudo for the user.
# packages = with pkgs; [ # packages = with pkgs; [
# firefox # firefox
# thunderbird # tree
# ]; # ];
# }; # };

File diff suppressed because it is too large Load Diff

View File

@ -91,6 +91,17 @@
}; };
meta.homepage = "https://github.com/latex-lsp/tree-sitter-bibtex"; meta.homepage = "https://github.com/latex-lsp/tree-sitter-bibtex";
}; };
bicep = buildGrammar {
language = "bicep";
version = "b94a098";
src = fetchFromGitHub {
owner = "amaanq";
repo = "tree-sitter-bicep";
rev = "b94a0983b69ebb75e9129329a188199ad6ebcec0";
hash = "sha256-YCVOgLmtCWd4FwfwmQUZhSzP2wS2ZDLwXP1BRrpE0Ls=";
};
meta.homepage = "https://github.com/amaanq/tree-sitter-bicep";
};
blueprint = buildGrammar { blueprint = buildGrammar {
language = "blueprint"; language = "blueprint";
version = "6ef91ca"; version = "6ef91ca";
@ -104,34 +115,34 @@
}; };
c = buildGrammar { c = buildGrammar {
language = "c"; language = "c";
version = "7175a6d"; version = "f357890";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-c"; repo = "tree-sitter-c";
rev = "7175a6dd5fc1cee660dce6fe23f6043d75af424a"; rev = "f35789006ccbe5be8db21d1a2dd4cc0b5a1286f2";
hash = "sha256-G9kVqX8walvpI7gPvPzS8g7X8RVM9y5wJHGOcyjJA/A="; hash = "sha256-TLaqolQEN3m3YuNo8JbuRyaEmbWQCWyJJUaDDv4GFDY=";
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-c"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-c";
}; };
c_sharp = buildGrammar { c_sharp = buildGrammar {
language = "c_sharp"; language = "c_sharp";
version = "5b6c4d0"; version = "fcacbeb";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-c-sharp"; repo = "tree-sitter-c-sharp";
rev = "5b6c4d0d19d79b05c69ad752e11829910e3b4610"; rev = "fcacbeb4af6bcdcfb4527978a997bb03f4fe086d";
hash = "sha256-Ax9AuxqQK9gSlkxM2k6E32CskudUmduWm0luC031P5U="; hash = "sha256-sMNNnp1Ypljou0RZ9V0M4qVP/2Osrk1L8NCiyEGY1pw=";
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-c-sharp"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-c-sharp";
}; };
capnp = buildGrammar { capnp = buildGrammar {
language = "capnp"; language = "capnp";
version = "cb85cdd"; version = "fc6e2ad";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-capnp"; repo = "tree-sitter-capnp";
rev = "cb85cddfdf398530110c807ba046822dbaee6afb"; rev = "fc6e2addf103861b9b3dffb82c543eb6b71061aa";
hash = "sha256-VB8fNF8EtTAkKBLIAByazczPHJYdBULCeoGQ1ZLLRhI="; hash = "sha256-FKzh0c/mTURLss8mv/c/p3dNXQxE/r5P063GEM8un70=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-capnp"; meta.homepage = "https://github.com/amaanq/tree-sitter-capnp";
}; };
@ -148,12 +159,12 @@
}; };
clojure = buildGrammar { clojure = buildGrammar {
language = "clojure"; language = "clojure";
version = "262d6d6"; version = "421546c";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sogaiu"; owner = "sogaiu";
repo = "tree-sitter-clojure"; repo = "tree-sitter-clojure";
rev = "262d6d60f39f0f77b3dd08da8ec895bd5a044416"; rev = "421546c2547c74d1d9a0d8c296c412071d37e7ca";
hash = "sha256-9+tMkv329FfxYzALxkr6QZBEmJJBKUDBK4RzIsNL7S0="; hash = "sha256-GfDaUZjvTELXkRzJXK303QyPDQr7ozfrz/4iOQNDQTU=";
}; };
meta.homepage = "https://github.com/sogaiu/tree-sitter-clojure"; meta.homepage = "https://github.com/sogaiu/tree-sitter-clojure";
}; };
@ -201,14 +212,25 @@
}; };
meta.homepage = "https://github.com/addcninblue/tree-sitter-cooklang"; meta.homepage = "https://github.com/addcninblue/tree-sitter-cooklang";
}; };
cpon = buildGrammar {
language = "cpon";
version = "eedb93b";
src = fetchFromGitHub {
owner = "amaanq";
repo = "tree-sitter-cpon";
rev = "eedb93bf9e22e82ed6a67e6c57fd78731b44f591";
hash = "sha256-8x+oUbiwt7prGc5cli5HabHoH3q/mBnQzO1Wy2Bauac=";
};
meta.homepage = "https://github.com/amaanq/tree-sitter-cpon";
};
cpp = buildGrammar { cpp = buildGrammar {
language = "cpp"; language = "cpp";
version = "56cec4c"; version = "03fa93d";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-cpp"; repo = "tree-sitter-cpp";
rev = "56cec4c2eb5d6af3d2942e69e35db15ae2433740"; rev = "03fa93db133d6048a77d4de154a7b17ea8b9d076";
hash = "sha256-CWh5p0tlBQizABjwBRN1VoxeEriOPhTy3lFZI9PjsTA="; hash = "sha256-0KYGEgAWmKFialuCy2zTfadDYezaftRRWjnr7sua9/c=";
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-cpp"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-cpp";
}; };
@ -225,15 +247,26 @@
}; };
cuda = buildGrammar { cuda = buildGrammar {
language = "cuda"; language = "cuda";
version = "a02c214"; version = "91c3ca3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "theHamsta"; owner = "theHamsta";
repo = "tree-sitter-cuda"; repo = "tree-sitter-cuda";
rev = "a02c21408c592e6e6856eaabe4727faa97cf8d85"; rev = "91c3ca3e42326e0f7b83c82765940bbf7f91c847";
hash = "sha256-bgyisXPNZXlvPF0nRPD5LeVhvbTx0TLgnToue9IFHwI="; hash = "sha256-0jDO8Wkqkn9ol4mfga/h/9yMMWkMF9Z/33rTxB8n1dg=";
}; };
meta.homepage = "https://github.com/theHamsta/tree-sitter-cuda"; meta.homepage = "https://github.com/theHamsta/tree-sitter-cuda";
}; };
cue = buildGrammar {
language = "cue";
version = "4ffcda8";
src = fetchFromGitHub {
owner = "eonpatapon";
repo = "tree-sitter-cue";
rev = "4ffcda8c2bdfee1c2ba786cd503d0508ea92cca2";
hash = "sha256-a72Z67LXmEuHF/mKIaxi1Y9TNzqLjAiPYR3+VUu9fso=";
};
meta.homepage = "https://github.com/eonpatapon/tree-sitter-cue";
};
d = buildGrammar { d = buildGrammar {
language = "d"; language = "d";
version = "c2fbf21"; version = "c2fbf21";
@ -269,6 +302,17 @@
generate = true; generate = true;
meta.homepage = "https://github.com/joelspadin/tree-sitter-devicetree"; meta.homepage = "https://github.com/joelspadin/tree-sitter-devicetree";
}; };
dhall = buildGrammar {
language = "dhall";
version = "affb6ee";
src = fetchFromGitHub {
owner = "jbellerb";
repo = "tree-sitter-dhall";
rev = "affb6ee38d629c9296749767ab832d69bb0d9ea8";
hash = "sha256-q9OkKmp0Nor+YkFc8pBVAOoXoWzwjjzg9lBUKAUnjmQ=";
};
meta.homepage = "https://github.com/jbellerb/tree-sitter-dhall";
};
diff = buildGrammar { diff = buildGrammar {
language = "diff"; language = "diff";
version = "f69bde8"; version = "f69bde8";
@ -382,12 +426,12 @@
}; };
erlang = buildGrammar { erlang = buildGrammar {
language = "erlang"; language = "erlang";
version = "2422bc9"; version = "9fe5cdf";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "WhatsApp"; owner = "WhatsApp";
repo = "tree-sitter-erlang"; repo = "tree-sitter-erlang";
rev = "2422bc9373094bfa97653ac540e08759f812523c"; rev = "9fe5cdfab0f0d753112e9949a3501f64b75a3d92";
hash = "sha256-DTIA3EP2RQtts6Hl6FThSxN1SwEUbRVJJig8zOUQRCo="; hash = "sha256-nJikCiksuOAEXEvX2eQ2jZoVmzPQLJ36l4mk0irPW3c=";
}; };
meta.homepage = "https://github.com/WhatsApp/tree-sitter-erlang"; meta.homepage = "https://github.com/WhatsApp/tree-sitter-erlang";
}; };
@ -426,12 +470,12 @@
}; };
fortran = buildGrammar { fortran = buildGrammar {
language = "fortran"; language = "fortran";
version = "67cf1c9"; version = "31552ac";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "stadelmanma"; owner = "stadelmanma";
repo = "tree-sitter-fortran"; repo = "tree-sitter-fortran";
rev = "67cf1c96fd0dd92edd7812a95626c86c9be0781a"; rev = "31552ac43ecaffa443a12ebea68cc526d334892f";
hash = "sha256-OImEGuPlks3XfWSWXLekz5nSPJUHNS9uDm6ugrFPfdQ="; hash = "sha256-6ywdhlQGjivA2RV5345A0BiybAJOn9cIM03GMHjVoiM=";
}; };
meta.homepage = "https://github.com/stadelmanma/tree-sitter-fortran"; meta.homepage = "https://github.com/stadelmanma/tree-sitter-fortran";
}; };
@ -470,12 +514,12 @@
}; };
gdscript = buildGrammar { gdscript = buildGrammar {
language = "gdscript"; language = "gdscript";
version = "31ebb7c"; version = "a4b57cc";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "PrestonKnopp"; owner = "PrestonKnopp";
repo = "tree-sitter-gdscript"; repo = "tree-sitter-gdscript";
rev = "31ebb7cd0b880ea53a152eaf9d4df73f737181cc"; rev = "a4b57cc3bcbfc24550e858159647e9238e7ad1ac";
hash = "sha256-9fP6Us3mDMjJFM1Kxg0KiulCvyVv5qdo8+tyRgzGxUw="; hash = "sha256-31FQlLVn5T/9858bPsZQkvejGVjO0ok5T5A13a+S91Y=";
}; };
meta.homepage = "https://github.com/PrestonKnopp/tree-sitter-gdscript"; meta.homepage = "https://github.com/PrestonKnopp/tree-sitter-gdscript";
}; };
@ -637,12 +681,12 @@
}; };
haskell = buildGrammar { haskell = buildGrammar {
language = "haskell"; language = "haskell";
version = "3bdba07"; version = "0da7f82";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-haskell"; repo = "tree-sitter-haskell";
rev = "3bdba07c7a8eec23f87fa59ce9eb2ea4823348b3"; rev = "0da7f826e85b3e589e217adf69a6fd89ee4301b9";
hash = "sha256-/aGUdyVxXqXCvjruI8rqiKzfTsyxzOKaXSAUG5xK4cE="; hash = "sha256-5PCwcbF+UOmn4HE99RgBoDvC7w/QP1lo870+11S6cok=";
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-haskell"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-haskell";
}; };
@ -692,12 +736,12 @@
}; };
hlsl = buildGrammar { hlsl = buildGrammar {
language = "hlsl"; language = "hlsl";
version = "8e2f090"; version = "306d485";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "theHamsta"; owner = "theHamsta";
repo = "tree-sitter-hlsl"; repo = "tree-sitter-hlsl";
rev = "8e2f0907e8d2e17a88a375025e70054bafdaa8b0"; rev = "306d48516a6b3dbb18a184692e8edffa8403018f";
hash = "sha256-kBSigaBR6uM4E9uHI79gYlxBrN0E5i1zTW8syMPIQdI="; hash = "sha256-PvraHZYbTF3FFIQoooRr1Lx4ZrBLzzxWd5YoqibBQfM=";
}; };
meta.homepage = "https://github.com/theHamsta/tree-sitter-hlsl"; meta.homepage = "https://github.com/theHamsta/tree-sitter-hlsl";
}; };
@ -758,23 +802,23 @@
}; };
java = buildGrammar { java = buildGrammar {
language = "java"; language = "java";
version = "dd597f1"; version = "3c24aa9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-java"; repo = "tree-sitter-java";
rev = "dd597f13eb9bab0c1bccc9aec390e8e6ebf9e0a6"; rev = "3c24aa9365985830421a3a7b6791b415961ea770";
hash = "sha256-JeQZ4TMpt6Lfbcfc6m/PzhFZEgTdouasJ3b1sPISy2s="; hash = "sha256-06spTQhAIJvixfZ858vPKKv6FJ1AC4JElQzkugxfTuo=";
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-java"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-java";
}; };
javascript = buildGrammar { javascript = buildGrammar {
language = "javascript"; language = "javascript";
version = "15e85e8"; version = "5720b24";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-javascript"; repo = "tree-sitter-javascript";
rev = "15e85e80b851983fab6b12dce5a535f5a0df0f9c"; rev = "5720b249490b3c17245ba772f6be4a43edb4e3b7";
hash = "sha256-2SAJBnY8pmynGqB8OVqHeeAKovskO+C/XiJbLTKSlcM="; hash = "sha256-rSkLSXdthOS9wzXsC8D1Z1P0vmOT+APzeesvlN7ta6U=";
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-javascript"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-javascript";
}; };
@ -857,12 +901,12 @@
}; };
kdl = buildGrammar { kdl = buildGrammar {
language = "kdl"; language = "kdl";
version = "c3c4856"; version = "e36f054";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-kdl"; repo = "tree-sitter-kdl";
rev = "c3c4856464842e05366b1f3ebc4434c9194cad43"; rev = "e36f054a60c4d9e5ae29567d439fdb8790b53b30";
hash = "sha256-vYvyX9NWIFsWkxZvA5k32gFBh5Ykwgy0YrCBPAH6bcg="; hash = "sha256-ZZLe7WBDIX1x1lmuHE1lmZ93YWXTW3iwPgXXbxXR/n4=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-kdl"; meta.homepage = "https://github.com/amaanq/tree-sitter-kdl";
}; };
@ -890,12 +934,12 @@
}; };
latex = buildGrammar { latex = buildGrammar {
language = "latex"; language = "latex";
version = "6b7ea83"; version = "376f640";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "latex-lsp"; owner = "latex-lsp";
repo = "tree-sitter-latex"; repo = "tree-sitter-latex";
rev = "6b7ea839307670e6bda011f888717d3a882ecc09"; rev = "376f64097b7a26691a2ca60dc94e4dfa417be932";
hash = "sha256-fmMm6HM9ZCnTyDxKmouoKFPYWkbrM//gHwVEFsICzUs="; hash = "sha256-9hcmCr9HfhKt5dkNN24haubrOySqpxzMoLVEGO53lxk=";
}; };
meta.homepage = "https://github.com/latex-lsp/tree-sitter-latex"; meta.homepage = "https://github.com/latex-lsp/tree-sitter-latex";
}; };
@ -932,6 +976,17 @@
}; };
meta.homepage = "https://github.com/MunifTanjim/tree-sitter-lua"; meta.homepage = "https://github.com/MunifTanjim/tree-sitter-lua";
}; };
luap = buildGrammar {
language = "luap";
version = "bfb38d2";
src = fetchFromGitHub {
owner = "amaanq";
repo = "tree-sitter-luap";
rev = "bfb38d254f380362e26b5c559a4086ba6e92ba77";
hash = "sha256-HpKqesIa+x3EQGnWV07jv2uEW9A9TEN4bPNuecXEaFI=";
};
meta.homepage = "https://github.com/amaanq/tree-sitter-luap";
};
m68k = buildGrammar { m68k = buildGrammar {
language = "m68k"; language = "m68k";
version = "d097b12"; version = "d097b12";
@ -956,28 +1011,39 @@
}; };
markdown = buildGrammar { markdown = buildGrammar {
language = "markdown"; language = "markdown";
version = "7e7aa9a"; version = "fa6bfd5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "MDeiml"; owner = "MDeiml";
repo = "tree-sitter-markdown"; repo = "tree-sitter-markdown";
rev = "7e7aa9a25ca9729db9fe22912f8f47bdb403a979"; rev = "fa6bfd51727e4bef99f7eec5f43947f73d64ea7d";
hash = "sha256-KsE9oYzD+vVqgR35JdL0NmPfNGJqpC12sEsZVIs7NX0="; hash = "sha256-P31TiBW5JqDfYJhWH6pGqD2aWan0Bo1Tl0ONEg7ePnM=";
}; };
location = "tree-sitter-markdown"; location = "tree-sitter-markdown";
meta.homepage = "https://github.com/MDeiml/tree-sitter-markdown"; meta.homepage = "https://github.com/MDeiml/tree-sitter-markdown";
}; };
markdown_inline = buildGrammar { markdown_inline = buildGrammar {
language = "markdown_inline"; language = "markdown_inline";
version = "7e7aa9a"; version = "fa6bfd5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "MDeiml"; owner = "MDeiml";
repo = "tree-sitter-markdown"; repo = "tree-sitter-markdown";
rev = "7e7aa9a25ca9729db9fe22912f8f47bdb403a979"; rev = "fa6bfd51727e4bef99f7eec5f43947f73d64ea7d";
hash = "sha256-KsE9oYzD+vVqgR35JdL0NmPfNGJqpC12sEsZVIs7NX0="; hash = "sha256-P31TiBW5JqDfYJhWH6pGqD2aWan0Bo1Tl0ONEg7ePnM=";
}; };
location = "tree-sitter-markdown-inline"; location = "tree-sitter-markdown-inline";
meta.homepage = "https://github.com/MDeiml/tree-sitter-markdown"; meta.homepage = "https://github.com/MDeiml/tree-sitter-markdown";
}; };
matlab = buildGrammar {
language = "matlab";
version = "2d5d3d5";
src = fetchFromGitHub {
owner = "mstanciu552";
repo = "tree-sitter-matlab";
rev = "2d5d3d5193718a86477d4335aba5b34e79147326";
hash = "sha256-Rpa/F3MIFRmHunJFsuvbs3h3vDlR3U7UZ+sTN5tJS8U=";
};
meta.homepage = "https://github.com/mstanciu552/tree-sitter-matlab";
};
menhir = buildGrammar { menhir = buildGrammar {
language = "menhir"; language = "menhir";
version = "db7953a"; version = "db7953a";
@ -1002,12 +1068,12 @@
}; };
meson = buildGrammar { meson = buildGrammar {
language = "meson"; language = "meson";
version = "5f3138d"; version = "3d6dfbd";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Decodetalkers"; owner = "Decodetalkers";
repo = "tree-sitter-meson"; repo = "tree-sitter-meson";
rev = "5f3138d555aceef976ec9a1d4a3f78e13b31e45f"; rev = "3d6dfbdb2432603bc84ca7dc009bb39ed9a8a7b1";
hash = "sha256-P0S2JpRjAznDLaU97NMzLuuNyPqqy4RNqBa+PKvyl6s="; hash = "sha256-NRiecSr5UjISlFtmtvy3SYaWSmXMf0bKCKQVA83Jx+Y=";
}; };
meta.homepage = "https://github.com/Decodetalkers/tree-sitter-meson"; meta.homepage = "https://github.com/Decodetalkers/tree-sitter-meson";
}; };
@ -1113,14 +1179,25 @@
}; };
meta.homepage = "https://github.com/Isopod/tree-sitter-pascal.git"; meta.homepage = "https://github.com/Isopod/tree-sitter-pascal.git";
}; };
passwd = buildGrammar {
language = "passwd";
version = "2023939";
src = fetchFromGitHub {
owner = "ath3";
repo = "tree-sitter-passwd";
rev = "20239395eacdc2e0923a7e5683ad3605aee7b716";
hash = "sha256-3UfuyJeblQBKjqZvLYyO3GoCvYJp+DvBwQGkR3pFQQ4=";
};
meta.homepage = "https://github.com/ath3/tree-sitter-passwd";
};
perl = buildGrammar { perl = buildGrammar {
language = "perl"; language = "perl";
version = "749d26f"; version = "ff1f0ac";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ganezdragon"; owner = "ganezdragon";
repo = "tree-sitter-perl"; repo = "tree-sitter-perl";
rev = "749d26fe13fb131b92e6515416096e572575b981"; rev = "ff1f0ac0f1c678a23f68d0140e75a0da8e11b7b5";
hash = "sha256-VOLvfgh1ZbuDk1BKBW9ln/9b/seudFv0PTIOFe1AtNE="; hash = "sha256-RFSDtd8iJJEX7dawMzaGwJUB4t/nr11hmG2EdTp11s4=";
}; };
meta.homepage = "https://github.com/ganezdragon/tree-sitter-perl"; meta.homepage = "https://github.com/ganezdragon/tree-sitter-perl";
}; };
@ -1157,6 +1234,17 @@
}; };
meta.homepage = "https://github.com/leo60228/tree-sitter-pioasm"; meta.homepage = "https://github.com/leo60228/tree-sitter-pioasm";
}; };
po = buildGrammar {
language = "po";
version = "d6aed22";
src = fetchFromGitHub {
owner = "erasin";
repo = "tree-sitter-po";
rev = "d6aed225290bc71a15ab6f06305cb11419360c56";
hash = "sha256-fz4DGPA+KtOvLBmVMXqwnEMeXhupFecQC1xfhMbWCJg=";
};
meta.homepage = "https://github.com/erasin/tree-sitter-po";
};
poe_filter = buildGrammar { poe_filter = buildGrammar {
language = "poe_filter"; language = "poe_filter";
version = "80dc101"; version = "80dc101";
@ -1190,6 +1278,17 @@
}; };
meta.homepage = "https://github.com/mitchellh/tree-sitter-proto"; meta.homepage = "https://github.com/mitchellh/tree-sitter-proto";
}; };
prql = buildGrammar {
language = "prql";
version = "5f6c4e4";
src = fetchFromGitHub {
owner = "PRQL";
repo = "tree-sitter-prql";
rev = "5f6c4e4a90633b19e2077c1d37248989789d64be";
hash = "sha256-unmRen1XJgT60lMfsIsp0PBghfBGqMoiEN9nB8Hu6gQ=";
};
meta.homepage = "https://github.com/PRQL/tree-sitter-prql";
};
pug = buildGrammar { pug = buildGrammar {
language = "pug"; language = "pug";
version = "884e225"; version = "884e225";
@ -1203,12 +1302,12 @@
}; };
python = buildGrammar { python = buildGrammar {
language = "python"; language = "python";
version = "528855e"; version = "6282715";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-python"; repo = "tree-sitter-python";
rev = "528855eee2665210e1bf5556de48b8d8dacb8932"; rev = "62827156d01c74dc1538266344e788da74536b8a";
hash = "sha256-H2RWMbbKIMbfH/TMC5SKbO9qEB9RfFUOYrczwmDdrVo="; hash = "sha256-hVtX4Dyqrq+cSvKTmKMxLbAplcCdR8dfFDoIZNtPFA0=";
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-python"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-python";
}; };
@ -1223,6 +1322,17 @@
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-ql"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-ql";
}; };
qmldir = buildGrammar {
language = "qmldir";
version = "6b2b5e4";
src = fetchFromGitHub {
owner = "Decodetalkers";
repo = "tree-sitter-qmldir";
rev = "6b2b5e41734bd6f07ea4c36ac20fb6f14061c841";
hash = "sha256-7ic9Xd+1G0JM25bY0f8N5r6YZx5NV5HrJXXHp6pXvo4=";
};
meta.homepage = "https://github.com/Decodetalkers/tree-sitter-qmldir";
};
qmljs = buildGrammar { qmljs = buildGrammar {
language = "qmljs"; language = "qmljs";
version = "ab75be9"; version = "ab75be9";
@ -1258,12 +1368,12 @@
}; };
racket = buildGrammar { racket = buildGrammar {
language = "racket"; language = "racket";
version = "1a5df02"; version = "c2f7baa";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "6cdh"; owner = "6cdh";
repo = "tree-sitter-racket"; repo = "tree-sitter-racket";
rev = "1a5df0206b25a05cb1b35a68d2105fc7493df39b"; rev = "c2f7baa22053a66b4dba852cdba3f14f34bb6985";
hash = "sha256-cKRShvkpg6M8vxUvp5wKHvX9ZJOUyv7m2hNyfeKw/Bk="; hash = "sha256-P6p2IOECsqCLBgtLE+xqzZuMS8d/lTfAHfTeONClVbY=";
}; };
meta.homepage = "https://github.com/6cdh/tree-sitter-racket"; meta.homepage = "https://github.com/6cdh/tree-sitter-racket";
}; };
@ -1346,12 +1456,12 @@
}; };
rust = buildGrammar { rust = buildGrammar {
language = "rust"; language = "rust";
version = "f7fb205"; version = "fbf9e50";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-rust"; repo = "tree-sitter-rust";
rev = "f7fb205c424b0962de59b26b931fe484e1262b35"; rev = "fbf9e507d09d8b3c0bb9dfc4d46c31039a47dc4a";
hash = "sha256-Onk8i2vGHySsjg/O3OZvl7OlDpg3b5/7481f+jJMPCU="; hash = "sha256-hWooQfE7sWXfOkGai3hREoEulcwWT6XPT4xAc+dfjKk=";
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-rust"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-rust";
}; };
@ -1401,12 +1511,12 @@
}; };
smali = buildGrammar { smali = buildGrammar {
language = "smali"; language = "smali";
version = "5a742af"; version = "a67a429";
src = fetchFromSourcehut { src = fetchFromSourcehut {
owner = "~yotam"; owner = "~yotam";
repo = "tree-sitter-smali"; repo = "tree-sitter-smali";
rev = "5a742af7388864a3ff2ce8421328a33e7246a2d5"; rev = "a67a429784dafa0ca4342d71e6530137ca803883";
hash = "sha256-8FpmeyGzaQDUWXs/XanNi1u0jHsKP9wq7y7XNaQIlXM="; hash = "sha256-Pby6RZKPXyPR41E9m2iRsLgVt7bOn2AZyyb4lvcwYwY=";
}; };
meta.homepage = "https://git.sr.ht/~yotam/tree-sitter-smali"; meta.homepage = "https://git.sr.ht/~yotam/tree-sitter-smali";
}; };
@ -1423,14 +1533,14 @@
}; };
solidity = buildGrammar { solidity = buildGrammar {
language = "solidity"; language = "solidity";
version = "52ed088"; version = "1680203";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "YongJieYongJie"; owner = "JoranHonig";
repo = "tree-sitter-solidity"; repo = "tree-sitter-solidity";
rev = "52ed0880c0126df2f2c7693f215fe6f38e4a2e0a"; rev = "168020304759ad5d8b4a88a541a699134e3730c5";
hash = "sha256-ZyeUYtE0pyQIPnZhza6u6yQO0Mx8brgAUmUpIXYZwb4="; hash = "sha256-GCSBXB9nNIYpcXlA6v7P1ejn1ojmfXdPzr1sWejB560=";
}; };
meta.homepage = "https://github.com/YongJieYongJie/tree-sitter-solidity"; meta.homepage = "https://github.com/JoranHonig/tree-sitter-solidity";
}; };
sparql = buildGrammar { sparql = buildGrammar {
language = "sparql"; language = "sparql";
@ -1445,16 +1555,27 @@
}; };
sql = buildGrammar { sql = buildGrammar {
language = "sql"; language = "sql";
version = "3a3f92b"; version = "1cb7c7a";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "derekstride"; owner = "derekstride";
repo = "tree-sitter-sql"; repo = "tree-sitter-sql";
rev = "3a3f92b29c880488a08bc2baaf1aca6432ec3380"; rev = "1cb7c7a11015983f6d173847d5a3574f8e20107b";
hash = "sha256-UdvsZOpnZsfWomKHBmtpHYDsgYZgIZvw2d+JNUphycs="; hash = "sha256-zdaFE5G19MLH4W5ZF0HfRNNMJV9Evp+X70eXHDmD/pA=";
}; };
generate = true; generate = true;
meta.homepage = "https://github.com/derekstride/tree-sitter-sql"; meta.homepage = "https://github.com/derekstride/tree-sitter-sql";
}; };
starlark = buildGrammar {
language = "starlark";
version = "8ad93a7";
src = fetchFromGitHub {
owner = "amaanq";
repo = "tree-sitter-starlark";
rev = "8ad93a74c2a880bc16325affba3cc66c14bb2bde";
hash = "sha256-HHGE7P/QAPCyu7wecRiDLrQIm8lndFjKOOb9xiyXsfc=";
};
meta.homepage = "https://github.com/amaanq/tree-sitter-starlark";
};
supercollider = buildGrammar { supercollider = buildGrammar {
language = "supercollider"; language = "supercollider";
version = "90c6d9f"; version = "90c6d9f";
@ -1490,12 +1611,12 @@
}; };
swift = buildGrammar { swift = buildGrammar {
language = "swift"; language = "swift";
version = "0c32d29"; version = "fe2e325";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alex-pinkus"; owner = "alex-pinkus";
repo = "tree-sitter-swift"; repo = "tree-sitter-swift";
rev = "0c32d2948b79939b6464d9ced40fca43912cd486"; rev = "fe2e325a45056cdb3fcda821c03b8cef0d79e508";
hash = "sha256-LyeK/fOQBO10blHCXYyGvmzk/U3uIj4tfjdH+p6aVs4="; hash = "sha256-ldPHpYhuAbodMPY8t8X7UiMY8kcds28r75R3Hqnlqv8=";
}; };
generate = true; generate = true;
meta.homepage = "https://github.com/alex-pinkus/tree-sitter-swift"; meta.homepage = "https://github.com/alex-pinkus/tree-sitter-swift";
@ -1604,12 +1725,12 @@
}; };
tsx = buildGrammar { tsx = buildGrammar {
language = "tsx"; language = "tsx";
version = "5d20856"; version = "c6e56d4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-typescript"; repo = "tree-sitter-typescript";
rev = "5d20856f34315b068c41edaee2ac8a100081d259"; rev = "c6e56d44c686a67c89e29e773e662567285d610f";
hash = "sha256-cpOAtfvlffS57BrXaoa2xa9NUYw0AsHxVI8PrcpgZCQ="; hash = "sha256-usZAbf2sTNO78ldiiex6i94dh73kH6QOV0jjf5StuO0=";
}; };
location = "tsx"; location = "tsx";
meta.homepage = "https://github.com/tree-sitter/tree-sitter-typescript"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-typescript";
@ -1638,24 +1759,35 @@
}; };
typescript = buildGrammar { typescript = buildGrammar {
language = "typescript"; language = "typescript";
version = "5d20856"; version = "c6e56d4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-typescript"; repo = "tree-sitter-typescript";
rev = "5d20856f34315b068c41edaee2ac8a100081d259"; rev = "c6e56d44c686a67c89e29e773e662567285d610f";
hash = "sha256-cpOAtfvlffS57BrXaoa2xa9NUYw0AsHxVI8PrcpgZCQ="; hash = "sha256-usZAbf2sTNO78ldiiex6i94dh73kH6QOV0jjf5StuO0=";
}; };
location = "typescript"; location = "typescript";
meta.homepage = "https://github.com/tree-sitter/tree-sitter-typescript"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-typescript";
}; };
ungrammar = buildGrammar {
language = "ungrammar";
version = "debd26f";
src = fetchFromGitHub {
owner = "Philipp-M";
repo = "tree-sitter-ungrammar";
rev = "debd26fed283d80456ebafa33a06957b0c52e451";
hash = "sha256-ftvcD8I+hYqH3EGxaRZ0w8FHjBA34OSTTsrUsAOtayU=";
};
meta.homepage = "https://github.com/Philipp-M/tree-sitter-ungrammar";
};
v = buildGrammar { v = buildGrammar {
language = "v"; language = "v";
version = "136f3a0"; version = "66cf9d3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vlang"; owner = "vlang";
repo = "vls"; repo = "vls";
rev = "136f3a0ad91ab8a781c2d4eb419df0a981839f69"; rev = "66cf9d3086fb5ecc827cb32c64c5d812ab17d2c6";
hash = "sha256-zmbR2Of/XEJuGvNmXAJ+C4aAMem51LVS3e1rSqjaSb0="; hash = "sha256-/dNdUAmfG/HNMzeWi3PSSM9pwA60/zOjLi4NFXfn6YU=";
}; };
location = "tree_sitter_v"; location = "tree_sitter_v";
meta.homepage = "https://github.com/vlang/vls"; meta.homepage = "https://github.com/vlang/vls";
@ -1759,14 +1891,25 @@
}; };
meta.homepage = "https://github.com/Hubro/tree-sitter-yang"; meta.homepage = "https://github.com/Hubro/tree-sitter-yang";
}; };
yuck = buildGrammar {
language = "yuck";
version = "48af129";
src = fetchFromGitHub {
owner = "Philipp-M";
repo = "tree-sitter-yuck";
rev = "48af129ab5411cd6f7ae2b36f53c1192572fa030";
hash = "sha256-G/aY771G7R78FhS7WxktlMf/0K+PR80WqfwmH+gQhwQ=";
};
meta.homepage = "https://github.com/Philipp-M/tree-sitter-yuck";
};
zig = buildGrammar { zig = buildGrammar {
language = "zig"; language = "zig";
version = "6b3f578"; version = "f3bc9ff";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "maxxnino"; owner = "maxxnino";
repo = "tree-sitter-zig"; repo = "tree-sitter-zig";
rev = "6b3f5788f38be900b45f5af5a753bf6a37d614b8"; rev = "f3bc9ffe9ca10f52dee01999b5b6ce9a4074b0ac";
hash = "sha256-KwMo1gwre8/AXkXXwQqPHZIEPXM26PK8SI0p3tmkt24="; hash = "sha256-/Bk7UGdPOHmGc01eCNPHsXFMF4pAxE/gkhVxvRItZZ8=";
}; };
meta.homepage = "https://github.com/maxxnino/tree-sitter-zig"; meta.homepage = "https://github.com/maxxnino/tree-sitter-zig";
}; };

View File

@ -2,6 +2,8 @@
, stdenv , stdenv
, fetchFromGitLab , fetchFromGitLab
, docbook-xsl-nons , docbook-xsl-nons
, docutils
, gi-docgen
, gobject-introspection , gobject-introspection
, gtk-doc , gtk-doc
, libxslt , libxslt
@ -22,30 +24,33 @@ let
domain = "source.puri.sm"; domain = "source.puri.sm";
owner = "Librem5"; owner = "Librem5";
repo = "feedbackd-device-themes"; repo = "feedbackd-device-themes";
rev = "v0.0.20220523"; rev = "v0.1.0";
sha256 = "sha256-RyUZj+tpJSYhyoK+E98CTIoHwXwBdB1YHVnO5821exo="; sha256 = "sha256-YK9fJ3awmhf1FAhdz95T/POivSO93jsNApm+u4OOZ80=";
}; };
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "feedbackd"; pname = "feedbackd";
# Not an actual upstream project release, version = "0.1.0";
# only a Debian package release that is tagged in the upstream repo
version = "0.0.1";
outputs = [ "out" "dev" ] outputs = [ "out" "dev" "devdoc" ];
# remove if cross-compiling gobject-introspection works
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "source.puri.sm"; domain = "source.puri.sm";
owner = "Librem5"; owner = "Librem5";
repo = "feedbackd"; repo = "feedbackd";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-l1FhECLPq8K9lzQ50sI/aH7fwR9xW1ATyk7EWRmLzuQ="; hash = "sha256-7H5Ah4zo+wLKd0WoKoOgtIm7HcUSw8PTf/KzBlY75oc=";
fetchSubmodules = true;
}; };
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ nativeBuildInputs = [
docbook-xsl-nons docbook-xsl-nons
docutils # for rst2man
gi-docgen
gobject-introspection gobject-introspection
gtk-doc gtk-doc
libxslt libxslt
@ -64,11 +69,8 @@ stdenv.mkDerivation rec {
]; ];
mesonFlags = [ mesonFlags = [
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}" "-Dgtk_doc=true"
"-Dman=true" "-Dman=true"
# TODO(mindavi): introspection broken due to https://github.com/NixOS/nixpkgs/issues/72868
# can be removed if cross-compiling gobject-introspection works.
"-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
@ -83,6 +85,17 @@ stdenv.mkDerivation rec {
cp ${themes}/data/* $out/share/feedbackd/themes/ cp ${themes}/data/* $out/share/feedbackd/themes/
''; '';
postFixup = ''
# Move developer documentation to devdoc output.
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
if [[ -d "$out/share/doc" ]]; then
find -L "$out/share/doc" -type f -regex '.*\.devhelp2?' -print0 \
| while IFS= read -r -d ''' file; do
moveToOutput "$(dirname "''${file/"$out/"/}")" "$devdoc"
done
fi
'';
meta = with lib; { meta = with lib; {
description = "A daemon to provide haptic (and later more) feedback on events"; description = "A daemon to provide haptic (and later more) feedback on events";
homepage = "https://source.puri.sm/Librem5/feedbackd"; homepage = "https://source.puri.sm/Librem5/feedbackd";

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fetchmail"; pname = "fetchmail";
version = "6.4.36"; version = "6.4.37";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/fetchmail/fetchmail-${version}.tar.xz"; url = "mirror://sourceforge/fetchmail/fetchmail-${version}.tar.xz";
sha256 = "sha256-cA1DODjT4p4wRFKuxWshh09TjsJBE/3LslE5xfLtwjo="; sha256 = "sha256-ShguXYk+mr5qw3rnHlQmUfzm1gYjT8c1wqquGGV+aeo=";
}; };
buildInputs = [ openssl python3 ]; buildInputs = [ openssl python3 ];

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
pname = "uhd"; pname = "uhd";
# UHD seems to use three different version number styles: x.y.z, xxx_yyy_zzz # UHD seems to use three different version number styles: x.y.z, xxx_yyy_zzz
# and xxx.yyy.zzz. Hrmpf... style keeps changing # and xxx.yyy.zzz. Hrmpf... style keeps changing
version = "4.1.0.5"; version = "4.4.0.0";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
@ -47,12 +47,12 @@ stdenv.mkDerivation rec {
owner = "EttusResearch"; owner = "EttusResearch";
repo = "uhd"; repo = "uhd";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-XBq4GkLRR2SFunFRvpPOMiIbTuUkMYf8tPAoHCoveRA="; sha256 = "sha256-khVOHlvacZc4EMg4m55rxEqPvLY1xURpAfOW905/3jg=";
}; };
# Firmware images are downloaded (pre-built) from the respective release on Github # Firmware images are downloaded (pre-built) from the respective release on Github
uhdImagesSrc = fetchurl { uhdImagesSrc = fetchurl {
url = "https://github.com/EttusResearch/uhd/releases/download/v${version}/uhd-images_${version}.tar.xz"; url = "https://github.com/EttusResearch/uhd/releases/download/v${version}/uhd-images_${version}.tar.xz";
sha256 = "HctHB90ikOMkrYNyWmjGE/2HvA7xXKCUezdtiqzN+1A="; sha256 = "V8ldW8bvYWbrDAvpWpHcMeLf9YvF8PIruDAyNK/bru4=";
}; };
cmakeFlags = [ cmakeFlags = [
@ -116,7 +116,12 @@ stdenv.mkDerivation rec {
preConfigure = "cd host"; preConfigure = "cd host";
# TODO: Check if this still needed, perhaps relevant: # TODO: Check if this still needed, perhaps relevant:
# https://files.ettus.com/manual_archive/v3.15.0.0/html/page_build_guide.html#build_instructions_unix_arm # https://files.ettus.com/manual_archive/v3.15.0.0/html/page_build_guide.html#build_instructions_unix_arm
patches = if stdenv.isAarch32 then ./neon.patch else null; patches = [
# Disable tests that fail in the sandbox
./no-adapter-tests.patch
] ++ lib.optionals stdenv.isAarch32 [
./neon.patch
];
postPhases = [ "installFirmware" "removeInstalledTests" ] postPhases = [ "installFirmware" "removeInstalledTests" ]
++ optionals (enableUtils) [ "moveUdevRules" ] ++ optionals (enableUtils) [ "moveUdevRules" ]

View File

@ -0,0 +1,17 @@
diff --git i/host/tests/CMakeLists.txt w/host/tests/CMakeLists.txt
index f40c252ad..b8a07d341 100644
--- i/host/tests/CMakeLists.txt
+++ w/host/tests/CMakeLists.txt
@@ -453,12 +453,6 @@ UHD_ADD_NONAPI_TEST(
${UHD_SOURCE_DIR}/lib/utils/compat_check.cpp
)
-UHD_ADD_NONAPI_TEST(
- TARGET "xport_adapter_ctrl_test.cpp"
- EXTRA_SOURCES
- ${UHD_SOURCE_DIR}/lib/usrp/cores/xport_adapter_ctrl.cpp
-)
-
########################################################################
# demo of a loadable module
########################################################################

View File

@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
"-DUSE_OLDCMAKECUDA=ON" # see https://github.com/apache/incubator-mxnet/issues/10743 "-DUSE_OLDCMAKECUDA=ON" # see https://github.com/apache/incubator-mxnet/issues/10743
"-DCUDA_ARCH_NAME=All" "-DCUDA_ARCH_NAME=All"
"-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc" "-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc"
"-DMXNET_CUDA_ARCH=${builtins.concatStringsSep ";" cudaFlags.cudaRealArches}" "-DMXNET_CUDA_ARCH=${builtins.concatStringsSep ";" cudaFlags.realArches}"
] else [ "-DUSE_CUDA=OFF" ]) ] else [ "-DUSE_CUDA=OFF" ])
++ lib.optional (!cudnnSupport) "-DUSE_CUDNN=OFF"; ++ lib.optional (!cudnnSupport) "-DUSE_CUDNN=OFF";

View File

@ -66,7 +66,7 @@
, sdl2Support ? true, SDL2 , sdl2Support ? true, SDL2
, sixelSupport ? false, libsixel , sixelSupport ? false, libsixel
, speexSupport ? true, speex , speexSupport ? true, speex
, swiftSupport ? false, swift , swiftSupport ? stdenv.isDarwin && stdenv.isAarch64, swift
, theoraSupport ? true, libtheora , theoraSupport ? true, libtheora
, vaapiSupport ? stdenv.isLinux, libva , vaapiSupport ? stdenv.isLinux, libva
, vapoursynthSupport ? false, vapoursynth , vapoursynthSupport ? false, vapoursynth
@ -78,7 +78,7 @@
}: }:
let let
inherit (darwin.apple_sdk.frameworks) CoreFoundation Cocoa CoreAudio MediaPlayer; inherit (darwin.apple_sdk_11_0.frameworks) AVFoundation CoreFoundation CoreMedia Cocoa CoreAudio MediaPlayer;
luaEnv = lua.withPackages (ps: with ps; [ luasocket ]); luaEnv = lua.withPackages (ps: with ps; [ luasocket ]);
in stdenv.mkDerivation (self: { in stdenv.mkDerivation (self: {
pname = "mpv"; pname = "mpv";
@ -99,6 +99,11 @@ in stdenv.mkDerivation (self: {
NIX_LDFLAGS = lib.optionalString x11Support "-lX11 -lXext "; NIX_LDFLAGS = lib.optionalString x11Support "-lX11 -lXext ";
preConfigure = lib.optionalString swiftSupport ''
# Ensure we reference 'lib' (not 'out') of Swift.
export SWIFT_LIB_DYNAMIC=${lib.getLib swift.swift}/lib/swift/macosx
'';
mesonFlags = [ mesonFlags = [
(lib.mesonOption "default_library" "shared") (lib.mesonOption "default_library" "shared")
(lib.mesonBool "libmpv" true) (lib.mesonBool "libmpv" true)
@ -167,7 +172,8 @@ in stdenv.mkDerivation (self: {
++ lib.optionals zimgSupport [ zimg ] ++ lib.optionals zimgSupport [ zimg ]
++ lib.optionals stdenv.isLinux [ nv-codec-headers ] ++ lib.optionals stdenv.isLinux [ nv-codec-headers ]
++ lib.optionals stdenv.isDarwin [ libiconv ] ++ lib.optionals stdenv.isDarwin [ libiconv ]
++ lib.optionals stdenv.isDarwin [ CoreFoundation Cocoa CoreAudio MediaPlayer ]; ++ lib.optionals stdenv.isDarwin [ CoreFoundation Cocoa CoreAudio MediaPlayer ]
++ lib.optionals (stdenv.isDarwin && swiftSupport) [ AVFoundation CoreMedia ];
postBuild = lib.optionalString stdenv.isDarwin '' postBuild = lib.optionalString stdenv.isDarwin ''
pushd .. # Must be run from the source dir because it uses relative paths pushd .. # Must be run from the source dir because it uses relative paths

View File

@ -1,5 +1,6 @@
{ lib { lib
, stdenv , stdenv
, darwin
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, installShellFiles , installShellFiles
@ -31,7 +32,8 @@ buildGoModule rec {
''; '';
}; };
nativeBuildInputs = [ installShellFiles makeWrapper ]; nativeBuildInputs = [ installShellFiles makeWrapper ]
++ lib.optionals stdenv.isDarwin [ darwin.DarwinTools ];
vendorSha256 = "sha256-Iz1LYL25NpkztTM86zrLwehub8FzO1IlwZqCPW7wDN4="; vendorSha256 = "sha256-Iz1LYL25NpkztTM86zrLwehub8FzO1IlwZqCPW7wDN4=";
@ -42,8 +44,6 @@ buildGoModule rec {
-X github.com/abiosoft/colima/config.revision=$(cat .git-revision)" -X github.com/abiosoft/colima/config.revision=$(cat .git-revision)"
''; '';
subPackages = [ "cmd/colima" ];
postInstall = '' postInstall = ''
wrapProgram $out/bin/colima \ wrapProgram $out/bin/colima \
--prefix PATH : ${lib.makeBinPath [ lima-drv qemu ]} --prefix PATH : ${lib.makeBinPath [ lima-drv qemu ]}

View File

@ -11,7 +11,6 @@ args@
, fetchurl , fetchurl
, fontconfig , fontconfig
, freetype , freetype
, gcc
, gdk-pixbuf , gdk-pixbuf
, glib , glib
, glibc , glibc
@ -22,13 +21,13 @@ args@
, perl , perl
, python3 , python3
, requireFile , requireFile
, stdenv , backendStdenv # E.g. gcc11Stdenv, set in extension.nix
, unixODBC , unixODBC
, xorg , xorg
, zlib , zlib
}: }:
stdenv.mkDerivation rec { backendStdenv.mkDerivation rec {
pname = "cudatoolkit"; pname = "cudatoolkit";
inherit version runPatches; inherit version runPatches;
@ -146,14 +145,23 @@ stdenv.mkDerivation rec {
# Fix builds with newer glibc version # Fix builds with newer glibc version
sed -i "1 i#define _BITS_FLOATN_H" "$out/include/host_defines.h" sed -i "1 i#define _BITS_FLOATN_H" "$out/include/host_defines.h"
'' +
# Ensure that cmake can find CUDA. # Point NVCC at a compatible compiler
# FIXME: redist cuda_nvcc copy-pastes this code
# Refer to comments in the overrides for cuda_nvcc for explanation
# CUDA_TOOLKIT_ROOT_DIR is legacy,
# Cf. https://cmake.org/cmake/help/latest/module/FindCUDA.html#input-variables
''
mkdir -p $out/nix-support mkdir -p $out/nix-support
echo "cmakeFlags+=' -DCUDA_TOOLKIT_ROOT_DIR=$out'" >> $out/nix-support/setup-hook cat <<EOF >> $out/nix-support/setup-hook
cmakeFlags+=' -DCUDA_TOOLKIT_ROOT_DIR=$out'
# Set the host compiler to be used by nvcc for CMake-based projects: cmakeFlags+=' -DCUDA_HOST_COMPILER=${backendStdenv.cc}/bin'
# https://cmake.org/cmake/help/latest/module/FindCUDA.html#input-variables cmakeFlags+=' -DCMAKE_CUDA_HOST_COMPILER=${backendStdenv.cc}/bin'
echo "cmakeFlags+=' -DCUDA_HOST_COMPILER=${gcc}/bin'" >> $out/nix-support/setup-hook if [ -z "\''${CUDAHOSTCXX-}" ]; then
export CUDAHOSTCXX=${backendStdenv.cc}/bin;
fi
export NVCC_PREPEND_FLAGS+=' --compiler-bindir=${backendStdenv.cc}/bin'
EOF
# Move some libraries to the lib output so that programs that # Move some libraries to the lib output so that programs that
# depend on them don't pull in this entire monstrosity. # depend on them don't pull in this entire monstrosity.
@ -167,10 +175,6 @@ stdenv.mkDerivation rec {
mv $out/extras/CUPTI/lib64/libcupti* $out/lib mv $out/extras/CUPTI/lib64/libcupti* $out/lib
''} ''}
# Set compiler for NVCC.
wrapProgram $out/bin/nvcc \
--prefix PATH : ${gcc}/bin
# nvprof do not find any program to profile if LD_LIBRARY_PATH is not set # nvprof do not find any program to profile if LD_LIBRARY_PATH is not set
wrapProgram $out/bin/nvprof \ wrapProgram $out/bin/nvprof \
--prefix LD_LIBRARY_PATH : $out/lib --prefix LD_LIBRARY_PATH : $out/lib
@ -191,7 +195,14 @@ stdenv.mkDerivation rec {
preFixup = preFixup =
let rpath = lib.concatStringsSep ":" [ let rpath = lib.concatStringsSep ":" [
(lib.makeLibraryPath (runtimeDependencies ++ [ "$lib" "$out" "$out/nvvm" ])) (lib.makeLibraryPath (runtimeDependencies ++ [ "$lib" "$out" "$out/nvvm" ]))
"${stdenv.cc.cc.lib}/lib64"
# The path to libstdc++ and such
#
# `backendStdenv` is the cuda-compatible toolchain that we pick in
# extension.nix; we hand it to NVCC to use as a back-end, and we link
# cudatoolkit's binaries against its libstdc++
"${backendStdenv.cc.cc.lib}/lib64"
"$out/jre/lib/amd64/jli" "$out/jre/lib/amd64/jli"
"$out/lib64" "$out/lib64"
"$out/nvvm/lib64" "$out/nvvm/lib64"
@ -260,7 +271,7 @@ stdenv.mkDerivation rec {
popd popd
''; '';
passthru = { passthru = {
cc = gcc; inherit (backendStdenv) cc;
majorMinorVersion = lib.versions.majorMinor version; majorMinorVersion = lib.versions.majorMinor version;
majorVersion = lib.versions.majorMinor version; majorVersion = lib.versions.majorMinor version;
}; };

View File

@ -7,11 +7,29 @@ final: prev: let
# Version info for the classic cudatoolkit packages that contain everything that is in redist. # Version info for the classic cudatoolkit packages that contain everything that is in redist.
cudatoolkitVersions = final.lib.importTOML ./versions.toml; cudatoolkitVersions = final.lib.importTOML ./versions.toml;
finalVersion = cudatoolkitVersions.${final.cudaVersion};
# Exposed as cudaPackages.backendStdenv.
# We don't call it just "stdenv" to avoid confusion: e.g. this toolchain doesn't contain nvcc.
# Instead, it's the back-end toolchain for nvcc to use.
# We also use this to link a compatible libstdc++ (backendStdenv.cc.cc.lib)
# Cf. https://github.com/NixOS/nixpkgs/pull/218265 for context
backendStdenv = prev.pkgs."${finalVersion.gcc}Stdenv";
### Add classic cudatoolkit package ### Add classic cudatoolkit package
cudatoolkit = buildCudaToolkitPackage ((attrs: attrs // { gcc = prev.pkgs.${attrs.gcc}; }) cudatoolkitVersions.${final.cudaVersion}); cudatoolkit =
let
attrs = builtins.removeAttrs finalVersion [ "gcc" ];
attrs' = attrs // { inherit backendStdenv; };
in
buildCudaToolkitPackage attrs';
cudaFlags = final.callPackage ./flags.nix {}; cudaFlags = final.callPackage ./flags.nix {};
in { in
inherit cudatoolkit cudaFlags; {
inherit
backendStdenv
cudatoolkit
cudaFlags;
} }

View File

@ -1,6 +1,6 @@
{ config { config
, lib , lib
, cudatoolkit , cudaVersion
}: }:
# Type aliases # Type aliases
@ -13,14 +13,21 @@
let let
inherit (lib) attrsets lists strings trivial versions; inherit (lib) attrsets lists strings trivial versions;
cudaVersion = cudatoolkit.version;
# Flags are determined based on your CUDA toolkit by default. You may benefit # Flags are determined based on your CUDA toolkit by default. You may benefit
# from improved performance, reduced file size, or greater hardware suppport by # from improved performance, reduced file size, or greater hardware suppport by
# passing a configuration based on your specific GPU environment. # passing a configuration based on your specific GPU environment.
# #
# config.cudaCapabilities: list of hardware generations to support (e.g., "8.0") # config.cudaCapabilities :: List Capability
# config.cudaForwardCompat: bool for compatibility with future GPU generations # List of hardware generations to build.
# E.g. [ "8.0" ]
# Currently, the last item is considered the optional forward-compatibility arch,
# but this may change in the future.
#
# config.cudaForwardCompat :: Bool
# Whether to include the forward compatibility gencode (+PTX)
# to support future GPU generations.
# E.g. true
# #
# Please see the accompanying documentation or https://github.com/NixOS/nixpkgs/pull/205351 # Please see the accompanying documentation or https://github.com/NixOS/nixpkgs/pull/205351
@ -40,6 +47,9 @@ let
# GPUs which are supported by the provided CUDA version. # GPUs which are supported by the provided CUDA version.
supportedGpus = builtins.filter isSupported gpus; supportedGpus = builtins.filter isSupported gpus;
# supportedCapabilities :: List Capability
supportedCapabilities = lists.map (gpu: gpu.computeCapability) supportedGpus;
# cudaArchNameToVersions :: AttrSet String (List String) # cudaArchNameToVersions :: AttrSet String (List String)
# Maps the name of a GPU architecture to different versions of that architecture. # Maps the name of a GPU architecture to different versions of that architecture.
# For example, "Ampere" maps to [ "8.0" "8.6" "8.7" ]. # For example, "Ampere" maps to [ "8.0" "8.6" "8.7" ].
@ -50,12 +60,6 @@ let
(gpu: gpu.archName) (gpu: gpu.archName)
supportedGpus; supportedGpus;
# cudaArchNames :: List String
# NOTE: It's important that we don't rely on builtins.attrNames cudaArchNameToVersions here;
# otherwise, we'll get the names sorted in alphabetical order. The JSON array we read them
# from is already sorted, so we'll preserve that order here.
cudaArchNames = lists.unique (lists.map (gpu: gpu.archName) supportedGpus);
# cudaComputeCapabilityToName :: AttrSet String String # cudaComputeCapabilityToName :: AttrSet String String
# Maps the version of a GPU architecture to the name of that architecture. # Maps the version of a GPU architecture to the name of that architecture.
# For example, "8.0" maps to "Ampere". # For example, "8.0" maps to "Ampere".
@ -68,23 +72,6 @@ let
supportedGpus supportedGpus
); );
# cudaComputeCapabilities :: List String
# NOTE: It's important that we don't rely on builtins.attrNames cudaComputeCapabilityToName here;
# otherwise, we'll get the versions sorted in alphabetical order. The JSON array we read them
# from is already sorted, so we'll preserve that order here.
# Use the user-provided list of CUDA capabilities if it's provided.
cudaComputeCapabilities = config.cudaCapabilities
or (lists.map (gpu: gpu.computeCapability) supportedGpus);
# cudaForwardComputeCapability :: String
cudaForwardComputeCapability = (lists.last cudaComputeCapabilities) + "+PTX";
# cudaComputeCapabilitiesAndForward :: List String
# The list of supported CUDA architectures, including the forward compatibility architecture.
# If forward compatibility is disabled, this will be the same as cudaComputeCapabilities.
cudaComputeCapabilitiesAndForward = cudaComputeCapabilities
++ lists.optional (config.cudaForwardCompat or true) cudaForwardComputeCapability;
# dropDot :: String -> String # dropDot :: String -> String
dropDot = ver: builtins.replaceStrings [ "." ] [ "" ] ver; dropDot = ver: builtins.replaceStrings [ "." ] [ "" ] ver;
@ -102,38 +89,68 @@ let
"-gencode=arch=compute_${dropDot computeCapability},code=${feat}_${dropDot computeCapability}" "-gencode=arch=compute_${dropDot computeCapability},code=${feat}_${dropDot computeCapability}"
); );
# cudaRealArches :: List String formatCapabilities = { cudaCapabilities, enableForwardCompat ? true }: rec {
# The real architectures are physical architectures supported by the CUDA version. inherit cudaCapabilities enableForwardCompat;
# For example, "sm_80".
cudaRealArches = archMapper "sm" cudaComputeCapabilities;
# cudaVirtualArches :: List String # archNames :: List String
# The virtual architectures are typically used for forward compatibility, when trying to support # E.g. [ "Turing" "Ampere" ]
# an architecture newer than the CUDA version allows. archNames = lists.unique (builtins.map (cap: cudaComputeCapabilityToName.${cap}) cudaCapabilities);
# For example, "compute_80".
cudaVirtualArches = archMapper "compute" cudaComputeCapabilities;
# cudaArches :: List String # realArches :: List String
# By default, build for all supported architectures and forward compatibility via a virtual # The real architectures are physical architectures supported by the CUDA version.
# architecture for the newest supported architecture. # E.g. [ "sm_75" "sm_86" ]
cudaArches = cudaRealArches ++ realArches = archMapper "sm" cudaCapabilities;
lists.optional (config.cudaForwardCompat or true) (lists.last cudaVirtualArches);
# cudaGencode :: List String # virtualArches :: List String
# A list of CUDA gencode arguments to pass to NVCC. # The virtual architectures are typically used for forward compatibility, when trying to support
cudaGencode = # an architecture newer than the CUDA version allows.
let # E.g. [ "compute_75" "compute_86" ]
base = gencodeMapper "sm" cudaComputeCapabilities; virtualArches = archMapper "compute" cudaCapabilities;
forwardCompat = gencodeMapper "compute" [ (lists.last cudaComputeCapabilities) ];
in # arches :: List String
base ++ lists.optionals (config.cudaForwardCompat or true) forwardCompat; # By default, build for all supported architectures and forward compatibility via a virtual
# architecture for the newest supported architecture.
# E.g. [ "sm_75" "sm_86" "compute_86" ]
arches = realArches ++
lists.optional enableForwardCompat (lists.last virtualArches);
# gencode :: List String
# A list of CUDA gencode arguments to pass to NVCC.
# E.g. [ "-gencode=arch=compute_75,code=sm_75" ... "-gencode=arch=compute_86,code=compute_86" ]
gencode =
let
base = gencodeMapper "sm" cudaCapabilities;
forward = gencodeMapper "compute" [ (lists.last cudaCapabilities) ];
in
base ++ lib.optionals enableForwardCompat forward;
};
in in
# When changing names or formats: pause, validate, and update the assert
assert (formatCapabilities { cudaCapabilities = [ "7.5" "8.6" ]; }) == {
cudaCapabilities = [ "7.5" "8.6" ];
enableForwardCompat = true;
archNames = [ "Turing" "Ampere" ];
realArches = [ "sm_75" "sm_86" ];
virtualArches = [ "compute_75" "compute_86" ];
arches = [ "sm_75" "sm_86" "compute_86" ];
gencode = [ "-gencode=arch=compute_75,code=sm_75" "-gencode=arch=compute_86,code=sm_86" "-gencode=arch=compute_86,code=compute_86" ];
};
{ {
inherit # formatCapabilities :: { cudaCapabilities: List Capability, cudaForwardCompat: Boolean } -> { ... }
cudaArchNames inherit formatCapabilities;
cudaArchNameToVersions cudaComputeCapabilityToName
cudaRealArches cudaVirtualArches cudaArches # cudaArchNameToVersions :: String => String
cudaGencode; inherit cudaArchNameToVersions;
cudaCapabilities = cudaComputeCapabilitiesAndForward;
# cudaComputeCapabilityToName :: String => String
inherit cudaComputeCapabilityToName;
# dropDot :: String -> String
inherit dropDot;
} // formatCapabilities {
cudaCapabilities = config.cudaCapabilities or supportedCapabilities;
enableForwardCompat = config.cudaForwardCompat or true;
} }

View File

@ -1,5 +1,5 @@
{ lib { lib
, stdenv , backendStdenv
, fetchurl , fetchurl
, autoPatchelfHook , autoPatchelfHook
, autoAddOpenGLRunpathHook , autoAddOpenGLRunpathHook
@ -10,7 +10,8 @@ attrs:
let let
arch = "linux-x86_64"; arch = "linux-x86_64";
in stdenv.mkDerivation { in
backendStdenv.mkDerivation {
inherit pname; inherit pname;
inherit (attrs) version; inherit (attrs) version;
@ -29,7 +30,11 @@ in stdenv.mkDerivation {
]; ];
buildInputs = [ buildInputs = [
stdenv.cc.cc.lib # autoPatchelfHook will search for a libstdc++ and we're giving it a
# "compatible" libstdc++ from the same toolchain that NVCC uses.
#
# NB: We don't actually know if this is the right thing to do
backendStdenv.cc.cc.lib
]; ];
dontBuild = true; dontBuild = true;
@ -43,6 +48,8 @@ in stdenv.mkDerivation {
runHook postInstall runHook postInstall
''; '';
passthru.stdenv = backendStdenv;
meta = { meta = {
description = attrs.name; description = attrs.name;
license = lib.licenses.unfree; license = lib.licenses.unfree;

View File

@ -1,6 +1,8 @@
final: prev: let final: prev:
let
inherit (prev) lib pkgs; inherit (prev) lib pkgs;
in (lib.filterAttrs (attr: _: (prev ? "${attr}")) { in
(lib.filterAttrs (attr: _: (prev ? "${attr}")) {
### Overrides to fix the components of cudatoolkit-redist ### Overrides to fix the components of cudatoolkit-redist
# Attributes that don't exist in the previous set are removed. # Attributes that don't exist in the previous set are removed.
@ -20,6 +22,38 @@ in (lib.filterAttrs (attr: _: (prev ? "${attr}")) {
prev.libcublas prev.libcublas
]; ];
cuda_nvcc = prev.cuda_nvcc.overrideAttrs (oldAttrs:
let
inherit (prev.backendStdenv) cc;
in
{
# Point NVCC at a compatible compiler
# FIXME: non-redist cudatoolkit copy-pastes this code
# For CMake-based projects:
# https://cmake.org/cmake/help/latest/module/FindCUDA.html#input-variables
# https://cmake.org/cmake/help/latest/envvar/CUDAHOSTCXX.html
# https://cmake.org/cmake/help/latest/variable/CMAKE_CUDA_HOST_COMPILER.html
# For non-CMake projects:
# We prepend --compiler-bindir to nvcc flags.
# Downstream packages can override these, because NVCC
# uses the last --compiler-bindir it gets on the command line.
# FIXME: this results in "incompatible redefinition" warnings.
# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#compiler-bindir-directory-ccbin
postInstall = (oldAttrs.postInstall or "") + ''
mkdir -p $out/nix-support
cat <<EOF >> $out/nix-support/setup-hook
cmakeFlags+=' -DCUDA_HOST_COMPILER=${cc}/bin'
cmakeFlags+=' -DCMAKE_CUDA_HOST_COMPILER=${cc}/bin'
if [ -z "\''${CUDAHOSTCXX-}" ]; then
export CUDAHOSTCXX=${cc}/bin;
fi
export NVCC_PREPEND_FLAGS+=' --compiler-bindir=${cc}/bin'
EOF
'';
});
cuda_nvprof = prev.cuda_nvprof.overrideAttrs (oldAttrs: { cuda_nvprof = prev.cuda_nvprof.overrideAttrs (oldAttrs: {
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ pkgs.addOpenGLRunpath ]; nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ pkgs.addOpenGLRunpath ];
buildInputs = oldAttrs.buildInputs ++ [ prev.cuda_cupti ]; buildInputs = oldAttrs.buildInputs ++ [ prev.cuda_cupti ];

View File

@ -76,8 +76,4 @@ gcc = "gcc11"
version = "12.0.1" version = "12.0.1"
url = "https://developer.download.nvidia.com/compute/cuda/12.0.1/local_installers/cuda_12.0.1_525.85.12_linux.run" url = "https://developer.download.nvidia.com/compute/cuda/12.0.1/local_installers/cuda_12.0.1_525.85.12_linux.run"
sha256 = "sha256-GyBaBicvFGP0dydv2rkD8/ZmkXwGjlIHOAAeacehh1s=" sha256 = "sha256-GyBaBicvFGP0dydv2rkD8/ZmkXwGjlIHOAAeacehh1s="
# CUDA 12 is compatible with gcc12, but nixpkgs default gcc is still on gcc11 as gcc = "gcc12"
# of 2023-01-08. See https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements.
# This should be upgraded to gcc12 once nixpkgs default gcc is upgraded. Other
# CUDA versions should likely have their gcc versions upgraded as well.
gcc = "gcc11"

View File

@ -11,6 +11,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "zig"; pname = "zig";
version = "0.10.1"; version = "0.10.1";
outputs = [ "out" "doc" ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ziglang"; owner = "ziglang";
@ -52,7 +53,17 @@ stdenv.mkDerivation rec {
"-DZIG_TARGET_MCPU=baseline" "-DZIG_TARGET_MCPU=baseline"
]; ];
postBuild = ''
./zig2 build-exe ../doc/docgen.zig
./docgen ./zig2 ../doc/langref.html.in ./langref.html
'';
doCheck = true; doCheck = true;
postInstall = ''
install -Dm644 -t $doc/share/doc/$pname-$version/html ./langref.html
'';
installCheckPhase = '' installCheckPhase = ''
$out/bin/zig test --cache-dir "$TMPDIR" -I $src/test $src/test/behavior.zig $out/bin/zig test --cache-dir "$TMPDIR" -I $src/test $src/test/behavior.zig
''; '';

View File

@ -112,13 +112,13 @@ stdenv.mkDerivation rec {
# NOTE: You must also bump: # NOTE: You must also bump:
# <nixpkgs/pkgs/development/python-modules/libvirt/default.nix> # <nixpkgs/pkgs/development/python-modules/libvirt/default.nix>
# SysVirt in <nixpkgs/pkgs/top-level/perl-packages.nix> # SysVirt in <nixpkgs/pkgs/top-level/perl-packages.nix>
version = "9.0.0"; version = "9.1.0";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-YnkgTl6C3QkvMBGm95JgWmWaP4mAECe9B0wwjOx94p8="; sha256 = "sha256-V39p0kg+zGdoIY9mJjtMLk2xzlTjHG0SPR2GjvHK9FI=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View File

@ -15,8 +15,8 @@
, enableContrib ? true , enableContrib ? true
, enableCuda ? (config.cudaSupport or false) && , enableCuda ? (config.cudaSupport or false) &&
stdenv.hostPlatform.isx86_64, cudatoolkit stdenv.hostPlatform.isx86_64
, cudaPackages ? { }
, enableUnfree ? false , enableUnfree ? false
, enableIpp ? false , enableIpp ? false
, enablePython ? false, pythonPackages ? null , enablePython ? false, pythonPackages ? null
@ -40,6 +40,9 @@ assert blas.implementation == "openblas" && lapack.implementation == "openblas";
assert enablePython -> pythonPackages != null; assert enablePython -> pythonPackages != null;
let let
inherit (cudaPackages) cudatoolkit;
inherit (cudaPackages.cudaFlags) cudaCapabilities;
version = "3.4.18"; version = "3.4.18";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -242,6 +245,8 @@ stdenv.mkDerivation {
"-DCUDA_FAST_MATH=ON" "-DCUDA_FAST_MATH=ON"
"-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc" "-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc"
"-DCUDA_NVCC_FLAGS=--expt-relaxed-constexpr" "-DCUDA_NVCC_FLAGS=--expt-relaxed-constexpr"
"-DCUDA_ARCH_BIN=${lib.concatStringsSep ";" cudaCapabilities}"
"-DCUDA_ARCH_PTX=${lib.last cudaCapabilities}"
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
"-DWITH_OPENCL=OFF" "-DWITH_OPENCL=OFF"
"-DWITH_LAPACK=OFF" "-DWITH_LAPACK=OFF"

View File

@ -37,7 +37,7 @@
, enableContrib ? true , enableContrib ? true
, enableCuda ? (config.cudaSupport or false) && stdenv.hostPlatform.isx86_64 , enableCuda ? (config.cudaSupport or false) && stdenv.hostPlatform.isx86_64
, cudatoolkit , cudaPackages ? { }
, nvidia-optical-flow-sdk , nvidia-optical-flow-sdk
, enableUnfree ? false , enableUnfree ? false
@ -79,6 +79,9 @@
}: }:
let let
inherit (cudaPackages) cudatoolkit;
inherit (cudaPackages.cudaFlags) cudaCapabilities;
version = "4.7.0"; version = "4.7.0";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -342,6 +345,14 @@ stdenv.mkDerivation {
"-DCUDA_FAST_MATH=ON" "-DCUDA_FAST_MATH=ON"
"-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc" "-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc"
"-DCUDA_NVCC_FLAGS=--expt-relaxed-constexpr" "-DCUDA_NVCC_FLAGS=--expt-relaxed-constexpr"
# OpenCV respects at least three variables:
# -DCUDA_GENERATION takes a single arch name, e.g. Volta
# -DCUDA_ARCH_BIN takes a semi-colon separated list of real arches, e.g. "8.0;8.6"
# -DCUDA_ARCH_PTX takes the virtual arch, e.g. "8.6"
"-DCUDA_ARCH_BIN=${lib.concatStringsSep ";" cudaCapabilities}"
"-DCUDA_ARCH_PTX=${lib.last cudaCapabilities}"
"-DNVIDIA_OPTICAL_FLOW_2_0_HEADERS_PATH=${nvidia-optical-flow-sdk}" "-DNVIDIA_OPTICAL_FLOW_2_0_HEADERS_PATH=${nvidia-optical-flow-sdk}"
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
"-DWITH_OPENCL=OFF" "-DWITH_OPENCL=OFF"

View File

@ -1,11 +1,11 @@
{ {
stdenv, backendStdenv,
lib, lib,
zlib, zlib,
useCudatoolkitRunfile ? false, useCudatoolkitRunfile ? false,
cudaVersion, cudaVersion,
cudaMajorVersion, cudaMajorVersion,
cudatoolkit, # if cuda>=11: only used for .cc cudatoolkit, # For cuda < 11
libcublas ? null, # cuda <11 doesn't ship redist packages libcublas ? null, # cuda <11 doesn't ship redist packages
autoPatchelfHook, autoPatchelfHook,
autoAddOpenGLRunpathHook, autoAddOpenGLRunpathHook,
@ -26,7 +26,7 @@
maxCudaVersion, maxCudaVersion,
}: }:
assert useCudatoolkitRunfile || (libcublas != null); let assert useCudatoolkitRunfile || (libcublas != null); let
inherit (cudatoolkit) cc; inherit (backendStdenv) cc;
inherit (lib) lists strings trivial versions; inherit (lib) lists strings trivial versions;
# majorMinorPatch :: String -> String # majorMinorPatch :: String -> String
@ -46,7 +46,7 @@ assert useCudatoolkitRunfile || (libcublas != null); let
then cudatoolkit then cudatoolkit
else libcublas; else libcublas;
in in
stdenv.mkDerivation { backendStdenv.mkDerivation {
pname = "cudatoolkit-${cudaMajorVersion}-cudnn"; pname = "cudatoolkit-${cudaMajorVersion}-cudnn";
version = versionTriple; version = versionTriple;

View File

@ -8,10 +8,16 @@
{ blas { blas
, cmake , cmake
, cudaPackages , cudaPackages
# FIXME: cuda being unfree means ofborg won't eval "magma".
# respecting config.cudaSupport -> false by default
# -> ofborg eval -> throws "no GPU targets specified".
# Probably should delete everything but "magma-cuda" and "magma-hip"
# from all-packages.nix
, cudaSupport ? true , cudaSupport ? true
, fetchurl , fetchurl
, gfortran , gfortran
, gpuTargets ? [ ] , cudaCapabilities ? cudaPackages.cudaFlags.cudaCapabilities
, gpuTargets ? [ ] # Non-CUDA targets, that is HIP
, hip , hip
, hipblas , hipblas
, hipsparse , hipsparse
@ -36,14 +42,8 @@ let
# of the first list *from* the second list. That means: # of the first list *from* the second list. That means:
# lists.subtractLists a b = b - a # lists.subtractLists a b = b - a
# For CUDA
supportedCudaSmArches = lists.intersectLists cudaFlags.cudaRealArches supportedGpuTargets;
# Subtract the supported SM architectures from the real SM architectures to get the unsupported
# SM architectures.
unsupportedCudaSmArches = lists.subtractLists supportedCudaSmArches cudaFlags.cudaRealArches;
# For ROCm # For ROCm
# NOTE: The hip.gpuTargets are prefixed with "gfx" instead of "sm" like cudaFlags.cudaRealArches. # NOTE: The hip.gpuTargets are prefixed with "gfx" instead of "sm" like cudaFlags.realArches.
# For some reason, Magma's CMakeLists.txt file does not handle the "gfx" prefix, so we must # For some reason, Magma's CMakeLists.txt file does not handle the "gfx" prefix, so we must
# remove it. # remove it.
rocmArches = lists.map (x: strings.removePrefix "gfx" x) hip.gpuTargets; rocmArches = lists.map (x: strings.removePrefix "gfx" x) hip.gpuTargets;
@ -62,19 +62,32 @@ let
) )
supported; supported;
# Create the gpuTargetString.
gpuTargetString = strings.concatStringsSep "," ( gpuTargetString = strings.concatStringsSep "," (
if gpuTargets != [ ] then if gpuTargets != [ ] then
# If gpuTargets is specified, it always takes priority. # If gpuTargets is specified, it always takes priority.
gpuArchWarner supportedCustomGpuTargets unsupportedCustomGpuTargets gpuArchWarner supportedCustomGpuTargets unsupportedCustomGpuTargets
else if cudaSupport then
gpuArchWarner supportedCudaSmArches unsupportedCudaSmArches
else if rocmSupport then else if rocmSupport then
gpuArchWarner supportedRocmArches unsupportedRocmArches gpuArchWarner supportedRocmArches unsupportedRocmArches
else if cudaSupport then
[ ] # It's important we pass explicit -DGPU_TARGET to reset magma's defaults
else else
throw "No GPU targets specified" throw "No GPU targets specified"
); );
# E.g. [ "80" "86" "90" ]
cudaArchitectures = (builtins.map cudaFlags.dropDot cudaCapabilities);
cudaArchitecturesString = strings.concatStringsSep ";" cudaArchitectures;
minArch =
let
minArch' = builtins.head (builtins.sort builtins.lessThan cudaArchitectures);
in
# If this fails some day, something must've changed and we should re-validate our assumptions
assert builtins.stringLength minArch' == 2;
# "75" -> "750" Cf. https://bitbucket.org/icl/magma/src/f4ec79e2c13a2347eff8a77a3be6f83bc2daec20/CMakeLists.txt#lines-273
"${minArch'}0";
cuda_joined = symlinkJoin { cuda_joined = symlinkJoin {
name = "cuda-redist-${cudaVersion}"; name = "cuda-redist-${cudaVersion}";
paths = with cudaPackages; [ paths = with cudaPackages; [
@ -87,6 +100,8 @@ let
}; };
in in
assert (builtins.match "[^[:space:]]*" gpuTargetString) != null;
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "magma"; pname = "magma";
inherit version; inherit version;
@ -116,7 +131,11 @@ stdenv.mkDerivation {
openmp openmp
]; ];
cmakeFlags = lists.optionals cudaSupport [ cmakeFlags = [
"-DGPU_TARGET=${gpuTargetString}"
] ++ lists.optionals cudaSupport [
"-DCMAKE_CUDA_ARCHITECTURES=${cudaArchitecturesString}"
"-DMIN_ARCH=${minArch}" # Disarms magma's asserts
"-DCMAKE_C_COMPILER=${cudatoolkit.cc}/bin/cc" "-DCMAKE_C_COMPILER=${cudatoolkit.cc}/bin/cc"
"-DCMAKE_CXX_COMPILER=${cudatoolkit.cc}/bin/c++" "-DCMAKE_CXX_COMPILER=${cudatoolkit.cc}/bin/c++"
"-DMAGMA_ENABLE_CUDA=ON" "-DMAGMA_ENABLE_CUDA=ON"
@ -126,14 +145,10 @@ stdenv.mkDerivation {
"-DMAGMA_ENABLE_HIP=ON" "-DMAGMA_ENABLE_HIP=ON"
]; ];
# NOTE: We must set GPU_TARGET in preConfigure in this way because it may contain spaces.
preConfigure = ''
cmakeFlagsArray+=("-DGPU_TARGET=${gpuTargetString}")
''
# NOTE: The stdenv's CXX is used when compiling the CMake test to determine the version of # NOTE: The stdenv's CXX is used when compiling the CMake test to determine the version of
# CUDA available. This isn't necessarily the same as cudatoolkit.cc, so we must set # CUDA available. This isn't necessarily the same as cudatoolkit.cc, so we must set
# CUDAHOSTCXX. # CUDAHOSTCXX.
+ strings.optionalString cudaSupport '' preConfigure = strings.optionalString cudaSupport ''
export CUDAHOSTCXX=${cudatoolkit.cc}/bin/c++ export CUDAHOSTCXX=${cudatoolkit.cc}/bin/c++
''; '';

View File

@ -1,27 +1,13 @@
# NOTE: Order matters! Put the oldest version first, and the newest version last. # NOTE: Order matters! Put the oldest version first, and the newest version last.
# NOTE: Make sure the supportedGpuTargets are in order of oldest to newest. # NOTE: Make sure the supportedGpuTargets are in order of oldest to newest.
# You can update the supportedGpuTargets by looking at the CMakeLists.txt file. # You can update the supportedGpuTargets by looking at the CMakeLists.txt file.
# CUDA starts here: https://bitbucket.org/icl/magma/src/f4ec79e2c13a2347eff8a77a3be6f83bc2daec20/CMakeLists.txt#lines-175
# HIP is here: https://bitbucket.org/icl/magma/src/f4ec79e2c13a2347eff8a77a3be6f83bc2daec20/CMakeLists.txt#lines-386 # HIP is here: https://bitbucket.org/icl/magma/src/f4ec79e2c13a2347eff8a77a3be6f83bc2daec20/CMakeLists.txt#lines-386
# CUDA works around magma's wrappers and uses FindCUDAToolkit directly
[ [
{ {
version = "2.6.2"; version = "2.6.2";
hash = "sha256-dbVU2rAJA+LRC5cskT5Q5/iMvGLzrkMrWghsfk7aCnE="; hash = "sha256-dbVU2rAJA+LRC5cskT5Q5/iMvGLzrkMrWghsfk7aCnE=";
supportedGpuTargets = [ supportedGpuTargets = [
"sm_20"
"sm_30"
"sm_35"
"sm_37"
"sm_50"
"sm_52"
"sm_53"
"sm_60"
"sm_61"
"sm_62"
"sm_70"
"sm_71"
"sm_75"
"sm_80"
"700" "700"
"701" "701"
"702" "702"
@ -53,21 +39,6 @@
version = "2.7.1"; version = "2.7.1";
hash = "sha256-2chxHAR6OMrhbv3nS+4uszMyF/0nEeHpuGBsu7SuGlA="; hash = "sha256-2chxHAR6OMrhbv3nS+4uszMyF/0nEeHpuGBsu7SuGlA=";
supportedGpuTargets = [ supportedGpuTargets = [
"sm_20"
"sm_30"
"sm_35"
"sm_37"
"sm_50"
"sm_52"
"sm_53"
"sm_60"
"sm_61"
"sm_62"
"sm_70"
"sm_71"
"sm_75"
"sm_80"
"sm_90"
"700" "700"
"701" "701"
"702" "702"

View File

@ -1,11 +1,19 @@
{ lib, stdenv, fetchFromGitHub, which, cudaPackages, addOpenGLRunpath }: { lib
, backendStdenv
, fetchFromGitHub
, which
, cudaPackages ? { }
, addOpenGLRunpath
}:
with cudaPackages;
let let
inherit (cudaPackages) cudatoolkit; # Output looks like "-gencode=arch=compute_86,code=sm_86 -gencode=arch=compute_86,code=compute_86"
gencode = lib.concatStringsSep " " cudaFlags.gencode;
in in
backendStdenv.mkDerivation rec {
stdenv.mkDerivation rec { name = "nccl-${version}-cuda-${cudaPackages.cudaMajorVersion}";
name = "nccl-${version}-cuda-${cudatoolkit.majorVersion}";
version = "2.16.5-1"; version = "2.16.5-1";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -17,16 +25,29 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
nativeBuildInputs = [ which addOpenGLRunpath ]; nativeBuildInputs = [
which
addOpenGLRunpath
cuda_nvcc
];
buildInputs = [ cudatoolkit ]; buildInputs = [
cuda_cudart
] ++ lib.optionals (lib.versionAtLeast cudaVersion "12.0.0") [
cuda_cccl
];
preConfigure = '' preConfigure = ''
patchShebangs src/collectives/device/gen_rules.sh patchShebangs src/collectives/device/gen_rules.sh
makeFlagsArray+=(
"NVCC_GENCODE=${gencode}"
)
''; '';
makeFlags = [ makeFlags = [
"CUDA_HOME=${cudatoolkit}" "CUDA_HOME=${cuda_nvcc}"
"CUDA_LIB=${cuda_cudart}/lib64"
"CUDA_INC=${cuda_cudart}/include"
"PREFIX=$(out)" "PREFIX=$(out)"
]; ];

View File

@ -1,5 +1,5 @@
{ lib { lib
, stdenv , backendStdenv
, requireFile , requireFile
, autoPatchelfHook , autoPatchelfHook
, autoAddOpenGLRunpathHook , autoAddOpenGLRunpathHook
@ -18,7 +18,7 @@
assert lib.assertMsg (lib.strings.versionAtLeast cudnn.version fileVersionCudnn) assert lib.assertMsg (lib.strings.versionAtLeast cudnn.version fileVersionCudnn)
"This version of TensorRT requires at least cuDNN ${fileVersionCudnn} (current version is ${cudnn.version})"; "This version of TensorRT requires at least cuDNN ${fileVersionCudnn} (current version is ${cudnn.version})";
stdenv.mkDerivation rec { backendStdenv.mkDerivation rec {
pname = "cudatoolkit-${cudatoolkit.majorVersion}-tensorrt"; pname = "cudatoolkit-${cudatoolkit.majorVersion}-tensorrt";
version = fullVersion; version = fullVersion;
src = requireFile rec { src = requireFile rec {
@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
# Used by autoPatchelfHook # Used by autoPatchelfHook
buildInputs = [ buildInputs = [
cudatoolkit.cc.cc.lib # libstdc++ backendStdenv.cc.cc.lib # libstdc++
cudatoolkit cudatoolkit
cudnn cudnn
]; ];
@ -74,6 +74,8 @@ stdenv.mkDerivation rec {
"$out/lib/libnvinfer_builder_resource.so.${mostOfVersion}" "$out/lib/libnvinfer_builder_resource.so.${mostOfVersion}"
''; '';
passthru.stdenv = backendStdenv;
meta = with lib; { meta = with lib; {
# Check that the cudatoolkit version satisfies our min/max constraints (both # Check that the cudatoolkit version satisfies our min/max constraints (both
# inclusive). We mark the package as broken if it fails to satisfies the # inclusive). We mark the package as broken if it fails to satisfies the

View File

@ -0,0 +1,61 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, python3
, enableModTool ? true
, removeReferencesTo
, fetchpatch
}:
stdenv.mkDerivation rec {
pname = "volk";
# Version 2.5.1 seems to cause a build issue for aarch64-darwin, see:
# https://github.com/NixOS/nixpkgs/pull/160152#issuecomment-1043380478A
version = "2.5.0";
src = fetchFromGitHub {
owner = "gnuradio";
repo = pname;
rev = "v${version}";
sha256 = "sha256-kI4IuO6TLplo5lLAGIPWQWtePcjIEWB9XaJDA6WlqSg=";
fetchSubmodules = true;
};
patches = [
(fetchpatch {
url = "https://raw.githubusercontent.com/macports/macports-ports/e83a55ef196d4283be438c052295b2fc44f3df5b/science/volk/files/patch-cpu_features-add-support-for-ARM64.diff";
sha256 = "sha256-MNUntVvKZC4zuQsxGQCItaUaaQ1d31re2qjyPFbySmI=";
extraPrefix = "";
})
];
cmakeFlags = lib.optionals (!enableModTool) [
"-DENABLE_MODTOOL=OFF"
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
# offset 14335 in1: -1.03372 in2: -1.03371 tolerance was: 1e-05
# volk_32f_log2_32f: fail on arch neon
"-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;qa_volk_32f_log2_32f"
];
postInstall = lib.optionalString (!stdenv.isDarwin) ''
${removeReferencesTo}/bin/remove-references-to -t ${stdenv.cc} $(readlink -f $out/lib/libvolk.so)
'';
nativeBuildInputs = [
cmake
python3
python3.pkgs.Mako
];
doCheck = true;
meta = with lib; {
homepage = "http://libvolk.org/";
description = "The Vector Optimized Library of Kernels";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ doronbehar ];
platforms = platforms.all;
};
}

View File

@ -1,41 +1,34 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, cmake , cmake
, python3 , python3
, enableModTool ? true , enableModTool ? true
, removeReferencesTo , removeReferencesTo
, fetchpatch
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "volk"; pname = "volk";
# Version 2.5.1 seems to cause a build issue for aarch64-darwin, see: version = "3.0.0";
# https://github.com/NixOS/nixpkgs/pull/160152#issuecomment-1043380478A
version = "2.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gnuradio"; owner = "gnuradio";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "XvX6emv30bSB29EFm6aC+j8NGOxWqHCNv0Hxtdrq/jc="; hash = "sha256-kI4IuO6TLplo5lLAGIPWQWtePcjIEWB9XaJDA6WlqSg=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
patches = [ patches = [
# Remove a failing test
(fetchpatch { (fetchpatch {
url = "https://raw.githubusercontent.com/macports/macports-ports/e83a55ef196d4283be438c052295b2fc44f3df5b/science/volk/files/patch-cpu_features-add-support-for-ARM64.diff"; url = "https://github.com/gnuradio/volk/commit/fe2e4a73480bf2ac2e566052ea682817dddaf61f.patch";
sha256 = "sha256-MNUntVvKZC4zuQsxGQCItaUaaQ1d31re2qjyPFbySmI="; hash = "sha256-Vko/Plk7u6UAr32lieU+T9G34Dkg9EW3Noi/NArpRL4=";
extraPrefix = "";
}) })
]; ];
cmakeFlags = lib.optionals (!enableModTool) [ cmakeFlags = lib.optionals (!enableModTool) [
"-DENABLE_MODTOOL=OFF" "-DENABLE_MODTOOL=OFF"
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
# offset 14335 in1: -1.03372 in2: -1.03371 tolerance was: 1e-05
# volk_32f_log2_32f: fail on arch neon
"-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;qa_volk_32f_log2_32f"
]; ];
postInstall = lib.optionalString (!stdenv.isDarwin) '' postInstall = lib.optionalString (!stdenv.isDarwin) ''

View File

@ -560,7 +560,30 @@ buildLuarocksPackage {
}; };
}) {}; }) {};
http = callPackage({ fetchzip, lua, fifo, luaossl, lpeg_patterns, lpeg, basexx, buildLuarocksPackage, cqueues, bit32, binaryheap, luaOlder, compat53 }: haskell-tools-nvim = callPackage({ plenary-nvim, fetchzip, lua, luaOlder, buildLuarocksPackage }:
buildLuarocksPackage {
pname = "haskell-tools.nvim";
version = "1.9.1-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/haskell-tools.nvim-1.9.1-1.rockspec";
sha256 = "1m7fasn5iz9hv9l1ycsjiaah14i1s5nssvqq9sypbwcpc9slj93b";
}).outPath;
src = fetchzip {
url = "https://github.com/mrcjkb/haskell-tools.nvim/archive/1.9.1.zip";
sha256 = "0m425ipfvbb1f1m2wmz8qg57b901vspvvpckxr380crbwl3dflpr";
};
disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua plenary-nvim ];
meta = {
homepage = "https://github.com/mrcjkb/haskell-tools.nvim";
description = "Supercharge your Haskell experience in neovim!";
license.fullName = "GPL-2.0";
};
}) {};
http = callPackage({ luaossl, lpeg_patterns, lpeg, binaryheap, compat53, cqueues, bit32, basexx, fetchzip, lua, fifo, luaOlder, buildLuarocksPackage }:
buildLuarocksPackage { buildLuarocksPackage {
pname = "http"; pname = "http";
version = "0.3-0"; version = "0.3-0";
@ -2853,7 +2876,61 @@ buildLuarocksPackage {
}; };
}) {}; }) {};
tl = callPackage({ compat53, buildLuarocksPackage, argparse, luafilesystem, fetchgit }: telescope-manix = callPackage({ telescope-nvim, buildLuarocksPackage, lua, fetchzip, luaOlder }:
buildLuarocksPackage {
pname = "telescope-manix";
version = "0.4.0-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/telescope-manix-0.4.0-1.rockspec";
sha256 = "1kh3dn4aixydxrq01sbl40v7if8bmpsvv30qf7vig7dvl21aqkrp";
}).outPath;
src = fetchzip {
url = "https://github.com/mrcjkb/telescope-manix/archive/0.4.0.zip";
sha256 = "153fqnk8iymyq309kpfiz3xmlqryj02rji3z7air23bgyjkx0gr8";
};
disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua telescope-nvim ];
meta = {
homepage = "https://github.com/mrcjkb/telescope-manix";
description = "A telescope.nvim extension for Manix - A fast documentation searcher for Nix";
license.fullName = "GPL-2.0";
};
}) {};
telescope-nvim = callPackage({ plenary-nvim, buildLuarocksPackage, lua, fetchgit }:
buildLuarocksPackage {
pname = "telescope.nvim";
version = "scm-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/telescope.nvim-scm-1.rockspec";
sha256 = "07mjkv1nv9b3ifxk2bbpbhvp0awblyklyz6aaqw418x4gm4q1g35";
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/nvim-telescope/telescope.nvim",
"rev": "a3f17d3baf70df58b9d3544ea30abe52a7a832c2",
"date": "2023-02-26T13:26:12+01:00",
"path": "/nix/store/qyzs7im9nqn04h9w9nii4nv12ysgk1fk-telescope.nvim",
"sha256": "136pik53kwl2avjdakwfls10d85jqybl7yd0mbzxc5nry8krav22",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
"leaveDotGit": false
}
'') ["date" "path"]) ;
disabled = (lua.luaversion != "5.1");
propagatedBuildInputs = [ lua plenary-nvim ];
meta = {
homepage = "https://github.com/nvim-telescope/telescope.nvim";
description = "Find, Filter, Preview, Pick. All lua, all the time.";
license.fullName = "MIT";
};
}) {};
tl = callPackage({ compat53, luafilesystem, argparse, buildLuarocksPackage, fetchgit }:
buildLuarocksPackage { buildLuarocksPackage {
pname = "tl"; pname = "tl";
version = "0.15.1-1"; version = "0.15.1-1";

View File

@ -8,7 +8,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "caio"; pname = "caio";
version = "0.9.11"; version = "0.9.12";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -17,7 +17,7 @@ buildPythonPackage rec {
owner = "mosquito"; owner = "mosquito";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-BFlpjbC2yxwGtCAMfn1VM5zmioyN5fFNMJDDWceB+LE="; hash = "sha256-uMq/3yWP9OwaVxixGAFCLMsDPoJhmIuG0I7hO7AnIOk=";
}; };
nativeCheckInputs = [ nativeCheckInputs = [

View File

@ -13,6 +13,7 @@
, pytest-xdist , pytest-xdist
, pytestCheckHook , pytestCheckHook
, requests , requests
, llvmPackages
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -30,12 +31,6 @@ buildPythonPackage rec {
}; };
patches = [ patches = [
# Hard code GDB path (used to attach to process)
(substituteAll {
src = ./hardcode-gdb.patch;
inherit gdb;
})
# Use nixpkgs version instead of versioneer # Use nixpkgs version instead of versioneer
(substituteAll { (substituteAll {
src = ./hardcode-version.patch; src = ./hardcode-version.patch;
@ -51,6 +46,18 @@ buildPythonPackage rec {
# To avoid this issue, debugpy should be installed using python.withPackages: # To avoid this issue, debugpy should be installed using python.withPackages:
# python.withPackages (ps: with ps; [ debugpy ]) # python.withPackages (ps: with ps; [ debugpy ])
./fix-test-pythonpath.patch ./fix-test-pythonpath.patch
] ++ lib.optionals stdenv.isLinux [
# Hard code GDB path (used to attach to process)
(substituteAll {
src = ./hardcode-gdb.patch;
inherit gdb;
})
] ++ lib.optionals stdenv.isDarwin [
# Hard code LLDB path (used to attach to process)
(substituteAll {
src = ./hardcode-lldb.patch;
inherit (llvmPackages) lldb;
})
]; ];
# Remove pre-compiled "attach" libraries and recompile for host platform # Remove pre-compiled "attach" libraries and recompile for host platform

View File

@ -0,0 +1,13 @@
diff --git a/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py b/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py
index ed43e370..b28ab453 100644
--- a/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py
+++ b/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py
@@ -494,7 +494,7 @@ def run_python_code_mac(pid, python_code, connect_debugger_tracing=False, show_d
is_debug = 0
# Note that the space in the beginning of each line in the multi-line is important!
cmd = [
- 'lldb',
+ '@lldb@/bin/lldb',
'--no-lldbinit', # Do not automatically parse any '.lldbinit' files.
# '--attach-pid',
# str(pid),

View File

@ -14,14 +14,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-cloud-iot"; pname = "google-cloud-iot";
version = "2.8.1"; version = "2.9.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-Rh23HbHv1FVmiZtyofv0bktv7tZWN3IS5jQawzbFfRk="; hash = "sha256-mr14CDo+M01ZRfNLerFNeikExmIcV0j17zX/Xn8JT80=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -164,7 +164,7 @@ let
build --action_env TF_CUDA_PATHS="${cudatoolkit_joined},${cudnn},${nccl}" build --action_env TF_CUDA_PATHS="${cudatoolkit_joined},${cudnn},${nccl}"
build --action_env TF_CUDA_VERSION="${lib.versions.majorMinor cudatoolkit.version}" build --action_env TF_CUDA_VERSION="${lib.versions.majorMinor cudatoolkit.version}"
build --action_env TF_CUDNN_VERSION="${lib.versions.major cudnn.version}" build --action_env TF_CUDNN_VERSION="${lib.versions.major cudnn.version}"
build:cuda --action_env TF_CUDA_COMPUTE_CAPABILITIES="${builtins.concatStringsSep "," cudaFlags.cudaRealArches}" build:cuda --action_env TF_CUDA_COMPUTE_CAPABILITIES="${builtins.concatStringsSep "," cudaFlags.realArches}"
'' + '' '' + ''
CFG CFG
''; '';

View File

@ -2,13 +2,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "libvirt"; pname = "libvirt";
version = "9.0.0"; version = "9.1.0";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "libvirt"; owner = "libvirt";
repo = "libvirt-python"; repo = "libvirt-python";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-/u6sctXn4Jmn2bUl1FjjrKpHReaTg+O9LprKXx3OAyU="; hash = "sha256-kdWmgmkvI7yaqyFytPnHN6OtF+gsRe58q6AlXFycfQ8=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];

View File

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "screenlogicpy"; pname = "screenlogicpy";
version = "0.7.2"; version = "0.8.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "dieselrabbit"; owner = "dieselrabbit";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-0yQ0upLkx5oroEH9BvIOfM5bgmVJw8o83IeAao5ncVs="; hash = "sha256-VZ2WZpty7PXxU0uqJ/dftUNBW3QEIXrLghKxsW9lsgE=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -17,7 +17,9 @@
# that in nix as well. It would make some things easier and less confusing, but # that in nix as well. It would make some things easier and less confusing, but
# it would also make the default tensorflow package unfree. See # it would also make the default tensorflow package unfree. See
# https://groups.google.com/a/tensorflow.org/forum/#!topic/developers/iRCt5m4qUz0 # https://groups.google.com/a/tensorflow.org/forum/#!topic/developers/iRCt5m4qUz0
, cudaSupport ? false, cudaPackages ? {} , cudaSupport ? false
, cudaPackages ? { }
, cudaCapabilities ? cudaPackages.cudaFlags.cudaCapabilities
, mklSupport ? false, mkl , mklSupport ? false, mkl
, tensorboardSupport ? true , tensorboardSupport ? true
# XLA without CUDA is broken # XLA without CUDA is broken
@ -30,7 +32,27 @@
}: }:
let let
inherit (cudaPackages) cudatoolkit cudaFlags cudnn nccl; originalStdenv = stdenv;
in
let
# Tensorflow looks at many toolchain-related variables which may diverge.
#
# Toolchain for cuda-enabled builds.
# We want to achieve two things:
# 1. NVCC should use a compatible back-end (e.g. gcc11 for cuda11)
# 2. Normal C++ files should be compiled with the same toolchain,
# to avoid potential weird dynamic linkage errors at runtime.
# This may not be necessary though
#
# Toolchain for Darwin:
# clang 7 fails to emit a symbol for
# __ZN4llvm11SmallPtrSetIPKNS_10AllocaInstELj8EED1Ev in any of the
# translation units, so the build fails at link time
stdenv =
if cudaSupport then cudaPackages.backendStdenv
else if originalStdenv.isDarwin then llvmPackages_11.stdenv
else originalStdenv;
inherit (cudaPackages) cudatoolkit cudnn nccl;
in in
assert cudaSupport -> cudatoolkit != null assert cudaSupport -> cudatoolkit != null
@ -42,6 +64,7 @@ assert ! (stdenv.isDarwin && cudaSupport);
let let
withTensorboard = (pythonOlder "3.6") || tensorboardSupport; withTensorboard = (pythonOlder "3.6") || tensorboardSupport;
# FIXME: migrate to redist cudaPackages
cudatoolkit_joined = symlinkJoin { cudatoolkit_joined = symlinkJoin {
name = "${cudatoolkit.name}-merged"; name = "${cudatoolkit.name}-merged";
paths = [ paths = [
@ -54,10 +77,13 @@ let
]; ];
}; };
# Tensorflow expects bintools at hard-coded paths, e.g. /usr/bin/ar
# The only way to overcome that is to set GCC_HOST_COMPILER_PREFIX,
# but that path must contain cc as well, so we merge them
cudatoolkit_cc_joined = symlinkJoin { cudatoolkit_cc_joined = symlinkJoin {
name = "${cudatoolkit.cc.name}-merged"; name = "${stdenv.cc.name}-merged";
paths = [ paths = [
cudatoolkit.cc stdenv.cc
binutils.bintools # for ar, dwp, nm, objcopy, objdump, strip binutils.bintools # for ar, dwp, nm, objcopy, objdump, strip
]; ];
}; };
@ -173,12 +199,7 @@ let
''; '';
}) else _bazel-build; }) else _bazel-build;
_bazel-build = (buildBazelPackage.override (lib.optionalAttrs stdenv.isDarwin { _bazel-build = buildBazelPackage.override { inherit stdenv; } {
# clang 7 fails to emit a symbol for
# __ZN4llvm11SmallPtrSetIPKNS_10AllocaInstELj8EED1Ev in any of the
# translation units, so the build fails at link time
stdenv = llvmPackages_11.stdenv;
})) {
name = "${pname}-${version}"; name = "${pname}-${version}";
bazel = bazel_5; bazel = bazel_5;
@ -209,12 +230,13 @@ let
flatbuffers-core flatbuffers-core
giflib giflib
grpc grpc
icu # Necessary to fix the "`GLIBCXX_3.4.30' not found" error
(icu.override { inherit stdenv; })
jsoncpp jsoncpp
libjpeg_turbo libjpeg_turbo
libpng libpng
lmdb-core lmdb-core
pybind11 (pybind11.overridePythonAttrs (_: { inherit stdenv; }))
snappy snappy
sqlite sqlite
] ++ lib.optionals cudaSupport [ ] ++ lib.optionals cudaSupport [
@ -299,9 +321,11 @@ let
TF_NEED_CUDA = tfFeature cudaSupport; TF_NEED_CUDA = tfFeature cudaSupport;
TF_CUDA_PATHS = lib.optionalString cudaSupport "${cudatoolkit_joined},${cudnn},${nccl}"; TF_CUDA_PATHS = lib.optionalString cudaSupport "${cudatoolkit_joined},${cudnn},${nccl}";
TF_CUDA_COMPUTE_CAPABILITIES = lib.concatStringsSep "," cudaCapabilities;
# Needed even when we override stdenv: e.g. for ar
GCC_HOST_COMPILER_PREFIX = lib.optionalString cudaSupport "${cudatoolkit_cc_joined}/bin"; GCC_HOST_COMPILER_PREFIX = lib.optionalString cudaSupport "${cudatoolkit_cc_joined}/bin";
GCC_HOST_COMPILER_PATH = lib.optionalString cudaSupport "${cudatoolkit_cc_joined}/bin/gcc"; GCC_HOST_COMPILER_PATH = lib.optionalString cudaSupport "${cudatoolkit_cc_joined}/bin/cc";
TF_CUDA_COMPUTE_CAPABILITIES = builtins.concatStringsSep "," cudaFlags.cudaRealArches;
postPatch = '' postPatch = ''
# bazel 3.3 should work just as well as bazel 3.1 # bazel 3.3 should work just as well as bazel 3.1

View File

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "tplink-omada-client"; pname = "tplink-omada-client";
version = "1.1.0"; version = "1.1.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "tplink_omada_client"; pname = "tplink_omada_client";
inherit version; inherit version;
hash = "sha256-p58W6PIYdimJz8Cdzv/rr8GRW1wLcb0jnhNxkbuQiBo="; hash = "sha256-Fg1rhTS9aP7C1URDfoC3w1w1IduToxYUtwTLDM3916U=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -38,6 +38,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Library for the TP-Link Omada SDN Controller API"; description = "Library for the TP-Link Omada SDN Controller API";
homepage = "https://github.com/MarkGodwin/tplink-omada-api"; homepage = "https://github.com/MarkGodwin/tplink-omada-api";
changelog = "https://github.com/MarkGodwin/tplink-omada-api/releases/tag/release%2Fv${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub, testers, ginkgo }:
buildGoModule rec { buildGoModule rec {
pname = "ginkgo"; pname = "ginkgo";
@ -16,6 +16,13 @@ buildGoModule rec {
# types tests are missing CodeLocation # types tests are missing CodeLocation
excludedPackages = [ "integration" "types" ]; excludedPackages = [ "integration" "types" ];
__darwinAllowLocalNetworking = true;
passthru.tests.version = testers.testVersion {
package = ginkgo;
command = "ginkgo version";
};
meta = with lib; { meta = with lib; {
homepage = "https://onsi.github.io/ginkgo/"; homepage = "https://onsi.github.io/ginkgo/";
changelog = "https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md"; changelog = "https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md";

View File

@ -33,19 +33,19 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ddnet"; pname = "ddnet";
version = "16.7.2"; version = "16.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ddnet"; owner = "ddnet";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-dK46ubcq/sYSXLeZwAeomj9+jpSNpgHsTmXKdrllLTc="; hash = "sha256-QhRJJQ87WMsf2yTac2lDRj7B+mTaw2r+RProUr+3zoo=";
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
name = "${pname}-${version}"; name = "${pname}-${version}";
inherit src; inherit src;
hash = "sha256-jLR/XriiKXmpHGBHtPa1vpE5ms3Dw1wrNt/4KARyM74="; hash = "sha256-36Afg0Tsf1/dGhZhd5tbxjMX4dKHqGEhIXS4Lal/rXI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -82,15 +82,6 @@ stdenv.mkDerivation rec {
spirv-tools spirv-tools
] ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa OpenGL Security ]; ] ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa OpenGL Security ];
patches = [
(fetchpatch {
# error: use of undeclared identifier 'pthread_attr_set_qos_class_np'
# https://github.com/ddnet/ddnet/pull/5913
url = "https://github.com/ddnet/ddnet/pull/5913/commits/ccc6cd59de58905dce3a3bd5d8461a03b1adb249.patch";
hash = "sha256-CkHckE+bOMKDcoijNYDo+zEQ9Eq9ePDV18LybzCMPYs=";
})
];
postPatch = '' postPatch = ''
substituteInPlace src/engine/shared/storage.cpp \ substituteInPlace src/engine/shared/storage.cpp \
--replace /usr/ $out/ --replace /usr/ $out/

View File

@ -19,13 +19,13 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "grapejuice"; pname = "grapejuice";
version = "7.2.1"; version = "7.8.3";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "BrinkerVII"; owner = "BrinkerVII";
repo = "grapejuice"; repo = "grapejuice";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-bx0jqG03GSHj1lO9NRh8DJRUyJBbyVUKCy/2pZ3OWas="; sha256 = "sha256-jNh3L6JDuJryFpHQaP8UesBmepmJopoHxb/XUfOwZz4=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -1,5 +1,7 @@
{ fetchurl { lib
, stdenv
, python , python
, fetchurl
, anki , anki
}: }:
@ -29,18 +31,16 @@ python.pkgs.buildPythonApplication rec {
]; ];
prePatch = '' prePatch = ''
substituteInPlace setup.py --replace /usr $out substituteInPlace setup.py \
find . -type f -exec grep -H sys.exec_prefix {} ';' | cut -d: -f1 | xargs sed -i s,sys.exec_prefix,\"$out\", --replace '("", ["/usr/local/bin/mplayer"])' ""
''; '';
# No tests/ directrory in tarball # No tests/ directory in tarball
doCheck = false; doCheck = false;
postInstall = '' postInstall = ''
mkdir -p $out/share/applications mkdir -p $out/share/applications
mv $out/${python.sitePackages}/$out/share/locale $out/share
mv mnemosyne.desktop $out/share/applications mv mnemosyne.desktop $out/share/applications
rm -r $out/${python.sitePackages}/nix
''; '';
dontWrapQtApps = true; dontWrapQtApps = true;

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub { lib, backendStdenv, fetchFromGitHub
, cmake, addOpenGLRunpath , cmake, addOpenGLRunpath
, cudatoolkit , cudatoolkit
, cutensor , cutensor
@ -35,13 +35,13 @@ let
in in
{ {
cublas = stdenv.mkDerivation (commonAttrs // { cublas = backendStdenv.mkDerivation (commonAttrs // {
pname = "cuda-library-samples-cublas"; pname = "cuda-library-samples-cublas";
src = "${src}/cuBLASLt"; src = "${src}/cuBLASLt";
}); });
cusolver = stdenv.mkDerivation (commonAttrs // { cusolver = backendStdenv.mkDerivation (commonAttrs // {
pname = "cuda-library-samples-cusolver"; pname = "cuda-library-samples-cusolver";
src = "${src}/cuSOLVER"; src = "${src}/cuSOLVER";
@ -49,7 +49,7 @@ in
sourceRoot = "cuSOLVER/gesv"; sourceRoot = "cuSOLVER/gesv";
}); });
cutensor = stdenv.mkDerivation (commonAttrs // { cutensor = backendStdenv.mkDerivation (commonAttrs // {
pname = "cuda-library-samples-cutensor"; pname = "cuda-library-samples-cutensor";
src = "${src}/cuTENSOR"; src = "${src}/cuTENSOR";

View File

@ -0,0 +1,57 @@
{ lib
, python3Packages
, fetchFromGitHub
, libwnck
, gtk3
, libnotify
, wrapGAppsHook
, gobject-introspection
, substituteAll
}:
python3Packages.buildPythonPackage rec {
pname = "xborders";
version = "3.4"; # in version.txt
src = fetchFromGitHub {
owner = "deter0";
repo = "xborder";
rev = "e74ae532b9555c59d195537934fa355b3fea73c5";
hash = "sha256-UKsseNkXest6npPqJKvKL0iBWeK+S7zynrDlyXIOmF4=";
};
buildInputs = [
libwnck
gtk3
libnotify
];
nativeBuildInputs = [
wrapGAppsHook
gobject-introspection
];
propagatedBuildInputs = with python3Packages; [
pycairo
requests
pygobject3
];
postPatch = let
setup = substituteAll {
src = ./setup.py;
desc = meta.description; # "description" is reserved
inherit pname version;
};
in ''
ln -s ${setup} setup.py
'';
meta = with lib; {
description = "Active window border replacement for window managers";
homepage = "https://github.com/deter0/xborder";
license = licenses.unlicense;
maintainers = with maintainers; [ elnudev ];
platforms = platforms.linux;
};
}

View File

@ -0,0 +1,12 @@
from setuptools import setup
setup(
name='@pname@',
version='@version@',
author='deter0',
description='@desc@',
install_requires=['pycairo', 'requests', 'PyGObject'],
scripts=[
'xborders',
],
)

View File

@ -4,6 +4,7 @@
, cmake , cmake
, qtbase , qtbase
, qttools , qttools
, qtwayland
, wrapQtAppsHook , wrapQtAppsHook
, gitUpdater , gitUpdater
}: }:
@ -35,7 +36,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake wrapQtAppsHook ]; nativeBuildInputs = [ cmake wrapQtAppsHook ];
buildInputs = [ qtbase qttools ]; buildInputs = [ qtbase qttools ]
++ lib.optionals stdenv.isLinux [ qtwayland ];
passthru.updateScript = gitUpdater { }; passthru.updateScript = gitUpdater { };

View File

@ -10,16 +10,16 @@ let
in in
buildGoModule rec { buildGoModule rec {
pname = "ntfy-sh"; pname = "ntfy-sh";
version = "2.1.1"; version = "2.1.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "binwiederhier"; owner = "binwiederhier";
repo = "ntfy"; repo = "ntfy";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-XjSPlaKYkUbiQQQHc/Sm6jWl9oJwOotZBzP6OBmrZLk="; sha256 = "sha256-pBwlFkkXDgPhGfn2bhwuJTGQz+O0ADhPUU2Fogl98zA=";
}; };
vendorSha256 = "sha256-an1OseJT+0StTGFfEXob42X2V+9xIaav5tJh4cjDJ0c="; vendorSha256 = "sha256-XePJaXD83731r5CJG1PHnpU6s+443yq8mrqx7ZPU8Gs=";
doCheck = false; doCheck = false;

View File

@ -1642,67 +1642,67 @@ let
sha512 = "Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A=="; sha512 = "Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==";
}; };
}; };
"@mui/base-5.0.0-alpha.118" = { "@mui/base-5.0.0-alpha.119" = {
name = "_at_mui_slash_base"; name = "_at_mui_slash_base";
packageName = "@mui/base"; packageName = "@mui/base";
version = "5.0.0-alpha.118"; version = "5.0.0-alpha.119";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.118.tgz"; url = "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.119.tgz";
sha512 = "GAEpqhnuHjRaAZLdxFNuOf2GDTp9sUawM46oHZV4VnYPFjXJDkIYFWfIQLONb0nga92OiqS5DD/scGzVKCL0Mw=="; sha512 = "XA5zhlYfXi67u613eIF0xRmktkatx6ERy3h+PwrMN5IcWFbgiL1guz8VpdXON+GWb8+G7B8t5oqTFIaCqaSAeA==";
}; };
}; };
"@mui/core-downloads-tracker-5.11.9" = { "@mui/core-downloads-tracker-5.11.11" = {
name = "_at_mui_slash_core-downloads-tracker"; name = "_at_mui_slash_core-downloads-tracker";
packageName = "@mui/core-downloads-tracker"; packageName = "@mui/core-downloads-tracker";
version = "5.11.9"; version = "5.11.11";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.11.9.tgz"; url = "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.11.11.tgz";
sha512 = "YGEtucQ/Nl91VZkzYaLad47Cdui51n/hW+OQm4210g4N3/nZzBxmGeKfubEalf+ShKH4aYDS86XTO6q/TpZnjQ=="; sha512 = "0YK0K9GfW1ysw9z4ztWAjLW+bktf+nExMyn2+EQe1Ijb0kF2kz1kIOmb4+di0/PsXG70uCuw4DhEIdNd+JQkRA==";
}; };
}; };
"@mui/icons-material-5.11.9" = { "@mui/icons-material-5.11.11" = {
name = "_at_mui_slash_icons-material"; name = "_at_mui_slash_icons-material";
packageName = "@mui/icons-material"; packageName = "@mui/icons-material";
version = "5.11.9"; version = "5.11.11";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.11.9.tgz"; url = "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.11.11.tgz";
sha512 = "SPANMk6K757Q1x48nCwPGdSNb8B71d+2hPMJ0V12VWerpSsbjZtvAPi5FAn13l2O5mwWkvI0Kne+0tCgnNxMNw=="; sha512 = "Eell3ADmQVE8HOpt/LZ3zIma8JSvPh3XgnhwZLT0k5HRqZcd6F/QDHc7xsWtgz09t+UEFvOYJXjtrwKmLdwwpw==";
}; };
}; };
"@mui/material-5.11.10" = { "@mui/material-5.11.11" = {
name = "_at_mui_slash_material"; name = "_at_mui_slash_material";
packageName = "@mui/material"; packageName = "@mui/material";
version = "5.11.10"; version = "5.11.11";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@mui/material/-/material-5.11.10.tgz"; url = "https://registry.npmjs.org/@mui/material/-/material-5.11.11.tgz";
sha512 = "hs1WErbiedqlJIZsljgoil908x4NMp8Lfk8di+5c7o809roqKcFTg2+k3z5ucKvs29AXcsdXrDB/kn2K6dGYIw=="; sha512 = "sSe0dmKjB1IGOYt32Pcha+cXV3IIrX5L5mFAF9LDRssp/x53bluhgLLbkc8eTiJvueVvo6HAyze6EkFEYLQRXQ==";
}; };
}; };
"@mui/private-theming-5.11.9" = { "@mui/private-theming-5.11.11" = {
name = "_at_mui_slash_private-theming"; name = "_at_mui_slash_private-theming";
packageName = "@mui/private-theming"; packageName = "@mui/private-theming";
version = "5.11.9"; version = "5.11.11";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.11.9.tgz"; url = "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.11.11.tgz";
sha512 = "XMyVIFGomVCmCm92EvYlgq3zrC9K+J6r7IKl/rBJT2/xVYoRY6uM7jeB+Wxh7kXxnW9Dbqsr2yL3cx6wSD1sAg=="; sha512 = "yLgTkjNC1mpye2SOUkc+zQQczUpg8NvQAETvxwXTMzNgJK1pv4htL7IvBM5vmCKG7IHAB3hX26W2u6i7bxwF3A==";
}; };
}; };
"@mui/styled-engine-5.11.9" = { "@mui/styled-engine-5.11.11" = {
name = "_at_mui_slash_styled-engine"; name = "_at_mui_slash_styled-engine";
packageName = "@mui/styled-engine"; packageName = "@mui/styled-engine";
version = "5.11.9"; version = "5.11.11";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.11.9.tgz"; url = "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.11.11.tgz";
sha512 = "bkh2CjHKOMy98HyOc8wQXEZvhOmDa/bhxMUekFX5IG0/w4f5HJ8R6+K6nakUUYNEgjOWPYzNPrvGB8EcGbhahQ=="; sha512 = "wV0UgW4lN5FkDBXefN8eTYeuE9sjyQdg5h94vtwZCUamGQEzmCOtir4AakgmbWMy0x8OLjdEUESn9wnf5J9MOg==";
}; };
}; };
"@mui/system-5.11.9" = { "@mui/system-5.11.11" = {
name = "_at_mui_slash_system"; name = "_at_mui_slash_system";
packageName = "@mui/system"; packageName = "@mui/system";
version = "5.11.9"; version = "5.11.11";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@mui/system/-/system-5.11.9.tgz"; url = "https://registry.npmjs.org/@mui/system/-/system-5.11.11.tgz";
sha512 = "h6uarf+l3FO6l75Nf7yO+qDGrIoa1DM9nAMCUFZQsNCDKOInRzcptnm8M1w/Z3gVetfeeGoIGAYuYKbft6KZZA=="; sha512 = "a9gaOAJBjpzypDfhbGZQ8HzdcxdxsKkFvbp1aAWZhFHBPdehEkARNh7mj851VfEhD/GdffYt85PFKFKdUta5Eg==";
}; };
}; };
"@mui/types-7.2.3" = { "@mui/types-7.2.3" = {
@ -1714,13 +1714,13 @@ let
sha512 = "tZ+CQggbe9Ol7e/Fs5RcKwg/woU+o8DCtOnccX6KmbBc7YrfqMYEYuaIcXHuhpT880QwNkZZ3wQwvtlDFA2yOw=="; sha512 = "tZ+CQggbe9Ol7e/Fs5RcKwg/woU+o8DCtOnccX6KmbBc7YrfqMYEYuaIcXHuhpT880QwNkZZ3wQwvtlDFA2yOw==";
}; };
}; };
"@mui/utils-5.11.9" = { "@mui/utils-5.11.11" = {
name = "_at_mui_slash_utils"; name = "_at_mui_slash_utils";
packageName = "@mui/utils"; packageName = "@mui/utils";
version = "5.11.9"; version = "5.11.11";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@mui/utils/-/utils-5.11.9.tgz"; url = "https://registry.npmjs.org/@mui/utils/-/utils-5.11.11.tgz";
sha512 = "eOJaqzcEs4qEwolcvFAmXGpln+uvouvOS9FUX6Wkrte+4I8rZbjODOBDVNlK+V6/ziTfD4iNKC0G+KfOTApbqg=="; sha512 = "neMM5rrEXYQrOrlxUfns/TGgX4viS8K2zb9pbQh11/oUUYFlGI32Tn+PHePQx7n6Fy/0zq6WxdBFC9VpnJ5JrQ==";
}; };
}; };
"@nicolo-ribaudo/eslint-scope-5-internals-5.1.1-v1" = { "@nicolo-ribaudo/eslint-scope-5-internals-5.1.1-v1" = {
@ -1777,13 +1777,13 @@ let
sha512 = "50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw=="; sha512 = "50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==";
}; };
}; };
"@remix-run/router-1.3.2" = { "@remix-run/router-1.3.3" = {
name = "_at_remix-run_slash_router"; name = "_at_remix-run_slash_router";
packageName = "@remix-run/router"; packageName = "@remix-run/router";
version = "1.3.2"; version = "1.3.3";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@remix-run/router/-/router-1.3.2.tgz"; url = "https://registry.npmjs.org/@remix-run/router/-/router-1.3.3.tgz";
sha512 = "t54ONhl/h75X94SWsHGQ4G/ZrCEguKSRQr7DrjTciJXW0YU1QhlwYeycvK5JgkzlxmvrK7wq1NB/PLtHxoiDcA=="; sha512 = "YRHie1yQEj0kqqCTCJEfHqYSSNlZQ696QJG+MMiW4mxSl9I0ojz/eRhJS4fs88Z5i6D1SmoF9d3K99/QOhI8/w==";
}; };
}; };
"@rollup/plugin-babel-5.3.1" = { "@rollup/plugin-babel-5.3.1" = {
@ -2227,13 +2227,13 @@ let
sha512 = "Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA=="; sha512 = "Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==";
}; };
}; };
"@types/node-18.14.2" = { "@types/node-18.14.6" = {
name = "_at_types_slash_node"; name = "_at_types_slash_node";
packageName = "@types/node"; packageName = "@types/node";
version = "18.14.2"; version = "18.14.6";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@types/node/-/node-18.14.2.tgz"; url = "https://registry.npmjs.org/@types/node/-/node-18.14.6.tgz";
sha512 = "1uEQxww3DaghA0RxqHx0O0ppVlo43pJhepY51OxuQIKHpjbnYLA7vcdwioNPzIqmC2u3I/dmylcqjlh0e7AyUA=="; sha512 = "93+VvleD3mXwlLI/xASjw0FzKcwzl3OdTCzm1LaRfqgS21gfFtK3zDXM5Op9TeeMsJVOaJ2VRDpT9q4Y3d0AvA==";
}; };
}; };
"@types/parse-json-4.0.0" = { "@types/parse-json-4.0.0" = {
@ -2434,85 +2434,85 @@ let
sha512 = "iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA=="; sha512 = "iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==";
}; };
}; };
"@typescript-eslint/eslint-plugin-5.53.0" = { "@typescript-eslint/eslint-plugin-5.54.0" = {
name = "_at_typescript-eslint_slash_eslint-plugin"; name = "_at_typescript-eslint_slash_eslint-plugin";
packageName = "@typescript-eslint/eslint-plugin"; packageName = "@typescript-eslint/eslint-plugin";
version = "5.53.0"; version = "5.54.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.53.0.tgz"; url = "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.54.0.tgz";
sha512 = "alFpFWNucPLdUOySmXCJpzr6HKC3bu7XooShWM+3w/EL6J2HIoB2PFxpLnq4JauWVk6DiVeNKzQlFEaE+X9sGw=="; sha512 = "+hSN9BdSr629RF02d7mMtXhAJvDTyCbprNYJKrXETlul/Aml6YZwd90XioVbjejQeHbb3R8Dg0CkRgoJDxo8aw==";
}; };
}; };
"@typescript-eslint/experimental-utils-5.53.0" = { "@typescript-eslint/experimental-utils-5.54.0" = {
name = "_at_typescript-eslint_slash_experimental-utils"; name = "_at_typescript-eslint_slash_experimental-utils";
packageName = "@typescript-eslint/experimental-utils"; packageName = "@typescript-eslint/experimental-utils";
version = "5.53.0"; version = "5.54.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.53.0.tgz"; url = "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.54.0.tgz";
sha512 = "4SklZEwRn0jqkhtW+pPZpbKFXprwGneBndRM0TGzJu/LWdb9QV2hBgFIVU9AREo02BzqFvyG/ypd+xAW5YGhXw=="; sha512 = "rRYECOTh5V3iWsrOzXi7h1jp3Bi9OkJHrb3wECi3DVqMGTilo9wAYmCbT+6cGdrzUY3MWcAa2mESM6FMik6tVw==";
}; };
}; };
"@typescript-eslint/parser-5.53.0" = { "@typescript-eslint/parser-5.54.0" = {
name = "_at_typescript-eslint_slash_parser"; name = "_at_typescript-eslint_slash_parser";
packageName = "@typescript-eslint/parser"; packageName = "@typescript-eslint/parser";
version = "5.53.0"; version = "5.54.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.53.0.tgz"; url = "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.54.0.tgz";
sha512 = "MKBw9i0DLYlmdOb3Oq/526+al20AJZpANdT6Ct9ffxcV8nKCHz63t/S0IhlTFNsBIHJv+GY5SFJ0XfqVeydQrQ=="; sha512 = "aAVL3Mu2qTi+h/r04WI/5PfNWvO6pdhpeMRWk9R7rEV4mwJNzoWf5CCU5vDKBsPIFQFjEq1xg7XBI2rjiMXQbQ==";
}; };
}; };
"@typescript-eslint/scope-manager-5.53.0" = { "@typescript-eslint/scope-manager-5.54.0" = {
name = "_at_typescript-eslint_slash_scope-manager"; name = "_at_typescript-eslint_slash_scope-manager";
packageName = "@typescript-eslint/scope-manager"; packageName = "@typescript-eslint/scope-manager";
version = "5.53.0"; version = "5.54.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.53.0.tgz"; url = "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.54.0.tgz";
sha512 = "Opy3dqNsp/9kBBeCPhkCNR7fmdSQqA+47r21hr9a14Bx0xnkElEQmhoHga+VoaoQ6uDHjDKmQPIYcUcKJifS7w=="; sha512 = "VTPYNZ7vaWtYna9M4oD42zENOBrb+ZYyCNdFs949GcN8Miwn37b8b7eMj+EZaq7VK9fx0Jd+JhmkhjFhvnovhg==";
}; };
}; };
"@typescript-eslint/type-utils-5.53.0" = { "@typescript-eslint/type-utils-5.54.0" = {
name = "_at_typescript-eslint_slash_type-utils"; name = "_at_typescript-eslint_slash_type-utils";
packageName = "@typescript-eslint/type-utils"; packageName = "@typescript-eslint/type-utils";
version = "5.53.0"; version = "5.54.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.53.0.tgz"; url = "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.54.0.tgz";
sha512 = "HO2hh0fmtqNLzTAme/KnND5uFNwbsdYhCZghK2SoxGp3Ifn2emv+hi0PBUjzzSh0dstUIFqOj3bp0AwQlK4OWw=="; sha512 = "WI+WMJ8+oS+LyflqsD4nlXMsVdzTMYTxl16myXPaCXnSgc7LWwMsjxQFZCK/rVmTZ3FN71Ct78ehO9bRC7erYQ==";
}; };
}; };
"@typescript-eslint/types-5.53.0" = { "@typescript-eslint/types-5.54.0" = {
name = "_at_typescript-eslint_slash_types"; name = "_at_typescript-eslint_slash_types";
packageName = "@typescript-eslint/types"; packageName = "@typescript-eslint/types";
version = "5.53.0"; version = "5.54.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.53.0.tgz"; url = "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.54.0.tgz";
sha512 = "5kcDL9ZUIP756K6+QOAfPkigJmCPHcLN7Zjdz76lQWWDdzfOhZDTj1irs6gPBKiXx5/6O3L0+AvupAut3z7D2A=="; sha512 = "nExy+fDCBEgqblasfeE3aQ3NuafBUxZxgxXcYfzYRZFHdVvk5q60KhCSkG0noHgHRo/xQ/BOzURLZAafFpTkmQ==";
}; };
}; };
"@typescript-eslint/typescript-estree-5.53.0" = { "@typescript-eslint/typescript-estree-5.54.0" = {
name = "_at_typescript-eslint_slash_typescript-estree"; name = "_at_typescript-eslint_slash_typescript-estree";
packageName = "@typescript-eslint/typescript-estree"; packageName = "@typescript-eslint/typescript-estree";
version = "5.53.0"; version = "5.54.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.53.0.tgz"; url = "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.0.tgz";
sha512 = "eKmipH7QyScpHSkhbptBBYh9v8FxtngLquq292YTEQ1pxVs39yFBlLC1xeIZcPPz1RWGqb7YgERJRGkjw8ZV7w=="; sha512 = "X2rJG97Wj/VRo5YxJ8Qx26Zqf0RRKsVHd4sav8NElhbZzhpBI8jU54i6hfo9eheumj4oO4dcRN1B/zIVEqR/MQ==";
}; };
}; };
"@typescript-eslint/utils-5.53.0" = { "@typescript-eslint/utils-5.54.0" = {
name = "_at_typescript-eslint_slash_utils"; name = "_at_typescript-eslint_slash_utils";
packageName = "@typescript-eslint/utils"; packageName = "@typescript-eslint/utils";
version = "5.53.0"; version = "5.54.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.53.0.tgz"; url = "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.54.0.tgz";
sha512 = "VUOOtPv27UNWLxFwQK/8+7kvxVC+hPHNsJjzlJyotlaHjLSIgOCKj9I0DBUjwOOA64qjBwx5afAPjksqOxMO0g=="; sha512 = "cuwm8D/Z/7AuyAeJ+T0r4WZmlnlxQ8wt7C7fLpFlKMR+dY6QO79Cq1WpJhvZbMA4ZeZGHiRWnht7ZJ8qkdAunw==";
}; };
}; };
"@typescript-eslint/visitor-keys-5.53.0" = { "@typescript-eslint/visitor-keys-5.54.0" = {
name = "_at_typescript-eslint_slash_visitor-keys"; name = "_at_typescript-eslint_slash_visitor-keys";
packageName = "@typescript-eslint/visitor-keys"; packageName = "@typescript-eslint/visitor-keys";
version = "5.53.0"; version = "5.54.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.53.0.tgz"; url = "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.0.tgz";
sha512 = "JqNLnX3leaHFZEN0gCh81sIvgrp/2GOACZNgO4+Tkf64u51kTpAyWFOY8XHx8XuXr3N2C9zgPPHtcpMg6z1g0w=="; sha512 = "xu4wT7aRCakGINTLGeyGqDn+78BwFlggwBjnHa1ar/KaGagnmwLYmlrXIrgAaQ3AE1Vd6nLfKASm7LrFHNbKGA==";
}; };
}; };
"@webassemblyjs/ast-1.11.1" = { "@webassemblyjs/ast-1.11.1" = {
@ -3433,13 +3433,13 @@ let
sha512 = "bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw=="; sha512 = "bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==";
}; };
}; };
"caniuse-lite-1.0.30001458" = { "caniuse-lite-1.0.30001460" = {
name = "caniuse-lite"; name = "caniuse-lite";
packageName = "caniuse-lite"; packageName = "caniuse-lite";
version = "1.0.30001458"; version = "1.0.30001460";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001458.tgz"; url = "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001460.tgz";
sha512 = "lQ1VlUUq5q9ro9X+5gOEyH7i3vm+AYVT1WDCVB69XOZ17KZRhnZ9J0Sqz7wTHQaLBJccNCHq8/Ww5LlOIZbB0w=="; sha512 = "Bud7abqjvEjipUkpLs4D7gR0l8hBYBHoa+tGtKJHvT2AYzLp1z7EmVkUT4ERpVUfca8S2HGIVs883D8pUH1ZzQ==";
}; };
}; };
"case-sensitive-paths-webpack-plugin-2.4.0" = { "case-sensitive-paths-webpack-plugin-2.4.0" = {
@ -4513,13 +4513,13 @@ let
sha512 = "/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ=="; sha512 = "/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==";
}; };
}; };
"electron-to-chromium-1.4.311" = { "electron-to-chromium-1.4.320" = {
name = "electron-to-chromium"; name = "electron-to-chromium";
packageName = "electron-to-chromium"; packageName = "electron-to-chromium";
version = "1.4.311"; version = "1.4.320";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.311.tgz"; url = "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.320.tgz";
sha512 = "RoDlZufvrtr2Nx3Yx5MB8jX3aHIxm8nRWPJm3yVvyHmyKaRvn90RjzB6hNnt0AkhS3IInJdyRfQb4mWhPvUjVw=="; sha512 = "h70iRscrNluMZPVICXYl5SSB+rBKo22XfuIS1ER0OQxQZpKTnFpuS6coj7wY9M/3trv7OR88rRMOlKmRvDty7Q==";
}; };
}; };
"emittery-0.10.2" = { "emittery-0.10.2" = {
@ -4900,13 +4900,13 @@ let
sha512 = "eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="; sha512 = "eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==";
}; };
}; };
"esquery-1.4.2" = { "esquery-1.5.0" = {
name = "esquery"; name = "esquery";
packageName = "esquery"; packageName = "esquery";
version = "1.4.2"; version = "1.5.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/esquery/-/esquery-1.4.2.tgz"; url = "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz";
sha512 = "JVSoLdTlTDkmjFmab7H/9SL9qGSyjElT3myyKp7krqjVFQCDLmj1QFaCLRFBszBKI0XVZaiiXvuPIX3ZwHe1Ng=="; sha512 = "YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==";
}; };
}; };
"esrecurse-4.3.0" = { "esrecurse-4.3.0" = {
@ -5989,13 +5989,13 @@ let
sha512 = "8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA=="; sha512 = "8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==";
}; };
}; };
"is-array-buffer-3.0.1" = { "is-array-buffer-3.0.2" = {
name = "is-array-buffer"; name = "is-array-buffer";
packageName = "is-array-buffer"; packageName = "is-array-buffer";
version = "3.0.1"; version = "3.0.2";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz"; url = "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz";
sha512 = "ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ=="; sha512 = "y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==";
}; };
}; };
"is-arrayish-0.2.1" = { "is-arrayish-0.2.1" = {
@ -6952,13 +6952,13 @@ let
sha512 = "+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ=="; sha512 = "+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==";
}; };
}; };
"lilconfig-2.0.6" = { "lilconfig-2.1.0" = {
name = "lilconfig"; name = "lilconfig";
packageName = "lilconfig"; packageName = "lilconfig";
version = "2.0.6"; version = "2.1.0";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz"; url = "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz";
sha512 = "9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg=="; sha512 = "utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==";
}; };
}; };
"lines-and-columns-1.2.4" = { "lines-and-columns-1.2.4" = {
@ -8869,22 +8869,22 @@ let
sha512 = "F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A=="; sha512 = "F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==";
}; };
}; };
"react-router-6.8.1" = { "react-router-6.8.2" = {
name = "react-router"; name = "react-router";
packageName = "react-router"; packageName = "react-router";
version = "6.8.1"; version = "6.8.2";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/react-router/-/react-router-6.8.1.tgz"; url = "https://registry.npmjs.org/react-router/-/react-router-6.8.2.tgz";
sha512 = "Jgi8BzAJQ8MkPt8ipXnR73rnD7EmZ0HFFb7jdQU24TynGW1Ooqin2KVDN9voSC+7xhqbbCd2cjGUepb6RObnyg=="; sha512 = "lF7S0UmXI5Pd8bmHvMdPKI4u4S5McxmHnzJhrYi9ZQ6wE+DA8JN5BzVC5EEBuduWWDaiJ8u6YhVOCmThBli+rw==";
}; };
}; };
"react-router-dom-6.8.1" = { "react-router-dom-6.8.2" = {
name = "react-router-dom"; name = "react-router-dom";
packageName = "react-router-dom"; packageName = "react-router-dom";
version = "6.8.1"; version = "6.8.2";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.8.1.tgz"; url = "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.8.2.tgz";
sha512 = "67EXNfkQgf34P7+PSb6VlBuaacGhkKn3kpE51+P6zYSG2kiRoumXEL6e27zTa9+PGF2MNXbgIUHTVlleLbIcHQ=="; sha512 = "N/oAF1Shd7g4tWy+75IIufCGsHBqT74tnzHQhbiUTYILYF0Blk65cg+HPZqwC+6SqEyx033nKqU7by38v3lBZg==";
}; };
}; };
"react-scripts-5.0.1" = { "react-scripts-5.0.1" = {
@ -11295,23 +11295,23 @@ let
sources."@jridgewell/sourcemap-codec-1.4.14" sources."@jridgewell/sourcemap-codec-1.4.14"
sources."@jridgewell/trace-mapping-0.3.17" sources."@jridgewell/trace-mapping-0.3.17"
sources."@leichtgewicht/ip-codec-2.0.4" sources."@leichtgewicht/ip-codec-2.0.4"
(sources."@mui/base-5.0.0-alpha.118" // { (sources."@mui/base-5.0.0-alpha.119" // {
dependencies = [ dependencies = [
sources."react-is-18.2.0" sources."react-is-18.2.0"
]; ];
}) })
sources."@mui/core-downloads-tracker-5.11.9" sources."@mui/core-downloads-tracker-5.11.11"
sources."@mui/icons-material-5.11.9" sources."@mui/icons-material-5.11.11"
(sources."@mui/material-5.11.10" // { (sources."@mui/material-5.11.11" // {
dependencies = [ dependencies = [
sources."react-is-18.2.0" sources."react-is-18.2.0"
]; ];
}) })
sources."@mui/private-theming-5.11.9" sources."@mui/private-theming-5.11.11"
sources."@mui/styled-engine-5.11.9" sources."@mui/styled-engine-5.11.11"
sources."@mui/system-5.11.9" sources."@mui/system-5.11.11"
sources."@mui/types-7.2.3" sources."@mui/types-7.2.3"
(sources."@mui/utils-5.11.9" // { (sources."@mui/utils-5.11.11" // {
dependencies = [ dependencies = [
sources."react-is-18.2.0" sources."react-is-18.2.0"
]; ];
@ -11331,7 +11331,7 @@ let
]; ];
}) })
sources."@popperjs/core-2.11.6" sources."@popperjs/core-2.11.6"
sources."@remix-run/router-1.3.2" sources."@remix-run/router-1.3.3"
sources."@rollup/plugin-babel-5.3.1" sources."@rollup/plugin-babel-5.3.1"
sources."@rollup/plugin-node-resolve-11.2.1" sources."@rollup/plugin-node-resolve-11.2.1"
sources."@rollup/plugin-replace-2.4.2" sources."@rollup/plugin-replace-2.4.2"
@ -11383,7 +11383,7 @@ let
sources."@types/json-schema-7.0.11" sources."@types/json-schema-7.0.11"
sources."@types/json5-0.0.29" sources."@types/json5-0.0.29"
sources."@types/mime-3.0.1" sources."@types/mime-3.0.1"
sources."@types/node-18.14.2" sources."@types/node-18.14.6"
sources."@types/parse-json-4.0.0" sources."@types/parse-json-4.0.0"
sources."@types/prettier-2.7.2" sources."@types/prettier-2.7.2"
sources."@types/prop-types-15.7.5" sources."@types/prop-types-15.7.5"
@ -11405,20 +11405,20 @@ let
sources."@types/ws-8.5.4" sources."@types/ws-8.5.4"
sources."@types/yargs-16.0.5" sources."@types/yargs-16.0.5"
sources."@types/yargs-parser-21.0.0" sources."@types/yargs-parser-21.0.0"
sources."@typescript-eslint/eslint-plugin-5.53.0" sources."@typescript-eslint/eslint-plugin-5.54.0"
sources."@typescript-eslint/experimental-utils-5.53.0" sources."@typescript-eslint/experimental-utils-5.54.0"
sources."@typescript-eslint/parser-5.53.0" sources."@typescript-eslint/parser-5.54.0"
sources."@typescript-eslint/scope-manager-5.53.0" sources."@typescript-eslint/scope-manager-5.54.0"
sources."@typescript-eslint/type-utils-5.53.0" sources."@typescript-eslint/type-utils-5.54.0"
sources."@typescript-eslint/types-5.53.0" sources."@typescript-eslint/types-5.54.0"
sources."@typescript-eslint/typescript-estree-5.53.0" sources."@typescript-eslint/typescript-estree-5.54.0"
(sources."@typescript-eslint/utils-5.53.0" // { (sources."@typescript-eslint/utils-5.54.0" // {
dependencies = [ dependencies = [
sources."eslint-scope-5.1.1" sources."eslint-scope-5.1.1"
sources."estraverse-4.3.0" sources."estraverse-4.3.0"
]; ];
}) })
sources."@typescript-eslint/visitor-keys-5.53.0" sources."@typescript-eslint/visitor-keys-5.54.0"
sources."@webassemblyjs/ast-1.11.1" sources."@webassemblyjs/ast-1.11.1"
sources."@webassemblyjs/floating-point-hex-parser-1.11.1" sources."@webassemblyjs/floating-point-hex-parser-1.11.1"
sources."@webassemblyjs/helper-api-error-1.11.1" sources."@webassemblyjs/helper-api-error-1.11.1"
@ -11554,7 +11554,7 @@ let
sources."camelcase-6.3.0" sources."camelcase-6.3.0"
sources."camelcase-css-2.0.1" sources."camelcase-css-2.0.1"
sources."caniuse-api-3.0.0" sources."caniuse-api-3.0.0"
sources."caniuse-lite-1.0.30001458" sources."caniuse-lite-1.0.30001460"
sources."case-sensitive-paths-webpack-plugin-2.4.0" sources."case-sensitive-paths-webpack-plugin-2.4.0"
(sources."chalk-2.4.2" // { (sources."chalk-2.4.2" // {
dependencies = [ dependencies = [
@ -11723,7 +11723,7 @@ let
sources."duplexer-0.1.2" sources."duplexer-0.1.2"
sources."ee-first-1.1.1" sources."ee-first-1.1.1"
sources."ejs-3.1.8" sources."ejs-3.1.8"
sources."electron-to-chromium-1.4.311" sources."electron-to-chromium-1.4.320"
sources."emittery-0.8.1" sources."emittery-0.8.1"
sources."emoji-regex-9.2.2" sources."emoji-regex-9.2.2"
sources."emojis-list-3.0.0" sources."emojis-list-3.0.0"
@ -11818,7 +11818,7 @@ let
}) })
sources."espree-9.4.1" sources."espree-9.4.1"
sources."esprima-4.0.1" sources."esprima-4.0.1"
sources."esquery-1.4.2" sources."esquery-1.5.0"
sources."esrecurse-4.3.0" sources."esrecurse-4.3.0"
sources."estraverse-5.3.0" sources."estraverse-5.3.0"
sources."estree-walker-1.0.1" sources."estree-walker-1.0.1"
@ -11981,7 +11981,7 @@ let
sources."internal-slot-1.0.5" sources."internal-slot-1.0.5"
sources."ipaddr.js-2.0.1" sources."ipaddr.js-2.0.1"
sources."is-arguments-1.1.1" sources."is-arguments-1.1.1"
sources."is-array-buffer-3.0.1" sources."is-array-buffer-3.0.2"
sources."is-arrayish-0.2.1" sources."is-arrayish-0.2.1"
sources."is-bigint-1.0.4" sources."is-bigint-1.0.4"
sources."is-binary-path-2.1.0" sources."is-binary-path-2.1.0"
@ -12287,7 +12287,7 @@ let
sources."language-tags-1.0.5" sources."language-tags-1.0.5"
sources."leven-3.1.0" sources."leven-3.1.0"
sources."levn-0.4.1" sources."levn-0.4.1"
sources."lilconfig-2.0.6" sources."lilconfig-2.1.0"
sources."lines-and-columns-1.2.4" sources."lines-and-columns-1.2.4"
sources."loader-runner-4.3.0" sources."loader-runner-4.3.0"
sources."loader-utils-2.0.4" sources."loader-utils-2.0.4"
@ -12558,8 +12558,8 @@ let
sources."react-infinite-scroll-component-6.1.0" sources."react-infinite-scroll-component-6.1.0"
sources."react-is-16.13.1" sources."react-is-16.13.1"
sources."react-refresh-0.11.0" sources."react-refresh-0.11.0"
sources."react-router-6.8.1" sources."react-router-6.8.2"
sources."react-router-dom-6.8.1" sources."react-router-dom-6.8.2"
sources."react-scripts-5.0.1" sources."react-scripts-5.0.1"
sources."react-transition-group-4.4.5" sources."react-transition-group-4.4.5"
sources."read-cache-1.0.0" sources."read-cache-1.0.0"

View File

@ -0,0 +1,27 @@
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "ares-rs";
version = "0.9.0";
src = fetchFromGitHub {
owner = "bee-san";
repo = "ares";
rev = "refs/tags/${version}";
hash = "sha256-F+uBGRL1G8kiNZUCsiPbISBfId5BPwShenusqkcsHug=";
};
cargoHash = "sha256-7zDq66oWT+j6t9LEBUoeby8MQ1Ihhvk3KLwWPQAThyc=";
meta = with lib; {
description = "Automated decoding of encrypted text without knowing the key or ciphers used";
homepage = "https://github.com/bee-san/ares";
changelog = "https://github.com/bee-san/Ares/releases/tag${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "ares";
};
}

View File

@ -290,6 +290,8 @@ with pkgs;
ansi = callPackage ../development/tools/ansi { }; ansi = callPackage ../development/tools/ansi { };
ares-rs = callPackage ../tools/security/ares-rs { };
arti = callPackage ../tools/security/arti { arti = callPackage ../tools/security/arti {
inherit (darwin.apple_sdk.frameworks) CoreServices; inherit (darwin.apple_sdk.frameworks) CoreServices;
}; };
@ -6967,7 +6969,11 @@ with pkgs;
volctl = callPackage ../tools/audio/volctl { }; volctl = callPackage ../tools/audio/volctl { };
volk = callPackage ../development/libraries/volk { }; volk = if (stdenv.isDarwin && stdenv.isAarch64) then
(callPackage ../development/libraries/volk/2.5.0.nix { })
else
(callPackage ../development/libraries/volk { })
;
vorta = libsForQt5.callPackage ../applications/backup/vorta { }; vorta = libsForQt5.callPackage ../applications/backup/vorta { };
@ -31753,7 +31759,7 @@ with pkgs;
libdvdnav = libdvdnav_4_2_1; libdvdnav = libdvdnav_4_2_1;
} // (config.mplayer or {})); } // (config.mplayer or {}));
mpv-unwrapped = callPackage ../applications/video/mpv { mpv-unwrapped = darwin.apple_sdk_11_0.callPackage ../applications/video/mpv {
inherit lua; inherit lua;
}; };
@ -34336,6 +34342,8 @@ with pkgs;
gtk = gtk2; gtk = gtk2;
}; };
xborders = callPackage ../tools/X11/xborders { };
xxh = callPackage ../tools/networking/xxh { }; xxh = callPackage ../tools/networking/xxh { };
kodiPackages = recurseIntoAttrs (kodi.packages); kodiPackages = recurseIntoAttrs (kodi.packages);