Merge master into haskell-updates
This commit is contained in:
commit
5a130699b6
|
@ -50,7 +50,8 @@
|
||||||
More fields may be added in the future, however, in order to comply with GDPR this file should stay as minimal as possible.
|
More fields may be added in the future, however, in order to comply with GDPR this file should stay as minimal as possible.
|
||||||
|
|
||||||
When editing this file:
|
When editing this file:
|
||||||
* keep the list alphabetically sorted
|
* keep the list alphabetically sorted, check with:
|
||||||
|
nix-instantiate --eval maintainers/scripts/check-maintainers-sorted.nix
|
||||||
* test the validity of the format with:
|
* test the validity of the format with:
|
||||||
nix-build lib/tests/maintainers.nix
|
nix-build lib/tests/maintainers.nix
|
||||||
|
|
||||||
|
@ -11229,6 +11230,16 @@
|
||||||
githubId = 13920346;
|
githubId = 13920346;
|
||||||
name = "Sébastien Iooss";
|
name = "Sébastien Iooss";
|
||||||
};
|
};
|
||||||
|
networkexception = {
|
||||||
|
name = "networkException";
|
||||||
|
email = "nix@nwex.de";
|
||||||
|
matrix = "@networkexception:chat.upi.li";
|
||||||
|
github = "networkException";
|
||||||
|
githubId = 42888162;
|
||||||
|
keys = [{
|
||||||
|
fingerprint = "A0B9 48C5 A263 55C2 035F 8567 FBB7 2A94 52D9 1A72";
|
||||||
|
}];
|
||||||
|
};
|
||||||
neverbehave = {
|
neverbehave = {
|
||||||
email = "i@never.pet";
|
email = "i@never.pet";
|
||||||
github = "NeverBehave";
|
github = "NeverBehave";
|
||||||
|
|
|
@ -10,7 +10,8 @@ let
|
||||||
|
|
||||||
defaultPinentryFlavor =
|
defaultPinentryFlavor =
|
||||||
if xserverCfg.desktopManager.lxqt.enable
|
if xserverCfg.desktopManager.lxqt.enable
|
||||||
|| xserverCfg.desktopManager.plasma5.enable then
|
|| xserverCfg.desktopManager.plasma5.enable
|
||||||
|
|| xserverCfg.desktopManager.deepin.enable then
|
||||||
"qt"
|
"qt"
|
||||||
else if xserverCfg.desktopManager.xfce.enable then
|
else if xserverCfg.desktopManager.xfce.enable then
|
||||||
"gtk2"
|
"gtk2"
|
||||||
|
|
|
@ -78,7 +78,7 @@ let
|
||||||
|
|
||||||
${config.system.systemBuilderCommands}
|
${config.system.systemBuilderCommands}
|
||||||
|
|
||||||
echo -n "$extraDependencies" > $out/extra-dependencies
|
cp "$extraDependenciesPath" "$out/extra-dependencies"
|
||||||
|
|
||||||
${optionalString (!config.boot.isContainer && config.boot.bootspec.enable) ''
|
${optionalString (!config.boot.isContainer && config.boot.bootspec.enable) ''
|
||||||
${config.boot.bootspec.writer}
|
${config.boot.bootspec.writer}
|
||||||
|
@ -98,6 +98,7 @@ let
|
||||||
name = "nixos-system-${config.system.name}-${config.system.nixos.label}";
|
name = "nixos-system-${config.system.name}-${config.system.nixos.label}";
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
allowSubstitutes = false;
|
allowSubstitutes = false;
|
||||||
|
passAsFile = [ "extraDependencies" ];
|
||||||
buildCommand = systemBuilder;
|
buildCommand = systemBuilder;
|
||||||
|
|
||||||
inherit (pkgs) coreutils;
|
inherit (pkgs) coreutils;
|
||||||
|
|
|
@ -11,14 +11,14 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "callaudiod";
|
pname = "callaudiod";
|
||||||
version = "0.1.7";
|
version = "0.1.9";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.com";
|
domain = "gitlab.com";
|
||||||
owner = "mobian1";
|
owner = "mobian1";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-BDEu3ASlnovMK0lQC+CQvpXvtdt33BRntstPAWaAnsg=";
|
sha256 = "sha256-OuWn1DA+4LmN1KwouiqW3kn6CMg8jhm0FiyAgMSi1GI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
|
@ -37,13 +37,13 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "easyeffects";
|
pname = "easyeffects";
|
||||||
version = "7.0.3";
|
version = "7.0.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wwmm";
|
owner = "wwmm";
|
||||||
repo = "easyeffects";
|
repo = "easyeffects";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-vHswNRu4JrW95nZaEBs95exUqslO0dyIr41E1gJhHow=";
|
sha256 = "sha256-JaqwzCWVnvFzzGHnmzYwe3occ9iw7s9xCH54eVKEuOs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ fetchurl, lib, stdenv, squashfsTools, xorg, alsa-lib, makeShellWrapper, wrapGAppsHook, openssl, freetype
|
{ fetchurl, lib, stdenv, squashfsTools, xorg, alsa-lib, makeShellWrapper, wrapGAppsHook, openssl, freetype
|
||||||
, glib, pango, cairo, atk, gdk-pixbuf, gtk3, cups, nspr, nss_latest, libpng, libnotify
|
, glib, pango, cairo, atk, gdk-pixbuf, gtk3, cups, nspr, nss_latest, libpng, libnotify
|
||||||
, libgcrypt, systemd, fontconfig, dbus, expat, ffmpeg, curlWithGnuTls, zlib, gnome
|
, libgcrypt, systemd, fontconfig, dbus, expat, ffmpeg_4, curlWithGnuTls, zlib, gnome
|
||||||
, at-spi2-atk, at-spi2-core, libpulseaudio, libdrm, mesa, libxkbcommon
|
, at-spi2-atk, at-spi2-core, libpulseaudio, libdrm, mesa, libxkbcommon
|
||||||
, pname, meta, harfbuzz
|
, pname, meta, harfbuzz
|
||||||
# High-DPI support: Spotify's --force-device-scale-factor argument
|
# High-DPI support: Spotify's --force-device-scale-factor argument
|
||||||
|
@ -33,7 +33,7 @@ let
|
||||||
curlWithGnuTls
|
curlWithGnuTls
|
||||||
dbus
|
dbus
|
||||||
expat
|
expat
|
||||||
ffmpeg
|
ffmpeg_4 # Requires libavcodec < 59 as of 1.2.9.743.g85d9593d
|
||||||
fontconfig
|
fontconfig
|
||||||
freetype
|
freetype
|
||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
|
@ -135,8 +135,8 @@ stdenv.mkDerivation {
|
||||||
ln -s ${nspr.out}/lib/libnspr4.so $libdir/libnspr4.so
|
ln -s ${nspr.out}/lib/libnspr4.so $libdir/libnspr4.so
|
||||||
ln -s ${nspr.out}/lib/libplc4.so $libdir/libplc4.so
|
ln -s ${nspr.out}/lib/libplc4.so $libdir/libplc4.so
|
||||||
|
|
||||||
ln -s ${ffmpeg.lib}/lib/libavcodec.so* $libdir
|
ln -s ${ffmpeg_4.lib}/lib/libavcodec.so* $libdir
|
||||||
ln -s ${ffmpeg.lib}/lib/libavformat.so* $libdir
|
ln -s ${ffmpeg_4.lib}/lib/libavformat.so* $libdir
|
||||||
|
|
||||||
rpath="$out/share/spotify:$libdir"
|
rpath="$out/share/spotify:$libdir"
|
||||||
|
|
||||||
|
|
|
@ -32,14 +32,14 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = if withGui then "bitcoin" else "bitcoind";
|
pname = if withGui then "bitcoin" else "bitcoind";
|
||||||
version = "24.0.1";
|
version = "24.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
urls = [
|
urls = [
|
||||||
"https://bitcoincore.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
|
"https://bitcoincore.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
|
||||||
];
|
];
|
||||||
# hash retrieved from signed SHA256SUMS
|
# hash retrieved from signed SHA256SUMS
|
||||||
sha256 = "12d4ad6dfab4767d460d73307e56d13c72997e114fad4f274650f95560f5f2ff";
|
sha256 = "8a0a3db3b2d9cc024e897113f70a3a65d8de831c129eb6d1e26ffa65e7bfaf4e";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
|
|
|
@ -4,11 +4,11 @@ cups, vivaldi-ffmpeg-codecs, libpulseaudio, at-spi2-core, libxkbcommon, mesa }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "exodus";
|
pname = "exodus";
|
||||||
version = "23.4.10";
|
version = "23.5.8";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://downloads.exodus.com/releases/${pname}-linux-x64-${version}.zip";
|
url = "https://downloads.exodus.com/releases/${pname}-linux-x64-${version}.zip";
|
||||||
sha256 = "sha256-NWUIJCsoCsG8FKZnApicHsBTBwTL2fNb0su1KWd1E1o=";
|
sha256 = "sha256-3mABHkxEMS985NqQBZ7HijtTiun1iSXFJmi0qOh3m7g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
|
@ -953,6 +953,18 @@ final: prev:
|
||||||
meta.homepage = "https://github.com/chriskempson/base16-vim/";
|
meta.homepage = "https://github.com/chriskempson/base16-vim/";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
base46 = buildVimPluginFrom2Nix {
|
||||||
|
pname = "base46";
|
||||||
|
version = "unstable-2023-05-06";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nvchad";
|
||||||
|
repo = "base46";
|
||||||
|
rev = "bad87b034430b0241d03868c3802c2f1a4e0b4be";
|
||||||
|
sha256 = "1nplnd4f5wzwkbbfw9nnpm3jdy0il4wbqh5gdnbh9xmldb3lf376";
|
||||||
|
};
|
||||||
|
meta.homepage = "https://github.com/nvchad/base46/";
|
||||||
|
};
|
||||||
|
|
||||||
bat-vim = buildVimPluginFrom2Nix {
|
bat-vim = buildVimPluginFrom2Nix {
|
||||||
pname = "bat.vim";
|
pname = "bat.vim";
|
||||||
version = "2022-11-14";
|
version = "2022-11-14";
|
||||||
|
@ -6201,6 +6213,42 @@ final: prev:
|
||||||
meta.homepage = "https://github.com/ChristianChiarulli/nvcode-color-schemes.vim/";
|
meta.homepage = "https://github.com/ChristianChiarulli/nvcode-color-schemes.vim/";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nvchad = buildVimPluginFrom2Nix {
|
||||||
|
pname = "nvchad";
|
||||||
|
version = "unstable-2023-05-18";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nvchad";
|
||||||
|
repo = "nvchad";
|
||||||
|
rev = "262a06776aa731ad89369394f73320461d4a7e63";
|
||||||
|
sha256 = "1nfa1sikdrmjq8v64jsvbrfgap1dmlx8pvvpspxs4rz3i0y3scfv";
|
||||||
|
};
|
||||||
|
meta.homepage = "https://github.com/nvchad/nvchad/";
|
||||||
|
};
|
||||||
|
|
||||||
|
nvchad-extensions = buildVimPluginFrom2Nix {
|
||||||
|
pname = "nvchad-extensions";
|
||||||
|
version = "unstable-2023-05-14";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nvchad";
|
||||||
|
repo = "extensions";
|
||||||
|
rev = "6025bdbbac5c14b96ba4734e61eaf28db2742676";
|
||||||
|
sha256 = "1dfj4a3vh8djgylcc4f7bg7hq2mmg8imizglzbqr0my74v4shd1w";
|
||||||
|
};
|
||||||
|
meta.homepage = "https://github.com/nvchad/extensions/";
|
||||||
|
};
|
||||||
|
|
||||||
|
nvchad-ui = buildVimPluginFrom2Nix {
|
||||||
|
pname = "nvchad-ui";
|
||||||
|
version = "unstable-2023-05-18";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nvchad";
|
||||||
|
repo = "ui";
|
||||||
|
rev = "168ca134ae186ad977872bff3301378c0af5be71";
|
||||||
|
sha256 = "0xwvgbv7xj1ja7fgw14vnm083hab6q19rihv8nky93wj5v5xjkya";
|
||||||
|
};
|
||||||
|
meta.homepage = "https://github.com/nvchad/ui/";
|
||||||
|
};
|
||||||
|
|
||||||
nvim-FeMaco-lua = buildVimPluginFrom2Nix {
|
nvim-FeMaco-lua = buildVimPluginFrom2Nix {
|
||||||
pname = "nvim-FeMaco.lua";
|
pname = "nvim-FeMaco.lua";
|
||||||
version = "2023-04-20";
|
version = "2023-04-20";
|
||||||
|
@ -7148,6 +7196,18 @@ final: prev:
|
||||||
meta.homepage = "https://github.com/neovim/nvimdev.nvim/";
|
meta.homepage = "https://github.com/neovim/nvimdev.nvim/";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nvterm = buildVimPluginFrom2Nix {
|
||||||
|
pname = "nvterm";
|
||||||
|
version = "unstable-2023-05-05";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nvchad";
|
||||||
|
repo = "nvterm";
|
||||||
|
rev = "5ae78fb332e92447121d2af58a6313189a7799fb";
|
||||||
|
sha256 = "0rcj5njhkh1pwaa8d8d15nqqacx1h8j4ijygwhplvszi64kqb9r5";
|
||||||
|
};
|
||||||
|
meta.homepage = "https://github.com/nvchad/nvterm/";
|
||||||
|
};
|
||||||
|
|
||||||
oceanic-material = buildVimPluginFrom2Nix {
|
oceanic-material = buildVimPluginFrom2Nix {
|
||||||
pname = "oceanic-material";
|
pname = "oceanic-material";
|
||||||
version = "2022-08-17";
|
version = "2022-08-17";
|
||||||
|
|
|
@ -78,6 +78,7 @@ https://github.com/taybart/b64.nvim/,HEAD,
|
||||||
https://github.com/romgrk/barbar.nvim/,,
|
https://github.com/romgrk/barbar.nvim/,,
|
||||||
https://github.com/utilyre/barbecue.nvim/,,
|
https://github.com/utilyre/barbecue.nvim/,,
|
||||||
https://github.com/chriskempson/base16-vim/,,
|
https://github.com/chriskempson/base16-vim/,,
|
||||||
|
https://github.com/nvchad/base46/,HEAD,
|
||||||
https://github.com/jamespwilliams/bat.vim/,HEAD,
|
https://github.com/jamespwilliams/bat.vim/,HEAD,
|
||||||
https://github.com/vim-scripts/bats.vim/,,
|
https://github.com/vim-scripts/bats.vim/,,
|
||||||
https://github.com/rbgrouleff/bclose.vim/,,
|
https://github.com/rbgrouleff/bclose.vim/,,
|
||||||
|
@ -253,6 +254,7 @@ https://github.com/dmix/elvish.vim/,,
|
||||||
https://github.com/mattn/emmet-vim/,,
|
https://github.com/mattn/emmet-vim/,,
|
||||||
https://github.com/vim-scripts/emodeline/,,
|
https://github.com/vim-scripts/emodeline/,,
|
||||||
https://github.com/sainnhe/everforest/,,
|
https://github.com/sainnhe/everforest/,,
|
||||||
|
https://github.com/nvchad/extensions/,HEAD,nvchad-extensions
|
||||||
https://github.com/fenetikm/falcon/,,
|
https://github.com/fenetikm/falcon/,,
|
||||||
https://github.com/brooth/far.vim/,,
|
https://github.com/brooth/far.vim/,,
|
||||||
https://github.com/konfekt/fastfold/,,
|
https://github.com/konfekt/fastfold/,,
|
||||||
|
@ -437,6 +439,7 @@ https://github.com/jose-elias-alvarez/minsnip.nvim/,,
|
||||||
https://github.com/jghauser/mkdir.nvim/,main,
|
https://github.com/jghauser/mkdir.nvim/,main,
|
||||||
https://github.com/SidOfc/mkdx/,,
|
https://github.com/SidOfc/mkdx/,,
|
||||||
https://github.com/tomasr/molokai/,,
|
https://github.com/tomasr/molokai/,,
|
||||||
|
https://github.com/loctvl842/monokai-pro.nvim/,HEAD,
|
||||||
https://github.com/shaunsingh/moonlight.nvim/,,pure-lua
|
https://github.com/shaunsingh/moonlight.nvim/,,pure-lua
|
||||||
https://github.com/leafo/moonscript-vim/,HEAD,
|
https://github.com/leafo/moonscript-vim/,HEAD,
|
||||||
https://github.com/yegappan/mru/,,
|
https://github.com/yegappan/mru/,,
|
||||||
|
@ -520,6 +523,7 @@ https://github.com/jlesquembre/nterm.nvim/,,
|
||||||
https://github.com/MunifTanjim/nui.nvim/,main,
|
https://github.com/MunifTanjim/nui.nvim/,main,
|
||||||
https://github.com/jose-elias-alvarez/null-ls.nvim/,,
|
https://github.com/jose-elias-alvarez/null-ls.nvim/,,
|
||||||
https://github.com/nacro90/numb.nvim/,,
|
https://github.com/nacro90/numb.nvim/,,
|
||||||
|
https://github.com/nvchad/nvchad/,HEAD,
|
||||||
https://github.com/ChristianChiarulli/nvcode-color-schemes.vim/,,
|
https://github.com/ChristianChiarulli/nvcode-color-schemes.vim/,,
|
||||||
https://github.com/catppuccin/nvim/,,catppuccin-nvim
|
https://github.com/catppuccin/nvim/,,catppuccin-nvim
|
||||||
https://github.com/AckslD/nvim-FeMaco.lua/,HEAD,
|
https://github.com/AckslD/nvim-FeMaco.lua/,HEAD,
|
||||||
|
@ -601,6 +605,7 @@ https://github.com/AckslD/nvim-whichkey-setup.lua/,,
|
||||||
https://github.com/roxma/nvim-yarp/,,
|
https://github.com/roxma/nvim-yarp/,,
|
||||||
https://github.com/haringsrob/nvim_context_vt/,,
|
https://github.com/haringsrob/nvim_context_vt/,,
|
||||||
https://github.com/neovim/nvimdev.nvim/,,
|
https://github.com/neovim/nvimdev.nvim/,,
|
||||||
|
https://github.com/nvchad/nvterm/,HEAD,
|
||||||
https://github.com/glepnir/oceanic-material/,,
|
https://github.com/glepnir/oceanic-material/,,
|
||||||
https://github.com/mhartington/oceanic-next/,,
|
https://github.com/mhartington/oceanic-next/,,
|
||||||
https://github.com/pwntester/octo.nvim/,,
|
https://github.com/pwntester/octo.nvim/,,
|
||||||
|
@ -793,6 +798,7 @@ https://github.com/Quramy/tsuquyomi/,,
|
||||||
https://github.com/folke/twilight.nvim/,,
|
https://github.com/folke/twilight.nvim/,,
|
||||||
https://github.com/leafgarland/typescript-vim/,,
|
https://github.com/leafgarland/typescript-vim/,,
|
||||||
https://github.com/jose-elias-alvarez/typescript.nvim/,,
|
https://github.com/jose-elias-alvarez/typescript.nvim/,,
|
||||||
|
https://github.com/nvchad/ui/,HEAD,nvchad-ui
|
||||||
https://github.com/SirVer/ultisnips/,,
|
https://github.com/SirVer/ultisnips/,,
|
||||||
https://github.com/mbbill/undotree/,,
|
https://github.com/mbbill/undotree/,,
|
||||||
https://github.com/chrisbra/unicode.vim/,,
|
https://github.com/chrisbra/unicode.vim/,,
|
||||||
|
|
|
@ -9,43 +9,43 @@
|
||||||
let
|
let
|
||||||
|
|
||||||
pname = "1password";
|
pname = "1password";
|
||||||
version = if channel == "stable" then "8.10.4" else "8.10.6-20.BETA";
|
version = if channel == "stable" then "8.10.6" else "8.10.7-11.BETA";
|
||||||
|
|
||||||
sources = {
|
sources = {
|
||||||
stable = {
|
stable = {
|
||||||
x86_64-linux = {
|
x86_64-linux = {
|
||||||
url = "https://downloads.1password.com/linux/tar/stable/x86_64/1password-${version}.x64.tar.gz";
|
url = "https://downloads.1password.com/linux/tar/stable/x86_64/1password-${version}.x64.tar.gz";
|
||||||
sha256 = "sha256-zFB8bUl0FNmMvNN5AoDeYdUjasJblVxRAi50V2BF5OU=";
|
sha256 = "sha256-wCY94x67z+X8l3wr79+BXuu6/UXJldbVIA67AAD9mj0=";
|
||||||
};
|
};
|
||||||
aarch64-linux = {
|
aarch64-linux = {
|
||||||
url = "https://downloads.1password.com/linux/tar/stable/aarch64/1password-${version}.arm64.tar.gz";
|
url = "https://downloads.1password.com/linux/tar/stable/aarch64/1password-${version}.arm64.tar.gz";
|
||||||
sha256 = "sha256-gALQ43mAJy3eX/0qmdBp0yfMLgAdqAqD93CbDydvJR8=";
|
sha256 = "sha256-iLjuudWmkLMuoZSZZo9pRpx0MZludUrGTpTHCTNk4Vo=";
|
||||||
};
|
};
|
||||||
x86_64-darwin = {
|
x86_64-darwin = {
|
||||||
url = "https://downloads.1password.com/mac/1Password-${version}-x86_64.zip";
|
url = "https://downloads.1password.com/mac/1Password-${version}-x86_64.zip";
|
||||||
sha256 = "sha256-4kpf3U4G3Jx8g24kU4nXZbDA3o29hEpwACOE2zAadhA=";
|
sha256 = "sha256-FVj5x1RVBxPsgWhG6R4ykarZdLdJcj6gO5mQy3hHB4M=";
|
||||||
};
|
};
|
||||||
aarch64-darwin = {
|
aarch64-darwin = {
|
||||||
url = "https://downloads.1password.com/mac/1Password-${version}-aarch64.zip";
|
url = "https://downloads.1password.com/mac/1Password-${version}-aarch64.zip";
|
||||||
sha256 = "sha256-eTRI7reSZ24S8uwNFPk8BkwMexdoXD5tlL6Bd3zzIGI=";
|
sha256 = "sha256-ilQP1OF4gydzlLZq3aZzqNbzvacRbruzWS7pVt6DP9g=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
beta = {
|
beta = {
|
||||||
x86_64-linux = {
|
x86_64-linux = {
|
||||||
url = "https://downloads.1password.com/linux/tar/beta/x86_64/1password-${version}.x64.tar.gz";
|
url = "https://downloads.1password.com/linux/tar/beta/x86_64/1password-${version}.x64.tar.gz";
|
||||||
sha256 = "sha256-zhZF6BlJMlEcjKUv43f5yKv8cOzjX01yiVtIrAgw578=";
|
sha256 = "sha256-O7dzNRukIk654FoS1HxqHYcB8mLNORvz59p3skRXuYM=";
|
||||||
};
|
};
|
||||||
aarch64-linux = {
|
aarch64-linux = {
|
||||||
url = "https://downloads.1password.com/linux/tar/beta/aarch64/1password-${version}.arm64.tar.gz";
|
url = "https://downloads.1password.com/linux/tar/beta/aarch64/1password-${version}.arm64.tar.gz";
|
||||||
sha256 = "sha256-pzZSV4mKhdm/zGErWSLwaf0WISvYBheGzCgB34ysCe4=";
|
sha256 = "sha256-npEVlGwMmYXH4wW6VvAhPzWNFOZl1LvuCnOgvm94rds=";
|
||||||
};
|
};
|
||||||
x86_64-darwin = {
|
x86_64-darwin = {
|
||||||
url = "https://downloads.1password.com/mac/1Password-${version}-x86_64.zip";
|
url = "https://downloads.1password.com/mac/1Password-${version}-x86_64.zip";
|
||||||
sha256 = "sha256-2Lbh5WPhBAJxvZ7J8/DDXDHkN8Th595RdA/S4Dwi3+0=";
|
sha256 = "sha256-Z0IZNEU8ggSF20SZziT5UTEMiWPNdVWY82nhuGyeFVU=";
|
||||||
};
|
};
|
||||||
aarch64-darwin = {
|
aarch64-darwin = {
|
||||||
url = "https://downloads.1password.com/mac/1Password-${version}-aarch64.zip";
|
url = "https://downloads.1password.com/mac/1Password-${version}-aarch64.zip";
|
||||||
sha256 = "sha256-XpVT5yfo6HkvbmZWyoPLD7/M3FrNIKec6yt450bPUxQ=";
|
sha256 = "sha256-qy1Vr6nDJo44Qd7mKZYR65+tIaSq0YOjjw84/mg1RgE=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
76
pkgs/applications/misc/livecaptions/default.nix
Normal file
76
pkgs/applications/misc/livecaptions/default.nix
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
fetchurl,
|
||||||
|
meson,
|
||||||
|
ninja,
|
||||||
|
pkg-config,
|
||||||
|
cmake,
|
||||||
|
desktop-file-utils,
|
||||||
|
wrapGAppsHook4,
|
||||||
|
onnxruntime,
|
||||||
|
libadwaita,
|
||||||
|
libpulseaudio,
|
||||||
|
xorg,
|
||||||
|
}: let
|
||||||
|
aprilAsr = fetchFromGitHub {
|
||||||
|
name = "april-asr";
|
||||||
|
owner = "abb128";
|
||||||
|
repo = "april-asr";
|
||||||
|
rev = "c2f138c674cad58e2708ecaddc95cc72e7f85549";
|
||||||
|
sha256 = "hZe2iss3BGdzeTM5FCp9wp6LaDOjtGJrZS5vB5F6uLg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
aprilModel = fetchurl {
|
||||||
|
name = "aprilv0_en-us.april";
|
||||||
|
url = "https://april.sapples.net/aprilv0_en-us.april";
|
||||||
|
sha256 = "9aMPiI55d2mxt94UPAXSySoXAsJjtbcdYv0gKM7eVic=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "livecaptions";
|
||||||
|
version = "0.4.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "abb128";
|
||||||
|
repo = "LiveCaptions";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-RepuvqNPHRGENupPG5ezadn6f7FxEUYFDi4+DpNanuA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
cmake
|
||||||
|
desktop-file-utils # update-desktop-database
|
||||||
|
wrapGAppsHook4
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
onnxruntime
|
||||||
|
libadwaita
|
||||||
|
libpulseaudio
|
||||||
|
xorg.libX11
|
||||||
|
];
|
||||||
|
|
||||||
|
postUnpack = ''
|
||||||
|
rm -r source/subprojects/april-asr
|
||||||
|
ln -sf ${aprilAsr} source/subprojects/april-asr
|
||||||
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
|
--set APRIL_MODEL_PATH ${aprilModel}
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Linux Desktop application that provides live captioning";
|
||||||
|
homepage = "https://github.com/abb128/LiveCaptions";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [Scrumplex];
|
||||||
|
};
|
||||||
|
}
|
48
pkgs/applications/misc/sfwbar/default.nix
Normal file
48
pkgs/applications/misc/sfwbar/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, gtk3
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, json_c
|
||||||
|
, pkg-config
|
||||||
|
, gtk-layer-shell
|
||||||
|
, libpulseaudio
|
||||||
|
, libmpdclient
|
||||||
|
, libxkbcommon
|
||||||
|
,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "sfwbar";
|
||||||
|
version = "1.0_beta11";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "LBCrion";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "PmpiO5gvurpaFpoq8bQdZ53FYSVDnyjN8MxDpelMnAU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gtk3
|
||||||
|
json_c
|
||||||
|
gtk-layer-shell
|
||||||
|
libpulseaudio
|
||||||
|
libmpdclient
|
||||||
|
libxkbcommon
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/LBCrion/sfwbar";
|
||||||
|
description = "A flexible taskbar application for wayland compositors, designed with a stacking layout in mind";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ NotAShelf ];
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
};
|
||||||
|
}
|
|
@ -78,6 +78,27 @@ stdenv.mkDerivation rec {
|
||||||
"CVE-2019-9587: loop in PDF objects"
|
"CVE-2019-9587: loop in PDF objects"
|
||||||
"CVE-2019-9588: loop in PDF objects"
|
"CVE-2019-9588: loop in PDF objects"
|
||||||
"CVE-2019-16088: loop in PDF objects"
|
"CVE-2019-16088: loop in PDF objects"
|
||||||
|
"CVE-2022-38334"
|
||||||
|
"CVE-2022-38928"
|
||||||
|
"CVE-2022-41842"
|
||||||
|
"CVE-2022-41843"
|
||||||
|
"CVE-2022-41844"
|
||||||
|
"CVE-2022-43071"
|
||||||
|
"CVE-2022-43295"
|
||||||
|
"CVE-2022-45586"
|
||||||
|
"CVE-2022-45587"
|
||||||
|
"CVE-2023-2662"
|
||||||
|
"CVE-2023-2663"
|
||||||
|
"CVE-2023-2664"
|
||||||
|
"CVE-2023-26930"
|
||||||
|
"CVE-2023-26931"
|
||||||
|
"CVE-2023-26934"
|
||||||
|
"CVE-2023-26935"
|
||||||
|
"CVE-2023-26936"
|
||||||
|
"CVE-2023-26937"
|
||||||
|
"CVE-2023-26938"
|
||||||
|
"CVE-2023-27655"
|
||||||
|
"CVE-2023-31557"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ mkChromiumDerivation (base: rec {
|
||||||
then "https://github.com/ungoogled-software/ungoogled-chromium"
|
then "https://github.com/ungoogled-software/ungoogled-chromium"
|
||||||
else "https://www.chromium.org/";
|
else "https://www.chromium.org/";
|
||||||
maintainers = with lib.maintainers; if ungoogled
|
maintainers = with lib.maintainers; if ungoogled
|
||||||
then [ squalus primeos michaeladler ]
|
then [ squalus primeos michaeladler networkexception ]
|
||||||
else [ primeos thefloweringash ];
|
else [ primeos thefloweringash ];
|
||||||
license = if enableWideVine then lib.licenses.unfree else lib.licenses.bsd3;
|
license = if enableWideVine then lib.licenses.unfree else lib.licenses.bsd3;
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
|
|
|
@ -45,9 +45,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ungoogled-chromium": {
|
"ungoogled-chromium": {
|
||||||
"version": "113.0.5672.93",
|
"version": "113.0.5672.126",
|
||||||
"sha256": "1cy33mvhws59d358s30xqs2p9hdb28n37wmv5ihx0d07x30y3azb",
|
"sha256": "14rdvidabbh0abp932m747iribvpfcha8hhxh9spck9hjkaprvqd",
|
||||||
"sha256bin64": null,
|
"sha256bin64": "1w8b41ij6xl8byh1977skxwwq0nivpfn8wb3gv12xvm7sw24jqka",
|
||||||
"deps": {
|
"deps": {
|
||||||
"gn": {
|
"gn": {
|
||||||
"version": "2023-03-18",
|
"version": "2023-03-18",
|
||||||
|
@ -56,8 +56,8 @@
|
||||||
"sha256": "12w4g2dl58283allclpi1c4i6ih9v2xvdb9hpbmfda12v8lizmlq"
|
"sha256": "12w4g2dl58283allclpi1c4i6ih9v2xvdb9hpbmfda12v8lizmlq"
|
||||||
},
|
},
|
||||||
"ungoogled-patches": {
|
"ungoogled-patches": {
|
||||||
"rev": "113.0.5672.93-1",
|
"rev": "113.0.5672.126-1",
|
||||||
"sha256": "0ffb33k2kgnpswq1f61gzcblvgsw7qazh8yq2kcdwc4k9bd9gr93"
|
"sha256": "0s47zpl5qw5755hjhzk9g8l3ns9cwdzskq6dh1biyx1qpw0h8pld"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,15 @@
|
||||||
{ lib, stdenv, fetchgit, ncurses, tcl, openssl, pam, libkrb5
|
{ lib
|
||||||
, openldap, libxcrypt, gitUpdater
|
, stdenv
|
||||||
|
, fetchgit
|
||||||
|
, buildPackages
|
||||||
|
, ncurses
|
||||||
|
, tcl
|
||||||
|
, openssl
|
||||||
|
, pam
|
||||||
|
, libkrb5
|
||||||
|
, openldap
|
||||||
|
, libxcrypt
|
||||||
|
, gitUpdater
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -12,6 +22,8 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-cJyUBatQBjD6RG+jesJ0JRhWghPRBACc/HQl+2aCTd0=";
|
hash = "sha256-cJyUBatQBjD6RG+jesJ0JRhWghPRBACc/HQl+2aCTd0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
ncurses tcl openssl pam libkrb5 openldap libxcrypt
|
ncurses tcl openssl pam libkrb5 openldap libxcrypt
|
||||||
];
|
];
|
||||||
|
|
|
@ -11,16 +11,16 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "karlender";
|
pname = "karlender";
|
||||||
version = "0.9.1";
|
version = "0.9.2";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "floers";
|
owner = "floers";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-mtkVdVxO796hZZJrGohNTeZfC43rdvEUgUZvBG92f8c=";
|
hash = "sha256-txPMOWwxgs9PH1Scnwr/X4cuMIUa+eoLW3K2aqmqRMQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-jbdQ1dwTRJuA4F89YfxsO2PaHVef8bvxAj13veDteNM=";
|
cargoHash = "sha256-OyyzzkoYBed2XFCesj3QBodT9e/BaapGl/z0f6+cDZA=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "morgen";
|
pname = "morgen";
|
||||||
version = "2.6.7";
|
version = "2.7.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.todesktop.com/210203cqcj00tw1/morgen-${version}.deb";
|
url = "https://download.todesktop.com/210203cqcj00tw1/morgen-${version}.deb";
|
||||||
sha256 = "sha256-DlwAMA/YEnB9Z6Ry1Hvu9R9TgTw737PLtZfAVEKLjPY=";
|
sha256 = "sha256-v01mytnyJA1GQ/9/+7/HDIbwW1Jl4dpgf+84k0sRf4o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{ lib, python39Packages, fetchPypi
|
{ lib
|
||||||
, fftw, alsa-lib, pulseaudio, pyusb, wxPython_4_2 }:
|
, python3
|
||||||
|
, fetchPypi
|
||||||
|
, fftw
|
||||||
|
, alsa-lib
|
||||||
|
, pulseaudio
|
||||||
|
}:
|
||||||
|
|
||||||
python39Packages.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "quisk";
|
pname = "quisk";
|
||||||
version = "4.2.17";
|
version = "4.2.17";
|
||||||
|
|
||||||
|
@ -10,9 +15,16 @@ python39Packages.buildPythonApplication rec {
|
||||||
sha256 = "sha256-eF/3++wRG0JulVTT+GvtqleBPkzLSZeu+RfHDI1xfOY=";
|
sha256 = "sha256-eF/3++wRG0JulVTT+GvtqleBPkzLSZeu+RfHDI1xfOY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ fftw alsa-lib pulseaudio ];
|
buildInputs = [
|
||||||
|
fftw
|
||||||
|
alsa-lib
|
||||||
|
pulseaudio
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyusb wxPython_4_2 ];
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
pyusb
|
||||||
|
wxPython_4_2
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "dataexplorer";
|
pname = "dataexplorer";
|
||||||
version = "3.7.6";
|
version = "3.7.7";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://savannah/dataexplorer/dataexplorer-${version}-src.tar.gz";
|
url = "mirror://savannah/dataexplorer/dataexplorer-${version}-src.tar.gz";
|
||||||
sha256 = "sha256-mwz4o1m2ldjyD4pbwMQxeaI8a8JXzis+s0I+6GW8WaY=";
|
sha256 = "sha256-tZ/+m+CeOE+84LbqXYPBGSMRkRU2oGnJpAP5OQkYmfY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ ant makeWrapper ];
|
nativeBuildInputs = [ ant makeWrapper ];
|
||||||
|
|
|
@ -1,18 +1,26 @@
|
||||||
{ pkgs, nodejs, stdenv, lib, ... }:
|
{ lib
|
||||||
|
, buildNpmPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
buildNpmPackage rec {
|
||||||
nodePackages = import ./node-composition.nix {
|
pname = "cz-cli";
|
||||||
inherit pkgs nodejs;
|
version = "4.3.0";
|
||||||
inherit (stdenv.hostPlatform) system;
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "commitizen";
|
||||||
|
repo = "cz-cli";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-4kyGxidE8dzkHL0oPv/XxDxQ3qlEE6TKSgj+1g9uvJM=";
|
||||||
};
|
};
|
||||||
in
|
|
||||||
nodePackages.commitizen.override {
|
npmDepsHash = "sha256-zQ0T/1khnn+CXm/3yc9nANL0ROEEE03U5fV57btEmPg=";
|
||||||
name = "cz-cli";
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The commitizen command line utility";
|
description = "The commitizen command line utility";
|
||||||
homepage = "https://commitizen.github.io/cz-cli";
|
homepage = "https://commitizen.github.io/cz-cli";
|
||||||
maintainers = with maintainers; [ freezeboy ];
|
changelog = "https://github.com/commitizen/cz-cli/releases/tag/v${version}";
|
||||||
|
maintainers = with maintainers; [ freezeboy natsukium ];
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/usr/bin/env nix-shell
|
|
||||||
#! nix-shell -I nixpkgs=../../../.. -i bash -p nodePackages.node2nix
|
|
||||||
|
|
||||||
node2nix \
|
|
||||||
--node-env node-env.nix \
|
|
||||||
--development \
|
|
||||||
--input package.json \
|
|
||||||
--output node-packages.nix \
|
|
||||||
--composition node-composition.nix
|
|
|
@ -1,17 +0,0 @@
|
||||||
# This file has been generated by node2nix 1.9.0. Do not edit!
|
|
||||||
|
|
||||||
{pkgs ? import <nixpkgs> {
|
|
||||||
inherit system;
|
|
||||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs_14"}:
|
|
||||||
|
|
||||||
let
|
|
||||||
nodeEnv = import ./node-env.nix {
|
|
||||||
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
|
|
||||||
inherit pkgs nodejs;
|
|
||||||
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
import ./node-packages.nix {
|
|
||||||
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
|
|
||||||
inherit nodeEnv;
|
|
||||||
}
|
|
|
@ -1,588 +0,0 @@
|
||||||
# This file originates from node2nix
|
|
||||||
|
|
||||||
{lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile, writeShellScript}:
|
|
||||||
|
|
||||||
let
|
|
||||||
# Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master
|
|
||||||
utillinux = if pkgs ? utillinux then pkgs.utillinux else pkgs.util-linux;
|
|
||||||
|
|
||||||
python = if nodejs ? python then nodejs.python else python2;
|
|
||||||
|
|
||||||
# Create a tar wrapper that filters all the 'Ignoring unknown extended header keyword' noise
|
|
||||||
tarWrapper = runCommand "tarWrapper" {} ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
|
|
||||||
cat > $out/bin/tar <<EOF
|
|
||||||
#! ${stdenv.shell} -e
|
|
||||||
$(type -p tar) "\$@" --warning=no-unknown-keyword --delay-directory-restore
|
|
||||||
EOF
|
|
||||||
|
|
||||||
chmod +x $out/bin/tar
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Function that generates a TGZ file from a NPM project
|
|
||||||
buildNodeSourceDist =
|
|
||||||
{ name, version, src, ... }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "node-tarball-${name}-${version}";
|
|
||||||
inherit src;
|
|
||||||
buildInputs = [ nodejs ];
|
|
||||||
buildPhase = ''
|
|
||||||
export HOME=$TMPDIR
|
|
||||||
tgzFile=$(npm pack | tail -n 1) # Hooks to the pack command will add output (https://docs.npmjs.com/misc/scripts)
|
|
||||||
'';
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/tarballs
|
|
||||||
mv $tgzFile $out/tarballs
|
|
||||||
mkdir -p $out/nix-support
|
|
||||||
echo "file source-dist $out/tarballs/$tgzFile" >> $out/nix-support/hydra-build-products
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# Common shell logic
|
|
||||||
installPackage = writeShellScript "install-package" ''
|
|
||||||
installPackage() {
|
|
||||||
local packageName=$1 src=$2
|
|
||||||
|
|
||||||
local strippedName
|
|
||||||
|
|
||||||
local DIR=$PWD
|
|
||||||
cd $TMPDIR
|
|
||||||
|
|
||||||
unpackFile $src
|
|
||||||
|
|
||||||
# Make the base dir in which the target dependency resides first
|
|
||||||
mkdir -p "$(dirname "$DIR/$packageName")"
|
|
||||||
|
|
||||||
if [ -f "$src" ]
|
|
||||||
then
|
|
||||||
# Figure out what directory has been unpacked
|
|
||||||
packageDir="$(find . -maxdepth 1 -type d | tail -1)"
|
|
||||||
|
|
||||||
# Restore write permissions to make building work
|
|
||||||
find "$packageDir" -type d -exec chmod u+x {} \;
|
|
||||||
chmod -R u+w "$packageDir"
|
|
||||||
|
|
||||||
# Move the extracted tarball into the output folder
|
|
||||||
mv "$packageDir" "$DIR/$packageName"
|
|
||||||
elif [ -d "$src" ]
|
|
||||||
then
|
|
||||||
# Get a stripped name (without hash) of the source directory.
|
|
||||||
# On old nixpkgs it's already set internally.
|
|
||||||
if [ -z "$strippedName" ]
|
|
||||||
then
|
|
||||||
strippedName="$(stripHash $src)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Restore write permissions to make building work
|
|
||||||
chmod -R u+w "$strippedName"
|
|
||||||
|
|
||||||
# Move the extracted directory into the output folder
|
|
||||||
mv "$strippedName" "$DIR/$packageName"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Change to the package directory to install dependencies
|
|
||||||
cd "$DIR/$packageName"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Bundle the dependencies of the package
|
|
||||||
#
|
|
||||||
# Only include dependencies if they don't exist. They may also be bundled in the package.
|
|
||||||
includeDependencies = {dependencies}:
|
|
||||||
lib.optionalString (dependencies != []) (
|
|
||||||
''
|
|
||||||
mkdir -p node_modules
|
|
||||||
cd node_modules
|
|
||||||
''
|
|
||||||
+ (lib.concatMapStrings (dependency:
|
|
||||||
''
|
|
||||||
if [ ! -e "${dependency.name}" ]; then
|
|
||||||
${composePackage dependency}
|
|
||||||
fi
|
|
||||||
''
|
|
||||||
) dependencies)
|
|
||||||
+ ''
|
|
||||||
cd ..
|
|
||||||
''
|
|
||||||
);
|
|
||||||
|
|
||||||
# Recursively composes the dependencies of a package
|
|
||||||
composePackage = { name, packageName, src, dependencies ? [], ... }@args:
|
|
||||||
builtins.addErrorContext "while evaluating node package '${packageName}'" ''
|
|
||||||
installPackage "${packageName}" "${src}"
|
|
||||||
${includeDependencies { inherit dependencies; }}
|
|
||||||
cd ..
|
|
||||||
${lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."}
|
|
||||||
'';
|
|
||||||
|
|
||||||
pinpointDependencies = {dependencies, production}:
|
|
||||||
let
|
|
||||||
pinpointDependenciesFromPackageJSON = writeTextFile {
|
|
||||||
name = "pinpointDependencies.js";
|
|
||||||
text = ''
|
|
||||||
var fs = require('fs');
|
|
||||||
var path = require('path');
|
|
||||||
|
|
||||||
function resolveDependencyVersion(location, name) {
|
|
||||||
if(location == process.env['NIX_STORE']) {
|
|
||||||
return null;
|
|
||||||
} else {
|
|
||||||
var dependencyPackageJSON = path.join(location, "node_modules", name, "package.json");
|
|
||||||
|
|
||||||
if(fs.existsSync(dependencyPackageJSON)) {
|
|
||||||
var dependencyPackageObj = JSON.parse(fs.readFileSync(dependencyPackageJSON));
|
|
||||||
|
|
||||||
if(dependencyPackageObj.name == name) {
|
|
||||||
return dependencyPackageObj.version;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return resolveDependencyVersion(path.resolve(location, ".."), name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function replaceDependencies(dependencies) {
|
|
||||||
if(typeof dependencies == "object" && dependencies !== null) {
|
|
||||||
for(var dependency in dependencies) {
|
|
||||||
var resolvedVersion = resolveDependencyVersion(process.cwd(), dependency);
|
|
||||||
|
|
||||||
if(resolvedVersion === null) {
|
|
||||||
process.stderr.write("WARNING: cannot pinpoint dependency: "+dependency+", context: "+process.cwd()+"\n");
|
|
||||||
} else {
|
|
||||||
dependencies[dependency] = resolvedVersion;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Read the package.json configuration */
|
|
||||||
var packageObj = JSON.parse(fs.readFileSync('./package.json'));
|
|
||||||
|
|
||||||
/* Pinpoint all dependencies */
|
|
||||||
replaceDependencies(packageObj.dependencies);
|
|
||||||
if(process.argv[2] == "development") {
|
|
||||||
replaceDependencies(packageObj.devDependencies);
|
|
||||||
}
|
|
||||||
replaceDependencies(packageObj.optionalDependencies);
|
|
||||||
|
|
||||||
/* Write the fixed package.json file */
|
|
||||||
fs.writeFileSync("package.json", JSON.stringify(packageObj, null, 2));
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in
|
|
||||||
''
|
|
||||||
node ${pinpointDependenciesFromPackageJSON} ${if production then "production" else "development"}
|
|
||||||
|
|
||||||
${lib.optionalString (dependencies != [])
|
|
||||||
''
|
|
||||||
if [ -d node_modules ]
|
|
||||||
then
|
|
||||||
cd node_modules
|
|
||||||
${lib.concatMapStrings (dependency: pinpointDependenciesOfPackage dependency) dependencies}
|
|
||||||
cd ..
|
|
||||||
fi
|
|
||||||
''}
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Recursively traverses all dependencies of a package and pinpoints all
|
|
||||||
# dependencies in the package.json file to the versions that are actually
|
|
||||||
# being used.
|
|
||||||
|
|
||||||
pinpointDependenciesOfPackage = { packageName, dependencies ? [], production ? true, ... }@args:
|
|
||||||
''
|
|
||||||
if [ -d "${packageName}" ]
|
|
||||||
then
|
|
||||||
cd "${packageName}"
|
|
||||||
${pinpointDependencies { inherit dependencies production; }}
|
|
||||||
cd ..
|
|
||||||
${lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."}
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Extract the Node.js source code which is used to compile packages with
|
|
||||||
# native bindings
|
|
||||||
nodeSources = runCommand "node-sources" {} ''
|
|
||||||
tar --no-same-owner --no-same-permissions -xf ${nodejs.src}
|
|
||||||
mv node-* $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Script that adds _integrity fields to all package.json files to prevent NPM from consulting the cache (that is empty)
|
|
||||||
addIntegrityFieldsScript = writeTextFile {
|
|
||||||
name = "addintegrityfields.js";
|
|
||||||
text = ''
|
|
||||||
var fs = require('fs');
|
|
||||||
var path = require('path');
|
|
||||||
|
|
||||||
function augmentDependencies(baseDir, dependencies) {
|
|
||||||
for(var dependencyName in dependencies) {
|
|
||||||
var dependency = dependencies[dependencyName];
|
|
||||||
|
|
||||||
// Open package.json and augment metadata fields
|
|
||||||
var packageJSONDir = path.join(baseDir, "node_modules", dependencyName);
|
|
||||||
var packageJSONPath = path.join(packageJSONDir, "package.json");
|
|
||||||
|
|
||||||
if(fs.existsSync(packageJSONPath)) { // Only augment packages that exist. Sometimes we may have production installs in which development dependencies can be ignored
|
|
||||||
console.log("Adding metadata fields to: "+packageJSONPath);
|
|
||||||
var packageObj = JSON.parse(fs.readFileSync(packageJSONPath));
|
|
||||||
|
|
||||||
if(dependency.integrity) {
|
|
||||||
packageObj["_integrity"] = dependency.integrity;
|
|
||||||
} else {
|
|
||||||
packageObj["_integrity"] = "sha1-000000000000000000000000000="; // When no _integrity string has been provided (e.g. by Git dependencies), add a dummy one. It does not seem to harm and it bypasses downloads.
|
|
||||||
}
|
|
||||||
|
|
||||||
if(dependency.resolved) {
|
|
||||||
packageObj["_resolved"] = dependency.resolved; // Adopt the resolved property if one has been provided
|
|
||||||
} else {
|
|
||||||
packageObj["_resolved"] = dependency.version; // Set the resolved version to the version identifier. This prevents NPM from cloning Git repositories.
|
|
||||||
}
|
|
||||||
|
|
||||||
if(dependency.from !== undefined) { // Adopt from property if one has been provided
|
|
||||||
packageObj["_from"] = dependency.from;
|
|
||||||
}
|
|
||||||
|
|
||||||
fs.writeFileSync(packageJSONPath, JSON.stringify(packageObj, null, 2));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Augment transitive dependencies
|
|
||||||
if(dependency.dependencies !== undefined) {
|
|
||||||
augmentDependencies(packageJSONDir, dependency.dependencies);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(fs.existsSync("./package-lock.json")) {
|
|
||||||
var packageLock = JSON.parse(fs.readFileSync("./package-lock.json"));
|
|
||||||
|
|
||||||
if(![1, 2].includes(packageLock.lockfileVersion)) {
|
|
||||||
process.stderr.write("Sorry, I only understand lock file versions 1 and 2!\n");
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(packageLock.dependencies !== undefined) {
|
|
||||||
augmentDependencies(".", packageLock.dependencies);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# Reconstructs a package-lock file from the node_modules/ folder structure and package.json files with dummy sha1 hashes
|
|
||||||
reconstructPackageLock = writeTextFile {
|
|
||||||
name = "addintegrityfields.js";
|
|
||||||
text = ''
|
|
||||||
var fs = require('fs');
|
|
||||||
var path = require('path');
|
|
||||||
|
|
||||||
var packageObj = JSON.parse(fs.readFileSync("package.json"));
|
|
||||||
|
|
||||||
var lockObj = {
|
|
||||||
name: packageObj.name,
|
|
||||||
version: packageObj.version,
|
|
||||||
lockfileVersion: 1,
|
|
||||||
requires: true,
|
|
||||||
dependencies: {}
|
|
||||||
};
|
|
||||||
|
|
||||||
function augmentPackageJSON(filePath, dependencies) {
|
|
||||||
var packageJSON = path.join(filePath, "package.json");
|
|
||||||
if(fs.existsSync(packageJSON)) {
|
|
||||||
var packageObj = JSON.parse(fs.readFileSync(packageJSON));
|
|
||||||
dependencies[packageObj.name] = {
|
|
||||||
version: packageObj.version,
|
|
||||||
integrity: "sha1-000000000000000000000000000=",
|
|
||||||
dependencies: {}
|
|
||||||
};
|
|
||||||
processDependencies(path.join(filePath, "node_modules"), dependencies[packageObj.name].dependencies);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function processDependencies(dir, dependencies) {
|
|
||||||
if(fs.existsSync(dir)) {
|
|
||||||
var files = fs.readdirSync(dir);
|
|
||||||
|
|
||||||
files.forEach(function(entry) {
|
|
||||||
var filePath = path.join(dir, entry);
|
|
||||||
var stats = fs.statSync(filePath);
|
|
||||||
|
|
||||||
if(stats.isDirectory()) {
|
|
||||||
if(entry.substr(0, 1) == "@") {
|
|
||||||
// When we encounter a namespace folder, augment all packages belonging to the scope
|
|
||||||
var pkgFiles = fs.readdirSync(filePath);
|
|
||||||
|
|
||||||
pkgFiles.forEach(function(entry) {
|
|
||||||
if(stats.isDirectory()) {
|
|
||||||
var pkgFilePath = path.join(filePath, entry);
|
|
||||||
augmentPackageJSON(pkgFilePath, dependencies);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
augmentPackageJSON(filePath, dependencies);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
processDependencies("node_modules", lockObj.dependencies);
|
|
||||||
|
|
||||||
fs.writeFileSync("package-lock.json", JSON.stringify(lockObj, null, 2));
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
prepareAndInvokeNPM = {packageName, bypassCache, reconstructLock, npmFlags, production}:
|
|
||||||
let
|
|
||||||
forceOfflineFlag = if bypassCache then "--offline" else "--registry http://www.example.com";
|
|
||||||
in
|
|
||||||
''
|
|
||||||
# Pinpoint the versions of all dependencies to the ones that are actually being used
|
|
||||||
echo "pinpointing versions of dependencies..."
|
|
||||||
source $pinpointDependenciesScriptPath
|
|
||||||
|
|
||||||
# Patch the shebangs of the bundled modules to prevent them from
|
|
||||||
# calling executables outside the Nix store as much as possible
|
|
||||||
patchShebangs .
|
|
||||||
|
|
||||||
# Deploy the Node.js package by running npm install. Since the
|
|
||||||
# dependencies have been provided already by ourselves, it should not
|
|
||||||
# attempt to install them again, which is good, because we want to make
|
|
||||||
# it Nix's responsibility. If it needs to install any dependencies
|
|
||||||
# anyway (e.g. because the dependency parameters are
|
|
||||||
# incomplete/incorrect), it fails.
|
|
||||||
#
|
|
||||||
# The other responsibilities of NPM are kept -- version checks, build
|
|
||||||
# steps, postprocessing etc.
|
|
||||||
|
|
||||||
export HOME=$TMPDIR
|
|
||||||
cd "${packageName}"
|
|
||||||
runHook preRebuild
|
|
||||||
|
|
||||||
${lib.optionalString bypassCache ''
|
|
||||||
${lib.optionalString reconstructLock ''
|
|
||||||
if [ -f package-lock.json ]
|
|
||||||
then
|
|
||||||
echo "WARNING: Reconstruct lock option enabled, but a lock file already exists!"
|
|
||||||
echo "This will most likely result in version mismatches! We will remove the lock file and regenerate it!"
|
|
||||||
rm package-lock.json
|
|
||||||
else
|
|
||||||
echo "No package-lock.json file found, reconstructing..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
node ${reconstructPackageLock}
|
|
||||||
''}
|
|
||||||
|
|
||||||
node ${addIntegrityFieldsScript}
|
|
||||||
''}
|
|
||||||
|
|
||||||
npm ${forceOfflineFlag} --nodedir=${nodeSources} ${npmFlags} ${lib.optionalString production "--production"} rebuild
|
|
||||||
|
|
||||||
if [ "''${dontNpmInstall-}" != "1" ]
|
|
||||||
then
|
|
||||||
# NPM tries to download packages even when they already exist if npm-shrinkwrap is used.
|
|
||||||
rm -f npm-shrinkwrap.json
|
|
||||||
|
|
||||||
npm ${forceOfflineFlag} --nodedir=${nodeSources} ${npmFlags} ${lib.optionalString production "--production"} install
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Builds and composes an NPM package including all its dependencies
|
|
||||||
buildNodePackage =
|
|
||||||
{ name
|
|
||||||
, packageName
|
|
||||||
, version
|
|
||||||
, dependencies ? []
|
|
||||||
, buildInputs ? []
|
|
||||||
, production ? true
|
|
||||||
, npmFlags ? ""
|
|
||||||
, dontNpmInstall ? false
|
|
||||||
, bypassCache ? false
|
|
||||||
, reconstructLock ? false
|
|
||||||
, preRebuild ? ""
|
|
||||||
, dontStrip ? true
|
|
||||||
, unpackPhase ? "true"
|
|
||||||
, buildPhase ? "true"
|
|
||||||
, meta ? {}
|
|
||||||
, ... }@args:
|
|
||||||
|
|
||||||
let
|
|
||||||
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "preRebuild" "unpackPhase" "buildPhase" "meta" ];
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation ({
|
|
||||||
name = "${name}-${version}";
|
|
||||||
buildInputs = [ tarWrapper python nodejs ]
|
|
||||||
++ lib.optional (stdenv.isLinux) utillinux
|
|
||||||
++ lib.optional (stdenv.isDarwin) libtool
|
|
||||||
++ buildInputs;
|
|
||||||
|
|
||||||
inherit nodejs;
|
|
||||||
|
|
||||||
inherit dontStrip; # Stripping may fail a build for some package deployments
|
|
||||||
inherit dontNpmInstall preRebuild unpackPhase buildPhase;
|
|
||||||
|
|
||||||
compositionScript = composePackage args;
|
|
||||||
pinpointDependenciesScript = pinpointDependenciesOfPackage args;
|
|
||||||
|
|
||||||
passAsFile = [ "compositionScript" "pinpointDependenciesScript" ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
source ${installPackage}
|
|
||||||
|
|
||||||
# Create and enter a root node_modules/ folder
|
|
||||||
mkdir -p $out/lib/node_modules
|
|
||||||
cd $out/lib/node_modules
|
|
||||||
|
|
||||||
# Compose the package and all its dependencies
|
|
||||||
source $compositionScriptPath
|
|
||||||
|
|
||||||
${prepareAndInvokeNPM { inherit packageName bypassCache reconstructLock npmFlags production; }}
|
|
||||||
|
|
||||||
# Create symlink to the deployed executable folder, if applicable
|
|
||||||
if [ -d "$out/lib/node_modules/.bin" ]
|
|
||||||
then
|
|
||||||
ln -s $out/lib/node_modules/.bin $out/bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create symlinks to the deployed manual page folders, if applicable
|
|
||||||
if [ -d "$out/lib/node_modules/${packageName}/man" ]
|
|
||||||
then
|
|
||||||
mkdir -p $out/share
|
|
||||||
for dir in "$out/lib/node_modules/${packageName}/man/"*
|
|
||||||
do
|
|
||||||
mkdir -p $out/share/man/$(basename "$dir")
|
|
||||||
for page in "$dir"/*
|
|
||||||
do
|
|
||||||
ln -s $page $out/share/man/$(basename "$dir")
|
|
||||||
done
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Run post install hook, if provided
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
# default to Node.js' platforms
|
|
||||||
platforms = nodejs.meta.platforms;
|
|
||||||
} // meta;
|
|
||||||
} // extraArgs);
|
|
||||||
|
|
||||||
# Builds a node environment (a node_modules folder and a set of binaries)
|
|
||||||
buildNodeDependencies =
|
|
||||||
{ name
|
|
||||||
, packageName
|
|
||||||
, version
|
|
||||||
, src
|
|
||||||
, dependencies ? []
|
|
||||||
, buildInputs ? []
|
|
||||||
, production ? true
|
|
||||||
, npmFlags ? ""
|
|
||||||
, dontNpmInstall ? false
|
|
||||||
, bypassCache ? false
|
|
||||||
, reconstructLock ? false
|
|
||||||
, dontStrip ? true
|
|
||||||
, unpackPhase ? "true"
|
|
||||||
, buildPhase ? "true"
|
|
||||||
, ... }@args:
|
|
||||||
|
|
||||||
let
|
|
||||||
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" ];
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation ({
|
|
||||||
name = "node-dependencies-${name}-${version}";
|
|
||||||
|
|
||||||
buildInputs = [ tarWrapper python nodejs ]
|
|
||||||
++ lib.optional (stdenv.isLinux) utillinux
|
|
||||||
++ lib.optional (stdenv.isDarwin) libtool
|
|
||||||
++ buildInputs;
|
|
||||||
|
|
||||||
inherit dontStrip; # Stripping may fail a build for some package deployments
|
|
||||||
inherit dontNpmInstall unpackPhase buildPhase;
|
|
||||||
|
|
||||||
includeScript = includeDependencies { inherit dependencies; };
|
|
||||||
pinpointDependenciesScript = pinpointDependenciesOfPackage args;
|
|
||||||
|
|
||||||
passAsFile = [ "includeScript" "pinpointDependenciesScript" ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
source ${installPackage}
|
|
||||||
|
|
||||||
mkdir -p $out/${packageName}
|
|
||||||
cd $out/${packageName}
|
|
||||||
|
|
||||||
source $includeScriptPath
|
|
||||||
|
|
||||||
# Create fake package.json to make the npm commands work properly
|
|
||||||
cp ${src}/package.json .
|
|
||||||
chmod 644 package.json
|
|
||||||
${lib.optionalString bypassCache ''
|
|
||||||
if [ -f ${src}/package-lock.json ]
|
|
||||||
then
|
|
||||||
cp ${src}/package-lock.json .
|
|
||||||
fi
|
|
||||||
''}
|
|
||||||
|
|
||||||
# Go to the parent folder to make sure that all packages are pinpointed
|
|
||||||
cd ..
|
|
||||||
${lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."}
|
|
||||||
|
|
||||||
${prepareAndInvokeNPM { inherit packageName bypassCache reconstructLock npmFlags production; }}
|
|
||||||
|
|
||||||
# Expose the executables that were installed
|
|
||||||
cd ..
|
|
||||||
${lib.optionalString (builtins.substring 0 1 packageName == "@") "cd .."}
|
|
||||||
|
|
||||||
mv ${packageName} lib
|
|
||||||
ln -s $out/lib/node_modules/.bin $out/bin
|
|
||||||
'';
|
|
||||||
} // extraArgs);
|
|
||||||
|
|
||||||
# Builds a development shell
|
|
||||||
buildNodeShell =
|
|
||||||
{ name
|
|
||||||
, packageName
|
|
||||||
, version
|
|
||||||
, src
|
|
||||||
, dependencies ? []
|
|
||||||
, buildInputs ? []
|
|
||||||
, production ? true
|
|
||||||
, npmFlags ? ""
|
|
||||||
, dontNpmInstall ? false
|
|
||||||
, bypassCache ? false
|
|
||||||
, reconstructLock ? false
|
|
||||||
, dontStrip ? true
|
|
||||||
, unpackPhase ? "true"
|
|
||||||
, buildPhase ? "true"
|
|
||||||
, ... }@args:
|
|
||||||
|
|
||||||
let
|
|
||||||
nodeDependencies = buildNodeDependencies args;
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "node-shell-${name}-${version}";
|
|
||||||
|
|
||||||
buildInputs = [ python nodejs ] ++ lib.optional (stdenv.isLinux) utillinux ++ buildInputs;
|
|
||||||
buildCommand = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cat > $out/bin/shell <<EOF
|
|
||||||
#! ${stdenv.shell} -e
|
|
||||||
$shellHook
|
|
||||||
exec ${stdenv.shell}
|
|
||||||
EOF
|
|
||||||
chmod +x $out/bin/shell
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Provide the dependencies in a development shell through the NODE_PATH environment variable
|
|
||||||
inherit nodeDependencies;
|
|
||||||
shellHook = lib.optionalString (dependencies != []) ''
|
|
||||||
export NODE_PATH=${nodeDependencies}/lib/node_modules
|
|
||||||
export PATH="${nodeDependencies}/bin:$PATH"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
buildNodeSourceDist = lib.makeOverridable buildNodeSourceDist;
|
|
||||||
buildNodePackage = lib.makeOverridable buildNodePackage;
|
|
||||||
buildNodeDependencies = lib.makeOverridable buildNodeDependencies;
|
|
||||||
buildNodeShell = lib.makeOverridable buildNodeShell;
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,3 +0,0 @@
|
||||||
[
|
|
||||||
"commitizen"
|
|
||||||
]
|
|
|
@ -11,13 +11,13 @@
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "numix-icon-theme";
|
pname = "numix-icon-theme";
|
||||||
version = "22.11.17";
|
version = "23.04.26";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "numixproject";
|
owner = "numixproject";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-B6Yg9NkPBpByMMV4GcEBmOlSKx1s0MClGWL2RWIJMwA=";
|
sha256 = "sha256-6tkE23G67nH/aZjDEtW64RcZsBrcd9iNj1r9lDlUFsk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
69
pkgs/desktops/deepin/apps/deepin-screensaver/default.nix
Normal file
69
pkgs/desktops/deepin/apps/deepin-screensaver/default.nix
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, qmake
|
||||||
|
, qttools
|
||||||
|
, pkg-config
|
||||||
|
, wrapQtAppsHook
|
||||||
|
, qtbase
|
||||||
|
, qtx11extras
|
||||||
|
, qtdeclarative
|
||||||
|
, dtkwidget
|
||||||
|
, dde-qt-dbus-factory
|
||||||
|
, xorg
|
||||||
|
, xscreensaver
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "deepin-screensaver";
|
||||||
|
version = "5.0.16";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "linuxdeepin";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-d/BllaXZxRdJe8nH+hhQIEutpBvAWFnBHWbIjznUfQU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs {src,customscreensaver/deepin-custom-screensaver}/{generate_translations.sh,update_translations.sh}
|
||||||
|
|
||||||
|
substituteInPlace src/{dbusscreensaver.cpp,com.deepin.ScreenSaver.service,src.pro} \
|
||||||
|
customscreensaver/deepin-custom-screensaver/deepin-custom-screensaver.pro \
|
||||||
|
--replace "/usr" "$out" \
|
||||||
|
--replace "/etc" "$out/etc"
|
||||||
|
|
||||||
|
substituteInPlace tools/preview/main.cpp \
|
||||||
|
--replace "/usr/lib/xscreensaver" "${xscreensaver}/libexec/xscreensaver"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
qmake
|
||||||
|
qttools
|
||||||
|
pkg-config
|
||||||
|
wrapQtAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
qtbase
|
||||||
|
qtx11extras
|
||||||
|
qtdeclarative
|
||||||
|
dtkwidget
|
||||||
|
dde-qt-dbus-factory
|
||||||
|
xorg.libXScrnSaver
|
||||||
|
];
|
||||||
|
|
||||||
|
qmakeFlags = [
|
||||||
|
"XSCREENSAVER_DATA_PATH=${xscreensaver}/libexec/xscreensaver"
|
||||||
|
"COMPILE_ON_V23=false"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A screensaver service developed by deepin";
|
||||||
|
homepage = "https://github.com/linuxdeepin/deepin-screensaver";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = teams.deepin.members;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -57,6 +57,7 @@ let
|
||||||
deepin-terminal = callPackage ./apps/deepin-terminal { };
|
deepin-terminal = callPackage ./apps/deepin-terminal { };
|
||||||
deepin-reader = callPackage ./apps/deepin-reader { };
|
deepin-reader = callPackage ./apps/deepin-reader { };
|
||||||
deepin-voice-note = callPackage ./apps/deepin-voice-note { };
|
deepin-voice-note = callPackage ./apps/deepin-voice-note { };
|
||||||
|
deepin-screensaver = callPackage ./apps/deepin-screensaver { };
|
||||||
|
|
||||||
#### Go Packages
|
#### Go Packages
|
||||||
go-lib = callPackage ./go-package/go-lib { };
|
go-lib = callPackage ./go-package/go-lib { };
|
||||||
|
|
7
pkgs/development/interpreters/erlang/26.nix
Normal file
7
pkgs/development/interpreters/erlang/26.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ lib, mkDerivation }:
|
||||||
|
|
||||||
|
mkDerivation {
|
||||||
|
version = "26.0";
|
||||||
|
sha256 = "sha256-7z5LkCLyjqGlo48XlcwAUiu1FkmAAewEGnP30QDDme8=";
|
||||||
|
}
|
||||||
|
|
|
@ -1,9 +1,27 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
{ lib
|
||||||
, opencl-clhpp, ocl-icd, fftw, fftwFloat
|
, stdenv
|
||||||
, blas, lapack, boost, mesa, libGLU, libGL
|
, fetchFromGitHub
|
||||||
, freeimage, python3, clfft, clblas
|
, cmake
|
||||||
, doxygen, buildDocs ? false
|
, pkg-config
|
||||||
, cudaSupport ? false, cudatoolkit
|
, opencl-clhpp
|
||||||
|
, ocl-icd
|
||||||
|
, fftw
|
||||||
|
, fftwFloat
|
||||||
|
, blas
|
||||||
|
, lapack
|
||||||
|
, boost
|
||||||
|
, mesa
|
||||||
|
, libGLU
|
||||||
|
, libGL
|
||||||
|
, freeimage
|
||||||
|
, python3
|
||||||
|
, clfft
|
||||||
|
, clblas
|
||||||
|
, doxygen
|
||||||
|
, buildDocs ? false
|
||||||
|
, cudaSupport ? false
|
||||||
|
, cudatoolkit
|
||||||
|
, darwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -48,14 +66,26 @@ stdenv.mkDerivation rec {
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
opencl-clhpp fftw fftwFloat
|
opencl-clhpp
|
||||||
blas lapack
|
fftw
|
||||||
libGLU libGL
|
fftwFloat
|
||||||
mesa freeimage
|
blas
|
||||||
boost.out boost.dev
|
lapack
|
||||||
] ++ (lib.optional stdenv.isLinux ocl-icd)
|
libGLU
|
||||||
++ (lib.optional cudaSupport cudatoolkit)
|
libGL
|
||||||
++ (lib.optional buildDocs doxygen);
|
mesa
|
||||||
|
freeimage
|
||||||
|
boost.out
|
||||||
|
boost.dev
|
||||||
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
|
ocl-icd
|
||||||
|
] ++ lib.optionals cudaSupport [
|
||||||
|
cudatoolkit
|
||||||
|
] ++ lib.optionals buildDocs [
|
||||||
|
doxygen
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.apple_sdk_11_0.frameworks.Accelerate
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A general-purpose library for parallel and massively-parallel computations";
|
description = "A general-purpose library for parallel and massively-parallel computations";
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
{ fetchFromGitHub,
|
{ fetchFromGitHub
|
||||||
lib, stdenv,
|
, lib
|
||||||
cmake, zlib, libuv, openssl,
|
, stdenv
|
||||||
examples ? false
|
, cmake
|
||||||
|
, zlib
|
||||||
|
, libuv
|
||||||
|
, openssl
|
||||||
|
, pkg-config
|
||||||
|
, examples ? false
|
||||||
}: stdenv.mkDerivation rec {
|
}: stdenv.mkDerivation rec {
|
||||||
pname = "cassandra-cpp-driver";
|
pname = "cassandra-cpp-driver";
|
||||||
version = "2.16.2";
|
version = "2.16.2";
|
||||||
|
@ -13,14 +18,13 @@
|
||||||
sha256 = "sha256-NAvaRLhEvFjSmXcyM039wLC6IfLws2rkeRpbE5eL/rQ=";
|
sha256 = "sha256-NAvaRLhEvFjSmXcyM039wLC6IfLws2rkeRpbE5eL/rQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
LIBUV_ROOT_DIR = "${libuv}/";
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
nativeBuildInputs = [ cmake ];
|
|
||||||
buildInputs = [ zlib libuv openssl.dev ];
|
buildInputs = [ zlib libuv openssl.dev ];
|
||||||
|
|
||||||
cmakeFlags = lib.attrsets.mapAttrsToList
|
cmakeFlags = (lib.attrsets.mapAttrsToList
|
||||||
(name: value: "-DCASS_BUILD_${name}:BOOL=${if value then "ON" else "OFF"}") {
|
(name: value: "-DCASS_BUILD_${name}:BOOL=${if value then "ON" else "OFF"}") {
|
||||||
EXAMPLES = examples;
|
EXAMPLES = examples;
|
||||||
};
|
}) ++ [ "-DLIBUV_INCLUDE_DIR=${lib.getDev libuv}/include" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "DataStax CPP cassandra driver";
|
description = "DataStax CPP cassandra driver";
|
||||||
|
|
|
@ -5,7 +5,12 @@
|
||||||
, patches ? []
|
, patches ? []
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{ lib, stdenv, fetchurl, gmp, autoreconfHook
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, gmp
|
||||||
|
, autoreconfHook
|
||||||
|
, buildPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
@ -19,6 +24,7 @@ stdenv.mkDerivation {
|
||||||
inherit patches;
|
inherit patches;
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
depsBuildBuild = lib.optionals (lib.versionAtLeast version "0.24") [ buildPackages.stdenv.cc ];
|
||||||
nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isRiscV && lib.versionOlder version "0.24") [ autoreconfHook ];
|
nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isRiscV && lib.versionOlder version "0.24") [ autoreconfHook ];
|
||||||
buildInputs = [ gmp ];
|
buildInputs = [ gmp ];
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "libarchive-qt";
|
pname = "libarchive-qt";
|
||||||
version = "2.0.7";
|
version = "2.0.8";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "marcusbritanicus";
|
owner = "marcusbritanicus";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-KRywB+Op44N00q9tgO2WNCliRgUDRvrCms1O8JYt62o=";
|
sha256 = "sha256-31a6DsxObSJWyLfT6mVtyjloT26IwFHpH53iuyC2mco=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
32
pkgs/development/libraries/wapp/default.nix
Normal file
32
pkgs/development/libraries/wapp/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ lib, fetchurl, tcl }:
|
||||||
|
|
||||||
|
tcl.mkTclDerivation {
|
||||||
|
pname = "wapp";
|
||||||
|
version = "unstable-2023-05-05";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://wapp.tcl-lang.org/home/raw/72d0d081e3e6a4aea91ddf429a85cbdf40f9a32d46cccfe81bb75ee50e6cf9cf?at=wapp.tcldir?ci=9d3368116c59ef16";
|
||||||
|
hash = "sha256-poG7dvaiOXMi4oWMQ5t3v7SYEqZLUY/TsWXrTL62xd0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/lib/wapp
|
||||||
|
cp $src $out/lib/wapp/wapp.tcl
|
||||||
|
cat <<EOF > $out/lib/wapp/pkgIndex.tcl
|
||||||
|
package ifneeded wapp 1.0 [list source [file join \$dir wapp.tcl]]
|
||||||
|
EOF
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://wapp.tcl-lang.org/home/doc/trunk/README.md";
|
||||||
|
description = "A framework for writing web applications in Tcl";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
maintainers = with maintainers; [ nat-418 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, python
|
, python
|
||||||
|
, pythonAtLeast
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, unittestCheckHook
|
, unittestCheckHook
|
||||||
}:
|
}:
|
||||||
|
@ -11,7 +12,9 @@ buildPythonPackage rec {
|
||||||
version = "21.6.0";
|
version = "21.6.0";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
# Python 3.11 not currently supported
|
||||||
|
# https://github.com/jazzband/contextlib2/issues/43
|
||||||
|
disabled = pythonOlder "3.6" || pythonAtLeast "3.11";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
|
|
@ -8,14 +8,14 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "edk2-pytool-library";
|
pname = "edk2-pytool-library";
|
||||||
version = "0.14.1";
|
version = "0.15.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tianocore";
|
owner = "tianocore";
|
||||||
repo = "edk2-pytool-library";
|
repo = "edk2-pytool-library";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-l3ZM2xxZrFz7n/uLSd994l+mGJDi4Qw4C2Lg2uyttL8=";
|
hash = "sha256-YNXaptzsIlMXaZu8mFihsaQfmPALUcL47BFn4m8GMfY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -34,6 +34,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python library package that supports UEFI development";
|
description = "Python library package that supports UEFI development";
|
||||||
homepage = "https://github.com/tianocore/edk2-pytool-library";
|
homepage = "https://github.com/tianocore/edk2-pytool-library";
|
||||||
|
changelog = "https://github.com/tianocore/edk2-pytool-library/releases/tag/v${version}";
|
||||||
license = licenses.bsd2Patent;
|
license = licenses.bsd2Patent;
|
||||||
maintainers = with maintainers; [ nickcao ];
|
maintainers = with maintainers; [ nickcao ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ buildPythonPackage, fetchurl, isPyPy, gmp } :
|
{ buildPythonPackage, fetchurl, isPyPy, gmp, pythonAtLeast } :
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "gmpy";
|
pname = "gmpy";
|
||||||
|
@ -8,7 +8,10 @@ in
|
||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
|
||||||
disabled = isPyPy;
|
# Python 3.11 has finally made changes to its C API for which gmpy 1.17,
|
||||||
|
# published in 2013, would require patching. It seems unlikely that any
|
||||||
|
# patches will be forthcoming.
|
||||||
|
disabled = isPyPy || pythonAtLeast "3.11";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://pypi/g/gmpy/${pname}-${version}.zip";
|
url = "mirror://pypi/g/gmpy/${pname}-${version}.zip";
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, aioresponses
|
, aioresponses
|
||||||
|
, buildPythonPackage
|
||||||
, cachetools
|
, cachetools
|
||||||
, cryptography
|
, cryptography
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
@ -42,6 +42,7 @@ buildPythonPackage rec {
|
||||||
pyasn1-modules
|
pyasn1-modules
|
||||||
rsa
|
rsa
|
||||||
six
|
six
|
||||||
|
urllib3
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
passthru.optional-dependencies = {
|
||||||
|
@ -75,7 +76,6 @@ buildPythonPackage rec {
|
||||||
pytest-localserver
|
pytest-localserver
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
responses
|
responses
|
||||||
urllib3
|
|
||||||
] ++ passthru.optional-dependencies.aiohttp
|
] ++ passthru.optional-dependencies.aiohttp
|
||||||
# `cryptography` is still required on `aarch64-darwin` for `tests/crypt/*`
|
# `cryptography` is still required on `aarch64-darwin` for `tests/crypt/*`
|
||||||
++ (if (stdenv.isDarwin && stdenv.isAarch64) then [ cryptography ] else passthru.optional-dependencies.enterprise_cert)
|
++ (if (stdenv.isDarwin && stdenv.isAarch64) then [ cryptography ] else passthru.optional-dependencies.enterprise_cert)
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, babel
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, babel
|
, linetable
|
||||||
, pytz
|
|
||||||
, nine
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "kajiki";
|
pname = "kajiki";
|
||||||
version = "0.9.2";
|
version = "0.9.2";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jackrosenthal";
|
owner = "jackrosenthal";
|
||||||
|
@ -18,15 +21,24 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-EbXe4Jh2IKAYw9GE0kFgKVv9c9uAOiFFYaMF8CGaOfg=";
|
hash = "sha256-EbXe4Jh2IKAYw9GE0kFgKVv9c9uAOiFFYaMF8CGaOfg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ babel pytz nine ];
|
propagatedBuildInputs = [
|
||||||
|
linetable
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [
|
||||||
|
babel
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"kajiki"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Kajiki provides fast well-formed XML templates";
|
description = "Module provides fast well-formed XML templates";
|
||||||
homepage = "https://github.com/nandoflorestan/kajiki";
|
homepage = "https://github.com/nandoflorestan/kajiki";
|
||||||
|
changelog = "https://github.com/jackrosenthal/kajiki/releases/tag/v${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ onny ];
|
maintainers = with maintainers; [ onny ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
37
pkgs/development/python-modules/linetable/default.nix
Normal file
37
pkgs/development/python-modules/linetable/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "linetable";
|
||||||
|
version = "0.0.3";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.10";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "amol-";
|
||||||
|
repo = "linetable";
|
||||||
|
rev = "refs/tags/${version}";
|
||||||
|
hash = "sha256-nVZVxK6uB5TP0pReaEya3/lFXFkiqpnnaWqYzxzO6bM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"linetable"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Library to parse and generate co_linetable attributes in Python code objects";
|
||||||
|
homepage = "https://github.com/amol-/linetable";
|
||||||
|
changelog = "https://github.com/amol-/linetable/releases/tag/${version}";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,136 +0,0 @@
|
||||||
{ lib
|
|
||||||
, buildPythonPackage
|
|
||||||
, capstone
|
|
||||||
, crytic-compile
|
|
||||||
, fetchFromGitHub
|
|
||||||
, intervaltree
|
|
||||||
, ply
|
|
||||||
, prettytable
|
|
||||||
, protobuf
|
|
||||||
, pyelftools
|
|
||||||
, pyevmasm
|
|
||||||
, pysha3
|
|
||||||
, pytestCheckHook
|
|
||||||
, pythonOlder
|
|
||||||
, pyyaml
|
|
||||||
, rlp
|
|
||||||
, stdenv
|
|
||||||
, unicorn
|
|
||||||
, wasm
|
|
||||||
, yices
|
|
||||||
, z3
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "manticore";
|
|
||||||
version = "0.3.7";
|
|
||||||
format = "setuptools";
|
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "trailofbits";
|
|
||||||
repo = "manticore";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-+17VBfAtkZZIi3SF5Num1Uqg3WjIpgbz3Jx65rD5zkM=";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
crytic-compile
|
|
||||||
intervaltree
|
|
||||||
ply
|
|
||||||
prettytable
|
|
||||||
protobuf
|
|
||||||
pyevmasm
|
|
||||||
pysha3
|
|
||||||
pyyaml
|
|
||||||
rlp
|
|
||||||
wasm
|
|
||||||
] ++ lib.optionals (stdenv.isLinux) [
|
|
||||||
capstone
|
|
||||||
pyelftools
|
|
||||||
unicorn
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# Python API is not used in the code, only z3 from PATH
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "z3-solver" "" \
|
|
||||||
--replace "crytic-compile==0.2.2" "crytic-compile>=0.2.2"
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
|
||||||
pytestCheckHook
|
|
||||||
];
|
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
export PATH=${yices}/bin:${z3}/bin:$PATH
|
|
||||||
'';
|
|
||||||
|
|
||||||
disabledTestPaths = [
|
|
||||||
"tests/ethereum" # Enable when solc works again
|
|
||||||
"tests/ethereum_bench"
|
|
||||||
] ++ lib.optionals (!stdenv.isLinux) [
|
|
||||||
"tests/native"
|
|
||||||
"tests/other/test_locking.py"
|
|
||||||
"tests/other/test_state_introspection.py"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# Failing tests
|
|
||||||
"test_chmod"
|
|
||||||
"test_timeout"
|
|
||||||
"test_wasm_main"
|
|
||||||
# Slow tests
|
|
||||||
"testmprotectFailSymbReading"
|
|
||||||
"test_ConstraintsForking"
|
|
||||||
"test_resume"
|
|
||||||
"test_symbolic"
|
|
||||||
"test_symbolic_syscall_arg"
|
|
||||||
"test_state_merging"
|
|
||||||
"test_decree"
|
|
||||||
"test_register_comparison"
|
|
||||||
"test_arguments_assertions_armv7"
|
|
||||||
"test_integration_basic_stdout"
|
|
||||||
"test_fclose_linux_amd64"
|
|
||||||
"test_fileio_linux_amd64"
|
|
||||||
"test_arguments_assertions_amd64"
|
|
||||||
"test_ioctl_bogus"
|
|
||||||
"test_ioctl_socket"
|
|
||||||
"test_brk_regression"
|
|
||||||
"test_basic_arm"
|
|
||||||
"test_logger_verbosity"
|
|
||||||
"test_profiling_data"
|
|
||||||
"test_integration_basic_stdin"
|
|
||||||
"test_getchar"
|
|
||||||
"test_ccmp_reg"
|
|
||||||
"test_ld1_mlt_structs"
|
|
||||||
"test_ccmp_imm"
|
|
||||||
"test_try_to_allocate_greater_than_last_space_memory_page_12"
|
|
||||||
"test_not_enough_memory_page_12"
|
|
||||||
"test_PCMPISTRI_30_symbolic"
|
|
||||||
"test_ld1_mlt_structs"
|
|
||||||
"test_time"
|
|
||||||
"test_implicit_call"
|
|
||||||
"test_trace"
|
|
||||||
"test_plugin"
|
|
||||||
# Tests are failing with latest unicorn
|
|
||||||
"Aarch64UnicornInstructions"
|
|
||||||
"test_integration_resume"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
|
||||||
"manticore"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
# m.c.manticore:WARNING: Manticore is only supported on Linux. Proceed at your own risk!
|
|
||||||
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
|
||||||
description = "Symbolic execution tool for analysis of smart contracts and binaries";
|
|
||||||
homepage = "https://github.com/trailofbits/manticore";
|
|
||||||
changelog = "https://github.com/trailofbits/manticore/releases/tag/${version}";
|
|
||||||
license = licenses.agpl3Only;
|
|
||||||
platforms = platforms.unix;
|
|
||||||
maintainers = with maintainers; [ arturcygan ];
|
|
||||||
};
|
|
||||||
}
|
|
48
pkgs/development/python-modules/mung/default.nix
Normal file
48
pkgs/development/python-modules/mung/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, lxml
|
||||||
|
, matplotlib
|
||||||
|
, midiutil
|
||||||
|
, numpy
|
||||||
|
, pytestCheckHook
|
||||||
|
, scikit-image
|
||||||
|
, scikit-learn
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
rev = "8d0ce91d831b0592c111ddb38fc9aa8eba130ed2";
|
||||||
|
in
|
||||||
|
buildPythonPackage {
|
||||||
|
pname = "mung";
|
||||||
|
version = "unstable-2022-07-10";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "OMR-Research";
|
||||||
|
repo = "mung";
|
||||||
|
inherit rev;
|
||||||
|
hash = "sha256-QzCkB9Wj4dTPuMCMweFw6IsSwBBzV0Nfx7+VX7Plnio=";
|
||||||
|
};
|
||||||
|
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
lxml
|
||||||
|
numpy
|
||||||
|
scikit-image
|
||||||
|
scikit-learn
|
||||||
|
matplotlib
|
||||||
|
midiutil
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Music Notation Graph: a data model for optical music recognition";
|
||||||
|
homepage = "https://github.com/OMR-Research/mung";
|
||||||
|
changelog = "https://github.com/OMR-Research/mung/blob/${rev}/CHANGES.md";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ piegames ];
|
||||||
|
};
|
||||||
|
}
|
52
pkgs/development/python-modules/muscima/default.nix
Normal file
52
pkgs/development/python-modules/muscima/default.nix
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, lxml
|
||||||
|
, matplotlib
|
||||||
|
, numpy
|
||||||
|
, pytestCheckHook
|
||||||
|
, scikit-image
|
||||||
|
, scikit-learn
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
rev = "9a016380625927f385e699664026c90356557850";
|
||||||
|
in
|
||||||
|
buildPythonPackage {
|
||||||
|
pname = "muscima";
|
||||||
|
version = "unstable-2023-04-26";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "hajicj";
|
||||||
|
repo = "muscima";
|
||||||
|
inherit rev;
|
||||||
|
hash = "sha256-0mRLJATn+6dYswgDg2zs7RHKSvY4+gNt4SBHeF0G3Xg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
lxml
|
||||||
|
numpy
|
||||||
|
scikit-image
|
||||||
|
scikit-learn
|
||||||
|
matplotlib
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# They hard-code the path to the dataset and expect you to edit the test to update it to your value
|
||||||
|
"test/test_dataset.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Tools for working with the MUSCIMA++ dataset of handwritten music notation";
|
||||||
|
homepage = "https://github.com/hajicj/muscima";
|
||||||
|
changelog = "https://github.com/hajicj/muscima/blob/${rev}/CHANGES.md";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ piegames ];
|
||||||
|
};
|
||||||
|
}
|
74
pkgs/development/python-modules/omrdatasettools/default.nix
Normal file
74
pkgs/development/python-modules/omrdatasettools/default.nix
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, h5py
|
||||||
|
, ipython
|
||||||
|
, lxml
|
||||||
|
, mung
|
||||||
|
, muscima
|
||||||
|
, numpy
|
||||||
|
, pillow
|
||||||
|
, pytestCheckHook
|
||||||
|
, scikit-image
|
||||||
|
, sphinx-rtd-theme
|
||||||
|
, sympy
|
||||||
|
, pandas
|
||||||
|
, pyhamcrest
|
||||||
|
, tqdm
|
||||||
|
, twine
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "omrdatasettools";
|
||||||
|
version = "1.3.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0cdq02jp8vh78yjq9bncjjl0pb554idrcxkd62rzwk4l6ss2fkw5";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pillow
|
||||||
|
scikit-image
|
||||||
|
h5py
|
||||||
|
pyhamcrest
|
||||||
|
muscima
|
||||||
|
mung
|
||||||
|
numpy
|
||||||
|
lxml
|
||||||
|
tqdm
|
||||||
|
twine
|
||||||
|
sympy
|
||||||
|
sphinx-rtd-theme
|
||||||
|
pandas
|
||||||
|
ipython
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# The download tests require internet access
|
||||||
|
"omrdatasettools/tests/test_downloader.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# The download tests require internet access
|
||||||
|
"test_download_extract_and_crop_bitmaps"
|
||||||
|
"test_download_extract_and_render_all_symbols"
|
||||||
|
"test_download_extract_and_draw_bitmaps"
|
||||||
|
# Other failures
|
||||||
|
"test_render_node_masks_instance_segmentation_of_staff_blobs"
|
||||||
|
"test_render_node_masks_instance_segmentation_of_staff_lines"
|
||||||
|
"test_render_node_masks_semantic_segmentation_of_nodes"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Collection of datasets used for Optical Music Recognition";
|
||||||
|
homepage = "https://github.com/apacha/OMR-Datasets";
|
||||||
|
changelog = "https://github.com/apacha/OMR-Datasets/blob/${version}/CHANGES.md";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ piegames ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -49,7 +49,11 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [ py pytestCheckHook wireshark-cli ];
|
nativeCheckInputs = [ py pytestCheckHook wireshark-cli ];
|
||||||
|
|
||||||
disabledTests = lib.optionals stdenv.isDarwin [
|
disabledTests = [
|
||||||
|
# flaky
|
||||||
|
# KeyError: 'Packet of index 0 does not exist in capture'
|
||||||
|
"test_getting_packet_summary"
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
# fails on darwin
|
# fails on darwin
|
||||||
# _pickle.PicklingError: logger cannot be pickled
|
# _pickle.PicklingError: logger cannot be pickled
|
||||||
"test_iterate_empty_psml_capture"
|
"test_iterate_empty_psml_capture"
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
{ buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, pythonAtLeast
|
|
||||||
, lib
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "wasm";
|
|
||||||
version = "1.2";
|
|
||||||
|
|
||||||
disabled = pythonAtLeast "3.10"; # project is abandoned, remove we whe move to py310/311
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "179xcinfc35xgk0bf9y58kwxzymzk7c1p58w6khmqfiqvb91j3r8";
|
|
||||||
};
|
|
||||||
|
|
||||||
# there are no tests
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "wasm" ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "WebAssembly decoder and disassembler";
|
|
||||||
homepage = "https://github.com/athre0z/wasm";
|
|
||||||
changelog = "https://github.com/athre0z/wasm/blob/master/CHANGELOG.md";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ arturcygan ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,7 +1,9 @@
|
||||||
{ lib
|
{ lib
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, stdenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "ast-grep";
|
pname = "ast-grep";
|
||||||
version = "0.5.2";
|
version = "0.5.2";
|
||||||
|
@ -15,6 +17,17 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoHash = "sha256-ed6hc7MIo/Hu1JY7yy6dYHbaTZ9S+T0dh/2H3sTT52Y=";
|
cargoHash = "sha256-ed6hc7MIo/Hu1JY7yy6dYHbaTZ9S+T0dh/2H3sTT52Y=";
|
||||||
|
|
||||||
|
# error: linker `aarch64-linux-gnu-gcc` not found
|
||||||
|
postPatch = ''
|
||||||
|
rm .cargo/config.toml
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkFlags = lib.optionals (stdenv.isx86_64 && stdenv.isDarwin) [
|
||||||
|
# fails on emulated x86_64-darwin
|
||||||
|
# mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')
|
||||||
|
"--skip=test::test_load_parser"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
mainProgram = "sg";
|
mainProgram = "sg";
|
||||||
description = "A fast and polyglot tool for code searching, linting, rewriting at large scale";
|
description = "A fast and polyglot tool for code searching, linting, rewriting at large scale";
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "oh-my-posh";
|
pname = "oh-my-posh";
|
||||||
version = "16.4.2";
|
version = "16.7.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jandedobbeleer";
|
owner = "jandedobbeleer";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-hCLnoT7xkXHKCp3dvNhMjEKvKCHEWsuO9+aORcH7E8E=";
|
hash = "sha256-4jbZDCQTeqotR7X1gPPcwPrd8vqVS0Xrl/gZKIW49dY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-KdvZ0OY6iJYwdK0oKqBp7bYlCe7F5BUfSWTEIMbkZcA=";
|
vendorHash = "sha256-KdvZ0OY6iJYwdK0oKqBp7bYlCe7F5BUfSWTEIMbkZcA=";
|
||||||
|
|
|
@ -1,22 +1,23 @@
|
||||||
{ fetchFromGitHub, rustPlatform, lib }:
|
{ lib, rustPlatform, fetchFromGitHub }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "typos";
|
pname = "typos";
|
||||||
version = "1.14.9";
|
version = "1.14.10";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "crate-ci";
|
owner = "crate-ci";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-dfUXH7MRTnHYSqNJzlT0fUn/Er0wrTARq3ZuOdWToow=";
|
hash = "sha256-RPdDPVOV2V+WK2crZ9e84BjNOYGJCgLhYDTj17QX+IM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-+u/3XtC/HxtAsX4dRf74u0BLh872Y2kK+BnbWqUnUdo=";
|
cargoHash = "sha256-LAZcyGU/qrBhmF+Nx+ypmSzCieW49ZQCqmG+0h6yB3g=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Source code spell checker";
|
description = "Source code spell checker";
|
||||||
homepage = "https://github.com/crate-ci/typos/";
|
homepage = "https://github.com/crate-ci/typos";
|
||||||
|
changelog = "https://github.com/crate-ci/typos/blob/${src.rev}/CHANGELOG.md";
|
||||||
license = with licenses; [ asl20 /* or */ mit ];
|
license = with licenses; [ asl20 /* or */ mit ];
|
||||||
maintainers = [ maintainers.mgttlinger ];
|
maintainers = with maintainers; [ figsoda mgttlinger ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
, SDL2
|
, SDL2
|
||||||
, SDL2_image
|
, SDL2_image
|
||||||
, SDL2_mixer
|
, SDL2_mixer
|
||||||
|
, Cocoa
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -28,6 +29,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
SDL2
|
SDL2
|
||||||
SDL2_image
|
SDL2_image
|
||||||
SDL2_mixer
|
SDL2_mixer
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
|
Cocoa
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
|
@ -47,8 +47,7 @@
|
||||||
# symbolic name and `patch' is the actual patch. The patch may
|
# symbolic name and `patch' is the actual patch. The patch may
|
||||||
# optionally be compressed with gzip or bzip2.
|
# optionally be compressed with gzip or bzip2.
|
||||||
kernelPatches ? []
|
kernelPatches ? []
|
||||||
, ignoreConfigErrors ? stdenv.hostPlatform.linux-kernel.name != "pc" ||
|
, ignoreConfigErrors ? stdenv.hostPlatform.linux-kernel.name != "pc"
|
||||||
stdenv.hostPlatform != stdenv.buildPlatform
|
|
||||||
, extraMeta ? {}
|
, extraMeta ? {}
|
||||||
|
|
||||||
, isZen ? false
|
, isZen ? false
|
||||||
|
|
146
pkgs/os-specific/linux/minimal-bootstrap/bash/2.nix
Normal file
146
pkgs/os-specific/linux/minimal-bootstrap/bash/2.nix
Normal file
|
@ -0,0 +1,146 @@
|
||||||
|
{ lib
|
||||||
|
, derivationWithMeta
|
||||||
|
, fetchurl
|
||||||
|
, kaem
|
||||||
|
, tinycc
|
||||||
|
, gnumake
|
||||||
|
, gnupatch
|
||||||
|
, coreutils
|
||||||
|
, mescc-tools-extra
|
||||||
|
, bash_2_05
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
pname = "bash";
|
||||||
|
version = "2.05b";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://gnu/bash/bash-${version}.tar.gz";
|
||||||
|
sha256 = "1r1z2qdw3rz668nxrzwa14vk2zcn00hw7mpjn384picck49d80xs";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Thanks to the live-bootstrap project!
|
||||||
|
# See https://github.com/fosslinux/live-bootstrap/blob/1bc4296091c51f53a5598050c8956d16e945b0f5/sysa/bash-2.05b/bash-2.05b.kaem
|
||||||
|
liveBootstrap = "https://github.com/fosslinux/live-bootstrap/raw/1bc4296091c51f53a5598050c8956d16e945b0f5/sysa/bash-2.05b";
|
||||||
|
|
||||||
|
main_mk = fetchurl {
|
||||||
|
url = "${liveBootstrap}/mk/main.mk";
|
||||||
|
sha256 = "0hj29q3pq3370p18sxkpvv9flb7yvx2fs96xxlxqlwa8lkimd0j4";
|
||||||
|
};
|
||||||
|
|
||||||
|
common_mk = fetchurl {
|
||||||
|
url = "${liveBootstrap}/mk/common.mk";
|
||||||
|
sha256 = "09rigxxf85p2ybnq248sai1gdx95yykc8jmwi4yjx389zh09mcr8";
|
||||||
|
};
|
||||||
|
|
||||||
|
builtins_mk = fetchurl {
|
||||||
|
url = "${liveBootstrap}/mk/builtins.mk";
|
||||||
|
sha256 = "0939dy5by1xhfmsjj6w63nlgk509fjrhpb2crics3dpcv7prl8lj";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# mes libc does not have locale support
|
||||||
|
(fetchurl {
|
||||||
|
url = "${liveBootstrap}/patches/mes-libc.patch";
|
||||||
|
sha256 = "0zksdjf6zbb3p4hqg6plq631y76hhhgab7kdvf7cnpk8bcykn12z";
|
||||||
|
})
|
||||||
|
# int name, namelen; is wrong for mes libc, it is char* name, so we modify tinycc
|
||||||
|
# to reflect this.
|
||||||
|
(fetchurl {
|
||||||
|
url = "${liveBootstrap}/patches/tinycc.patch";
|
||||||
|
sha256 = "042d2kr4a8klazk1hlvphxr6frn4mr53k957aq3apf6lbvrjgcj2";
|
||||||
|
})
|
||||||
|
# add ifdef's for features we don't want
|
||||||
|
(fetchurl {
|
||||||
|
url = "${liveBootstrap}/patches/missing-defines.patch";
|
||||||
|
sha256 = "1q0k1kj5mrvjkqqly7ki5575a5b3hy1ywnmvhrln318yh67qnkj4";
|
||||||
|
})
|
||||||
|
# mes libc + setting locale = not worky
|
||||||
|
(fetchurl {
|
||||||
|
url = "${liveBootstrap}/patches/locale.patch";
|
||||||
|
sha256 = "1p1q1slhafsgj8x4k0dpn9h6ryq5fwfx7dicbbxhldbw7zvnnbx9";
|
||||||
|
})
|
||||||
|
# We do not have /dev at this stage of the bootstrap, including /dev/tty
|
||||||
|
(fetchurl {
|
||||||
|
url = "${liveBootstrap}/patches/dev-tty.patch";
|
||||||
|
sha256 = "1315slv5f7ziajqyxg4jlyanf1xwd06xw14y6pq7xpm3jzjk55j9";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
in
|
||||||
|
kaem.runCommand "${pname}-${version}" {
|
||||||
|
inherit pname version;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
tinycc.compiler
|
||||||
|
gnumake
|
||||||
|
gnupatch
|
||||||
|
coreutils
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.runCommand = name: env: buildCommand:
|
||||||
|
derivationWithMeta ({
|
||||||
|
inherit name buildCommand;
|
||||||
|
builder = "${bash_2_05}/bin/bash";
|
||||||
|
args = [
|
||||||
|
"-e"
|
||||||
|
(builtins.toFile "bash-builder.sh" ''
|
||||||
|
export CONFIG_SHELL=$SHELL
|
||||||
|
bash -eux $buildCommandPath
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
passAsFile = [ "buildCommand" ];
|
||||||
|
|
||||||
|
SHELL = "${bash_2_05}/bin/bash";
|
||||||
|
PATH = lib.makeBinPath ((env.nativeBuildInputs or []) ++ [
|
||||||
|
bash_2_05
|
||||||
|
coreutils
|
||||||
|
# provides untar, ungz, and unbz2
|
||||||
|
mescc-tools-extra
|
||||||
|
]);
|
||||||
|
} // (builtins.removeAttrs env [ "nativeBuildInputs" ]));
|
||||||
|
|
||||||
|
passthru.tests.get-version = result:
|
||||||
|
kaem.runCommand "${pname}-get-version-${version}" {} ''
|
||||||
|
${result}/bin/bash --version
|
||||||
|
mkdir ''${out}
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "GNU Bourne-Again Shell, the de facto standard shell on Linux";
|
||||||
|
homepage = "https://www.gnu.org/software/bash";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = teams.minimal-bootstrap.members;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
} ''
|
||||||
|
# Unpack
|
||||||
|
ungz --file ${src} --output bash.tar
|
||||||
|
untar --file bash.tar
|
||||||
|
rm bash.tar
|
||||||
|
cd bash-${version}
|
||||||
|
|
||||||
|
# Patch
|
||||||
|
${lib.concatMapStringsSep "\n" (f: "patch -Np0 -i ${f}") patches}
|
||||||
|
|
||||||
|
# Configure
|
||||||
|
cp ${main_mk} Makefile
|
||||||
|
cp ${builtins_mk} builtins/Makefile
|
||||||
|
cp ${common_mk} common.mk
|
||||||
|
touch config.h
|
||||||
|
touch include/version.h
|
||||||
|
touch include/pipesize.h
|
||||||
|
|
||||||
|
# Build
|
||||||
|
make \
|
||||||
|
CC="tcc -B ${tinycc.libs}/lib" \
|
||||||
|
mkbuiltins
|
||||||
|
cd builtins
|
||||||
|
make \
|
||||||
|
CC="tcc -B ${tinycc.libs}/lib" \
|
||||||
|
libbuiltins.a
|
||||||
|
cd ..
|
||||||
|
make CC="tcc -B ${tinycc.libs}/lib"
|
||||||
|
|
||||||
|
# Install
|
||||||
|
install -D bash ''${out}/bin/bash
|
||||||
|
ln -s bash ''${out}/bin/sh
|
||||||
|
''
|
|
@ -11,6 +11,8 @@ lib.makeScope
|
||||||
(extra: lib.callPackageWith ({ inherit lib config buildPlatform hostPlatform; } // extra))
|
(extra: lib.callPackageWith ({ inherit lib config buildPlatform hostPlatform; } // extra))
|
||||||
(self: with self; {
|
(self: with self; {
|
||||||
|
|
||||||
|
bash_2_05 = callPackage ./bash/2.nix { tinycc = tinycc-mes; };
|
||||||
|
|
||||||
coreutils = callPackage ./coreutils { tinycc = tinycc-mes; };
|
coreutils = callPackage ./coreutils { tinycc = tinycc-mes; };
|
||||||
|
|
||||||
gnupatch = callPackage ./gnupatch { tinycc = tinycc-mes; };
|
gnupatch = callPackage ./gnupatch { tinycc = tinycc-mes; };
|
||||||
|
@ -34,6 +36,7 @@ lib.makeScope
|
||||||
test = kaem.runCommand "minimal-bootstrap-test" {} ''
|
test = kaem.runCommand "minimal-bootstrap-test" {} ''
|
||||||
echo ${mes.compiler.tests.get-version}
|
echo ${mes.compiler.tests.get-version}
|
||||||
echo ${tinycc-mes.compiler.tests.chain}
|
echo ${tinycc-mes.compiler.tests.chain}
|
||||||
|
echo ${bash_2_05.tests.get-version}
|
||||||
mkdir ''${out}
|
mkdir ''${out}
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
|
@ -35,14 +35,14 @@ let
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "18.2.0-53488";
|
version = "18.3.0-53606";
|
||||||
pname = "prl-tools";
|
pname = "prl-tools";
|
||||||
|
|
||||||
# We download the full distribution to extract prl-tools-lin.iso from
|
# We download the full distribution to extract prl-tools-lin.iso from
|
||||||
# => ${dmg}/Parallels\ Desktop.app/Contents/Resources/Tools/prl-tools-lin.iso
|
# => ${dmg}/Parallels\ Desktop.app/Contents/Resources/Tools/prl-tools-lin.iso
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.parallels.com/desktop/v${lib.versions.major version}/${version}/ParallelsDesktop-${version}.dmg";
|
url = "https://download.parallels.com/desktop/v${lib.versions.major version}/${version}/ParallelsDesktop-${version}.dmg";
|
||||||
hash = "sha256-FpAbQQapIcZ7GsGjH4ZeJ81Ke+NUF7GvgV1wEDLKoUU=";
|
hash = "sha256-uthaY6266YJqh5UtlI6ifmJVZVC6JTlsEoxEUOihx4I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
hardeningDisable = [ "pic" "format" ];
|
hardeningDisable = [ "pic" "format" ];
|
||||||
|
@ -84,8 +84,6 @@ stdenv.mkDerivation rec {
|
||||||
runHook postUnpack
|
runHook postUnpack
|
||||||
'';
|
'';
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = lib.optionalString (lib.versionAtLeast kernelVersion "6.3") "-Wno-incompatible-pointer-types";
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
|
|
|
@ -14,15 +14,15 @@ let
|
||||||
in
|
in
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "pomerium";
|
pname = "pomerium";
|
||||||
version = "0.21.3";
|
version = "0.22.1";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pomerium";
|
owner = "pomerium";
|
||||||
repo = "pomerium";
|
repo = "pomerium";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-OB44/6ha72882SzaMpotchU8RrU10rvUL58sCiCKcok=";
|
sha256 = "sha256-Z3mnBPFF354QQ/oswzvlsHoBmQ4QRYltAnsBKmjQ3Hc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-8g3jhxKIT0EGUXh0hrvDbw3i04khqlAfGzM6k4q3O8g=";
|
vendorSha256 = "sha256-xe8as7OY1+tTSqgpwk2Q1jcBnn89latJpMyx4KG7zg8=";
|
||||||
|
|
||||||
ui = mkYarnPackage {
|
ui = mkYarnPackage {
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "mautrix-whatsapp";
|
pname = "mautrix-whatsapp";
|
||||||
version = "0.8.4";
|
version = "0.8.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mautrix";
|
owner = "mautrix";
|
||||||
repo = "whatsapp";
|
repo = "whatsapp";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-4dOkSnurg2Sk36Z2WNjPaO092IiRlzc9oWM6sQ+wUwM=";
|
hash = "sha256-XiDuH4W5yghbT2wIcqcC2y1qJH62mWvTk6ca3KedkIk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ olm ];
|
buildInputs = [ olm ];
|
||||||
|
|
||||||
vendorSha256 = "sha256-48C9aaOe148emSsxzfKFKtnXyC39IFO8Ge7d+rIhDac=";
|
vendorSha256 = "sha256-m9wB6u76ONw0+mZeCnwEYOqBvghil+rcKUJFKRaT5Nk=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
|
|
||||||
mkYarnPackage rec {
|
mkYarnPackage rec {
|
||||||
pname = "grafana-image-renderer";
|
pname = "grafana-image-renderer";
|
||||||
version = "3.7.0";
|
version = "3.7.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "grafana";
|
owner = "grafana";
|
||||||
repo = "grafana-image-renderer";
|
repo = "grafana-image-renderer";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-kbL6I2aFHyCmBiB1x02e3H7wIO4TE8ty6vHJEu/T8fI=";
|
sha256 = "sha256-hYjl8jwRqcWdxDlUxUBTd3A6giJVWa0l+BZvfYInD0Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -10,14 +10,14 @@ let
|
||||||
"Unsupported system: ${stdenv.hostPlatform.system}");
|
"Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
|
|
||||||
hash = {
|
hash = {
|
||||||
x64-linux_hash = "sha256-ospnFR3syNLxy6USCrfFea2zePMa9P7opRk3hbPtpOM=";
|
x64-linux_hash = "sha256-3gvR82JiWvw+jkF68Xm/UH7OsOPqmDlVwYDaNbNf7Jg=";
|
||||||
arm64-linux_hash = "sha256-weOfb1NcVGHF1bkll0tkLxVn3TQnIq2VsRegVWk8aDc=";
|
arm64-linux_hash = "sha256-4ckLs7vwTffB205Pa9BOkw+6PbVOb8tVp8S2D+Ic8fM=";
|
||||||
x64-osx_hash = "sha256-dhQbmwDkezPZFHnGg0+bLKBWPDbRUX82imrGx5cX+ks=";
|
x64-osx_hash = "sha256-by2+rf/pODD7RuxTEeyh1pJ+kGYVmwlVSwxDPgeNzW4=";
|
||||||
}."${arch}-${os}_hash";
|
}."${arch}-${os}_hash";
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "ombi";
|
pname = "ombi";
|
||||||
version = "4.35.10";
|
version = "4.39.1";
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, fetchurl, jdk, buildFHSEnv, unzip, makeDesktopItem }:
|
{ lib, fetchurl, jdk, buildFHSEnv, unzip, makeDesktopItem }:
|
||||||
let
|
let
|
||||||
version = "2023.4.3";
|
version = "2023.4.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
name = "burpsuite.jar";
|
name = "burpsuite.jar";
|
||||||
|
@ -8,7 +8,7 @@ let
|
||||||
"https://portswigger.net/burp/releases/download?productId=100&version=${version}&type=Jar"
|
"https://portswigger.net/burp/releases/download?productId=100&version=${version}&type=Jar"
|
||||||
"https://web.archive.org/web/https://portswigger.net/burp/releases/download?productId=100&version=${version}&type=Jar"
|
"https://web.archive.org/web/https://portswigger.net/burp/releases/download?productId=100&version=${version}&type=Jar"
|
||||||
];
|
];
|
||||||
sha256 = "2e756e48f31b88590445f2b1dc4806c2f3613f9fde4dab357acb3850fd77303e";
|
sha256 = "fac29bfd58be87b3c77091befede82b417aca3145e66c5d9ff02ca4939f420a3";
|
||||||
};
|
};
|
||||||
|
|
||||||
name = "burpsuite-${version}";
|
name = "burpsuite-${version}";
|
||||||
|
|
|
@ -7,22 +7,23 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "mqttui";
|
pname = "mqttui";
|
||||||
version = "0.18.0";
|
version = "0.19.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "EdJoPaTo";
|
owner = "EdJoPaTo";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-XREY86CcxH+YqzOpu5vXiP6lIZaj+twKQgGmn7MR1As=";
|
hash = "sha256-cezG9hdHOeTExX4OJwJ22e/PvfdySPzQGwxumavV++Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-V5jVgNIV+Bl1nYKy2RYFbKYo/x65gG3RmB+XjFATxN8=";
|
cargoHash = "sha256-vSlziZtjyzsd346qUBEPEl8I3UlPhWHRu4+FiD1XqOo=";
|
||||||
|
|
||||||
buildInputs = lib.optional stdenv.isDarwin Security;
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Terminal client for MQTT";
|
description = "Terminal client for MQTT";
|
||||||
homepage = "https://github.com/EdJoPaTo/mqttui";
|
homepage = "https://github.com/EdJoPaTo/mqttui";
|
||||||
|
changelog = "https://github.com/EdJoPaTo/mqttui/blob/v${version}/CHANGELOG.md";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,16 +5,16 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "muffet";
|
pname = "muffet";
|
||||||
version = "2.8.0";
|
version = "2.8.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "raviqqe";
|
owner = "raviqqe";
|
||||||
repo = "muffet";
|
repo = "muffet";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-8+aOxrmLc0iM6uQ35Qtn+a8bzNS1zg1AM25hDylvAEQ=";
|
hash = "sha256-SQtAT4vK1jLwwMha/HuJjh3BtDTdxV7BDgmwxlK+lqc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-BmaljudKwALbx8ECVOpXlEi+/3pOt6osRqHvn9Ek/MI=";
|
vendorHash = "sha256-/qK4x44J2fDSXxGK3kczWY4NZVPPhRo4NMnyxV6W6CY=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A website link checker which scrapes and inspects all pages in a website recursively";
|
description = "A website link checker which scrapes and inspects all pages in a website recursively";
|
||||||
|
|
22
pkgs/tools/networking/rabtap/default.nix
Normal file
22
pkgs/tools/networking/rabtap/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ buildGoModule, fetchFromGitHub, lib }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "rabtap";
|
||||||
|
version = "1.38.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jandelgado";
|
||||||
|
repo = "rabtap";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-l35MHr7NWBlzKcGSDGjHTwGfnDrOpjeJp9/YAp1Areo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-sJFMef9VnU6iKGf9UwEK60axLUBkubFWgI+pWKjaWNU=";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "RabbitMQ wire tap and swiss army knife";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
homepage = "https://github.com/jandelgado/rabtap";
|
||||||
|
maintainers = with maintainers; [ eigengrau ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,13 +6,13 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "exploitdb";
|
pname = "exploitdb";
|
||||||
version = "2023-05-17";
|
version = "2023-05-19";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "exploit-database";
|
owner = "exploit-database";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-WbGtfxnEBOmmK9TjxSWJSEUHaUE9gX1hm9hmA4xkHhU=";
|
hash = "sha256-5VHsf7qvbDZPLyr411qNwZM0/aDo2PXfdh94/lgrc5M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "daemon";
|
pname = "daemon";
|
||||||
version = "0.8";
|
version = "0.8.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://libslack.org/daemon/download/daemon-${version}.tar.gz";
|
url = "http://libslack.org/daemon/download/daemon-${version}.tar.gz";
|
||||||
sha256 = "sha256-dPEubUs8hWMkib0IQx09mXvBcmS/V7cgI4Ty6AnP9ZY=";
|
sha256 = "sha256-s0s3VDu6Q70Ibln0t1TIECOArlwXKLmHyJDV2ktM88o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
|
|
|
@ -459,7 +459,7 @@ mapAliases ({
|
||||||
enyo-doom = enyo-launcher; # Added 2022-09-09
|
enyo-doom = enyo-launcher; # Added 2022-09-09
|
||||||
epoxy = libepoxy; # Added 2021-11-11
|
epoxy = libepoxy; # Added 2021-11-11
|
||||||
epsxe = throw "epsxe has been removed from nixpkgs, as it was unmaintained."; # added 2021-12-15
|
epsxe = throw "epsxe has been removed from nixpkgs, as it was unmaintained."; # added 2021-12-15
|
||||||
inherit (beam.interpreters) erlangR25 erlangR24 erlangR23; # added 2023-03-21
|
inherit (beam.interpreters) erlangR26 erlangR25 erlangR24 erlangR23; # added 2023-03-21
|
||||||
erlang_21 = throw "erlangR21 has been removed in favor of newer versions."; # added 2023-03-21
|
erlang_21 = throw "erlangR21 has been removed in favor of newer versions."; # added 2023-03-21
|
||||||
erlangR21 = erlang_21;
|
erlangR21 = erlang_21;
|
||||||
erlang_22 = throw "erlangR22 has been removed in favor of newer versions."; # added 2023-03-21
|
erlang_22 = throw "erlangR22 has been removed in favor of newer versions."; # added 2023-03-21
|
||||||
|
|
|
@ -1048,6 +1048,8 @@ with pkgs;
|
||||||
|
|
||||||
libredirect = callPackage ../build-support/libredirect { };
|
libredirect = callPackage ../build-support/libredirect { };
|
||||||
|
|
||||||
|
livecaptions = callPackage ../applications/misc/livecaptions { };
|
||||||
|
|
||||||
madonctl = callPackage ../applications/misc/madonctl { };
|
madonctl = callPackage ../applications/misc/madonctl { };
|
||||||
|
|
||||||
copyDesktopItems = makeSetupHook {
|
copyDesktopItems = makeSetupHook {
|
||||||
|
@ -1665,6 +1667,8 @@ with pkgs;
|
||||||
|
|
||||||
quich = callPackage ../tools/misc/quich { } ;
|
quich = callPackage ../tools/misc/quich { } ;
|
||||||
|
|
||||||
|
rabtap = callPackage ../tools/networking/rabtap { } ;
|
||||||
|
|
||||||
redfang = callPackage ../tools/networking/redfang { };
|
redfang = callPackage ../tools/networking/redfang { };
|
||||||
|
|
||||||
s0ix-selftest-tool = callPackage ../tools/system/s0ix-selftest-tool { };
|
s0ix-selftest-tool = callPackage ../tools/system/s0ix-selftest-tool { };
|
||||||
|
@ -19577,7 +19581,7 @@ with pkgs;
|
||||||
|
|
||||||
armadillo = callPackage ../development/libraries/armadillo { };
|
armadillo = callPackage ../development/libraries/armadillo { };
|
||||||
|
|
||||||
arrayfire = callPackage ../development/libraries/arrayfire { };
|
arrayfire = darwin.apple_sdk_11_0.callPackage ../development/libraries/arrayfire { };
|
||||||
|
|
||||||
arrow-cpp = callPackage ../development/libraries/arrow-cpp { };
|
arrow-cpp = callPackage ../development/libraries/arrow-cpp { };
|
||||||
|
|
||||||
|
@ -24413,6 +24417,8 @@ with pkgs;
|
||||||
|
|
||||||
wangle = callPackage ../development/libraries/wangle { };
|
wangle = callPackage ../development/libraries/wangle { };
|
||||||
|
|
||||||
|
wapp = callPackage ../development/libraries/wapp { };
|
||||||
|
|
||||||
wavpack = callPackage ../development/libraries/wavpack { };
|
wavpack = callPackage ../development/libraries/wavpack { };
|
||||||
|
|
||||||
wayland = darwin.apple_sdk_11_0.callPackage ../development/libraries/wayland { };
|
wayland = darwin.apple_sdk_11_0.callPackage ../development/libraries/wayland { };
|
||||||
|
@ -31261,6 +31267,8 @@ with pkgs;
|
||||||
singularity-overriden-nixos
|
singularity-overriden-nixos
|
||||||
;
|
;
|
||||||
|
|
||||||
|
sfwbar = callPackage ../applications/misc/sfwbar { };
|
||||||
|
|
||||||
skate = callPackage ../applications/misc/skate { };
|
skate = callPackage ../applications/misc/skate { };
|
||||||
|
|
||||||
slack = callPackage ../applications/networking/instant-messengers/slack { };
|
slack = callPackage ../applications/networking/instant-messengers/slack { };
|
||||||
|
@ -33650,7 +33658,7 @@ with pkgs;
|
||||||
|
|
||||||
quirc = callPackage ../tools/graphics/quirc { };
|
quirc = callPackage ../tools/graphics/quirc { };
|
||||||
|
|
||||||
quisk = python39Packages.callPackage ../applications/radio/quisk { };
|
quisk = callPackage ../applications/radio/quisk { };
|
||||||
|
|
||||||
quiterss = libsForQt5.callPackage ../applications/networking/newsreaders/quiterss { };
|
quiterss = libsForQt5.callPackage ../applications/networking/newsreaders/quiterss { };
|
||||||
|
|
||||||
|
@ -35955,7 +35963,9 @@ with pkgs;
|
||||||
|
|
||||||
doomseeker = qt5.callPackage ../games/doom-ports/doomseeker { };
|
doomseeker = qt5.callPackage ../games/doom-ports/doomseeker { };
|
||||||
|
|
||||||
doomretro = callPackage ../games/doom-ports/doomretro { };
|
doomretro = callPackage ../games/doom-ports/doomretro {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
||||||
|
};
|
||||||
|
|
||||||
chocolate-doom = callPackage ../games/doom-ports/chocolate-doom { };
|
chocolate-doom = callPackage ../games/doom-ports/chocolate-doom { };
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ let
|
||||||
self = beam;
|
self = beam;
|
||||||
|
|
||||||
# Aliases added 2023-03-21
|
# Aliases added 2023-03-21
|
||||||
versionLoop = f: lib.lists.foldr (version: acc: (f version) // acc) { } [ "25" "24" "23" ];
|
versionLoop = f: lib.lists.foldr (version: acc: (f version) // acc) { } [ "26" "25" "24" "23" ];
|
||||||
|
|
||||||
interpretersAliases = versionLoop (version: {
|
interpretersAliases = versionLoop (version: {
|
||||||
"erlangR${version}" = self.interpreters."erlang_${version}";
|
"erlangR${version}" = self.interpreters."erlang_${version}";
|
||||||
|
@ -42,6 +42,19 @@ in
|
||||||
|
|
||||||
# Standard Erlang versions, using the generic builder.
|
# Standard Erlang versions, using the generic builder.
|
||||||
|
|
||||||
|
erlang_26 = self.beamLib.callErlang ../development/interpreters/erlang/26.nix {
|
||||||
|
wxGTK = wxGTK32;
|
||||||
|
parallelBuild = true;
|
||||||
|
autoconf = buildPackages.autoconf269;
|
||||||
|
inherit wxSupport systemdSupport;
|
||||||
|
};
|
||||||
|
erlang_26_odbc = self.interpreters.erlang_26.override { odbcSupport = true; };
|
||||||
|
erlang_26_javac = self.interpreters.erlang_26.override { javacSupport = true; };
|
||||||
|
erlang_26_odbc_javac = self.interpreters.erlang_26.override {
|
||||||
|
javacSupport = true;
|
||||||
|
odbcSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
erlang_25 = self.beamLib.callErlang ../development/interpreters/erlang/25.nix {
|
erlang_25 = self.beamLib.callErlang ../development/interpreters/erlang/25.nix {
|
||||||
wxGTK = wxGTK32;
|
wxGTK = wxGTK32;
|
||||||
parallelBuild = true;
|
parallelBuild = true;
|
||||||
|
@ -100,6 +113,7 @@ in
|
||||||
packages = {
|
packages = {
|
||||||
erlang = self.packages.${self.latestVersion};
|
erlang = self.packages.${self.latestVersion};
|
||||||
|
|
||||||
|
erlang_26 = self.packagesWith self.interpreters.erlang_26;
|
||||||
erlang_25 = self.packagesWith self.interpreters.erlang_25;
|
erlang_25 = self.packagesWith self.interpreters.erlang_25;
|
||||||
erlang_24 = self.packagesWith self.interpreters.erlang_24;
|
erlang_24 = self.packagesWith self.interpreters.erlang_24;
|
||||||
erlang_23 = self.packagesWith self.interpreters.erlang_23;
|
erlang_23 = self.packagesWith self.interpreters.erlang_23;
|
||||||
|
|
|
@ -161,6 +161,7 @@ mapAliases ({
|
||||||
mailman = throw "Please use pkgs.mailman"; # added 2022-04-29
|
mailman = throw "Please use pkgs.mailman"; # added 2022-04-29
|
||||||
mailman-hyperkitty = throw "Please use pkgs.mailmanPackages.mailman-hyperkitty"; # added 2022-04-29
|
mailman-hyperkitty = throw "Please use pkgs.mailmanPackages.mailman-hyperkitty"; # added 2022-04-29
|
||||||
mailman-web = throw "Please use pkgs.mailman-web"; # added 2022-04-29
|
mailman-web = throw "Please use pkgs.mailman-web"; # added 2022-04-29
|
||||||
|
manticore = throw "manticore has been removed because its dependency wasm no longer builds and is unmaintained"; # added 2023-05-20
|
||||||
mistune_0_8 = throw "mistune_0_8 was removed because it was outdated and insecure"; # added 2022-08-12
|
mistune_0_8 = throw "mistune_0_8 was removed because it was outdated and insecure"; # added 2022-08-12
|
||||||
mistune_2_0 = mistune; # added 2022-08-12
|
mistune_2_0 = mistune; # added 2022-08-12
|
||||||
mox = throw "mox was removed because it is unmaintained"; # added 2023-02-21
|
mox = throw "mox was removed because it is unmaintained"; # added 2023-02-21
|
||||||
|
@ -307,6 +308,7 @@ mapAliases ({
|
||||||
uproot3-methods = throw "uproot3-methods has been removed"; # added 2022-12-13
|
uproot3-methods = throw "uproot3-methods has been removed"; # added 2022-12-13
|
||||||
virtual-display = throw "virtual-display has been renamed to PyVirtualDisplay"; # added 2023-01-07
|
virtual-display = throw "virtual-display has been renamed to PyVirtualDisplay"; # added 2023-01-07
|
||||||
Wand = wand; # added 2022-11-13
|
Wand = wand; # added 2022-11-13
|
||||||
|
wasm = throw "wasm has been removed because it no longer builds and is unmaintained"; # added 2023-05-20
|
||||||
WazeRouteCalculator = wazeroutecalculator; # added 2021-09-29
|
WazeRouteCalculator = wazeroutecalculator; # added 2021-09-29
|
||||||
weakrefmethod = throw "weakrefmethod was removed since it's not needed in Python >= 3.4"; # added 2022-12-01
|
weakrefmethod = throw "weakrefmethod was removed since it's not needed in Python >= 3.4"; # added 2022-12-01
|
||||||
webapp2 = throw "webapp2 is unmaintained since 2012"; # added 2022-05-29
|
webapp2 = throw "webapp2 is unmaintained since 2012"; # added 2022-05-29
|
||||||
|
|
|
@ -5757,6 +5757,8 @@ self: super: with self; {
|
||||||
|
|
||||||
line_profiler = callPackage ../development/python-modules/line_profiler { };
|
line_profiler = callPackage ../development/python-modules/line_profiler { };
|
||||||
|
|
||||||
|
linetable = callPackage ../development/python-modules/linetable { };
|
||||||
|
|
||||||
lingua = callPackage ../development/python-modules/lingua { };
|
lingua = callPackage ../development/python-modules/lingua { };
|
||||||
|
|
||||||
linkify-it-py = callPackage ../development/python-modules/linkify-it-py { };
|
linkify-it-py = callPackage ../development/python-modules/linkify-it-py { };
|
||||||
|
@ -5964,10 +5966,6 @@ self: super: with self; {
|
||||||
|
|
||||||
manuel = callPackage ../development/python-modules/manuel { };
|
manuel = callPackage ../development/python-modules/manuel { };
|
||||||
|
|
||||||
manticore = callPackage ../development/python-modules/manticore {
|
|
||||||
inherit (pkgs) z3;
|
|
||||||
};
|
|
||||||
|
|
||||||
mapbox = callPackage ../development/python-modules/mapbox { };
|
mapbox = callPackage ../development/python-modules/mapbox { };
|
||||||
|
|
||||||
mapbox-earcut = callPackage ../development/python-modules/mapbox-earcut { };
|
mapbox-earcut = callPackage ../development/python-modules/mapbox-earcut { };
|
||||||
|
@ -6439,10 +6437,14 @@ self: super: with self; {
|
||||||
|
|
||||||
munch = callPackage ../development/python-modules/munch { };
|
munch = callPackage ../development/python-modules/munch { };
|
||||||
|
|
||||||
|
mung = callPackage ../development/python-modules/mung { };
|
||||||
|
|
||||||
munkres = callPackage ../development/python-modules/munkres { };
|
munkres = callPackage ../development/python-modules/munkres { };
|
||||||
|
|
||||||
murmurhash = callPackage ../development/python-modules/murmurhash { };
|
murmurhash = callPackage ../development/python-modules/murmurhash { };
|
||||||
|
|
||||||
|
muscima = callPackage ../development/python-modules/muscima { };
|
||||||
|
|
||||||
musicbrainzngs = callPackage ../development/python-modules/musicbrainzngs { };
|
musicbrainzngs = callPackage ../development/python-modules/musicbrainzngs { };
|
||||||
|
|
||||||
mutag = callPackage ../development/python-modules/mutag { };
|
mutag = callPackage ../development/python-modules/mutag { };
|
||||||
|
@ -6940,6 +6942,8 @@ self: super: with self; {
|
||||||
|
|
||||||
omnilogic = callPackage ../development/python-modules/omnilogic { };
|
omnilogic = callPackage ../development/python-modules/omnilogic { };
|
||||||
|
|
||||||
|
omrdatasettools = callPackage ../development/python-modules/omrdatasettools { };
|
||||||
|
|
||||||
ondilo = callPackage ../development/python-modules/ondilo { };
|
ondilo = callPackage ../development/python-modules/ondilo { };
|
||||||
|
|
||||||
onetimepass = callPackage ../development/python-modules/onetimepass { };
|
onetimepass = callPackage ../development/python-modules/onetimepass { };
|
||||||
|
@ -12786,8 +12790,6 @@ self: super: with self; {
|
||||||
|
|
||||||
wasserstein = callPackage ../development/python-modules/wasserstein { };
|
wasserstein = callPackage ../development/python-modules/wasserstein { };
|
||||||
|
|
||||||
wasm = callPackage ../development/python-modules/wasm { };
|
|
||||||
|
|
||||||
wasmerPackages = pkgs.recurseIntoAttrs (callPackage ../development/python-modules/wasmer { });
|
wasmerPackages = pkgs.recurseIntoAttrs (callPackage ../development/python-modules/wasmer { });
|
||||||
inherit (self.wasmerPackages) wasmer wasmer-compiler-cranelift wasmer-compiler-llvm wasmer-compiler-singlepass;
|
inherit (self.wasmerPackages) wasmer wasmer-compiler-cranelift wasmer-compiler-llvm wasmer-compiler-singlepass;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue