Merge master into staging-next

This commit is contained in:
github-actions[bot] 2024-03-20 18:01:02 +00:00 committed by GitHub
commit 36232fff71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
81 changed files with 986 additions and 562 deletions

View file

@ -2014,6 +2014,10 @@ example of such a situation is when `py.test` is used.
* Tests that attempt to access `$HOME` can be fixed by using the following * Tests that attempt to access `$HOME` can be fixed by using the following
work-around before running tests (e.g. `preCheck`): `export HOME=$(mktemp -d)` work-around before running tests (e.g. `preCheck`): `export HOME=$(mktemp -d)`
* Compiling with Cython causes tests to fail with a `ModuleNotLoadedError`.
This can be fixed with two changes in the derivation: 1) replacing `pytest` with
`pytestCheckHook` and 2) adding a `preCheck` containing `cd $out` to run
tests within the built output.
## Contributing {#contributing} ## Contributing {#contributing}

View file

@ -761,6 +761,11 @@
githubId = 786394; githubId = 786394;
name = "Alexander Krupenkin "; name = "Alexander Krupenkin ";
}; };
akshayka = {
github = "akshayka";
githubId = 1994308;
name = "Akshay Agrawal";
};
akshgpt7 = { akshgpt7 = {
email = "akshgpt7@gmail.com"; email = "akshgpt7@gmail.com";
github = "akshgpt7"; github = "akshgpt7";
@ -5005,6 +5010,12 @@
githubId = 283316; githubId = 283316;
name = "Dane Lipscombe"; name = "Dane Lipscombe";
}; };
dmadisetti = {
email = "nix@madisetti.me";
github = "dmadisetti";
githubId = 2689338;
name = "Dylan Madisetti";
};
dmalikov = { dmalikov = {
email = "malikov.d.y@gmail.com"; email = "malikov.d.y@gmail.com";
github = "dmalikov"; github = "dmalikov";
@ -9956,6 +9967,15 @@
githubId = 1621930; githubId = 1621930;
name = "Kamil Chmielewski"; name = "Kamil Chmielewski";
}; };
kamillaova = {
name = "Kamilla Ova";
email = "me@kamillaova.dev";
github = "Kamillaova";
githubId = 54859825;
keys = [{
fingerprint = "B2D0 AA53 8DBE 60B0 0811 3FC0 2D52 5F67 791E 5834";
}];
};
kampfschlaefer = { kampfschlaefer = {
email = "arnold@arnoldarts.de"; email = "arnold@arnoldarts.de";
github = "kampfschlaefer"; github = "kampfschlaefer";

View file

@ -95,6 +95,7 @@ magick,,,,,5.1,donovanglover
markdown,,,,,, markdown,,,,,,
mediator_lua,,,,,, mediator_lua,,,,,,
middleclass,,,,,, middleclass,,,,,,
mimetypes,,,,,,
mpack,,,,,, mpack,,,,,,
moonscript,https://github.com/leafo/moonscript.git,dev-1,,,,arobyn moonscript,https://github.com/leafo/moonscript.git,dev-1,,,,arobyn
nlua,,,,,,teto nlua,,,,,,teto

1 name src ref server version luaversion maintainers
95 markdown
96 mediator_lua
97 middleclass
98 mimetypes
99 mpack
100 moonscript https://github.com/leafo/moonscript.git dev-1 arobyn
101 nlua teto

View file

@ -86,7 +86,11 @@ in {
config = mkIf config.services.dnscache.enable { config = mkIf config.services.dnscache.enable {
environment.systemPackages = [ pkgs.djbdns ]; environment.systemPackages = [ pkgs.djbdns ];
users.users.dnscache.isSystemUser = true; users.users.dnscache = {
isSystemUser = true;
group = "dnscache";
};
users.groups.dnscache = {};
systemd.services.dnscache = { systemd.services.dnscache = {
description = "djbdns dnscache server"; description = "djbdns dnscache server";

View file

@ -749,7 +749,7 @@ in
boot.kernel.sysctl."fs.inotify.max_user_instances" = mkDefault 524288; boot.kernel.sysctl."fs.inotify.max_user_instances" = mkDefault 524288;
boot.kernel.sysctl."fs.inotify.max_user_watches" = mkDefault 524288; boot.kernel.sysctl."fs.inotify.max_user_watches" = mkDefault 524288;
programs.gnupg.agent.pinentryPackage = lib.mkDefault pkgs.pinentry-gnome3; programs.gnupg.agent.pinentryPackage = lib.mkOverride 1100 pkgs.pinentry-gnome3;
systemd.defaultUnit = mkIf cfg.autorun "graphical.target"; systemd.defaultUnit = mkIf cfg.autorun "graphical.target";

View file

@ -38,11 +38,24 @@ let
def drawterm_running(): def drawterm_running():
machine.succeed("pgrep drawterm") machine.succeed("pgrep drawterm")
# cage is a bit wonky here.
# it seems to lag behind drawing
# and somehow needs a single input character
# in order to get the first prompt to show up.
# This is not present in any other compositor
# as far as I know, and after spending a couple
# hours with the upstream source trying to deduce
# how to perhaps fix it, I figured just polling is OK.
@polling_condition
def cpu_shown_up():
machine.send_chars(".")
machine.wait_for_text("cpu", 1)
start_all() start_all()
machine.wait_for_unit("graphical.target") machine.wait_for_unit("graphical.target")
drawterm_running.wait() # type: ignore[union-attr] drawterm_running.wait() # type: ignore[union-attr]
machine.wait_for_text("cpu") cpu_shown_up.wait() # type: ignore[union-attr]
machine.send_chars("cpu\n") machine.send_chars("cpu\n")
machine.wait_for_text("auth") machine.wait_for_text("auth")
machine.send_chars("cpu\n") machine.send_chars("cpu\n")

View file

@ -7,7 +7,7 @@
, makeDesktopItem , makeDesktopItem
, copyDesktopItems , copyDesktopItems
, cmake , cmake
, boost , boost183
, zlib , zlib
, openssl , openssl
, R , R
@ -40,18 +40,19 @@
let let
pname = "RStudio"; pname = "RStudio";
version = version = "2023.12.1+402";
"${RSTUDIO_VERSION_MAJOR}.${RSTUDIO_VERSION_MINOR}.${RSTUDIO_VERSION_PATCH}${RSTUDIO_VERSION_SUFFIX}"; RSTUDIO_VERSION_MAJOR = lib.versions.major version;
RSTUDIO_VERSION_MAJOR = "2023"; RSTUDIO_VERSION_MINOR = lib.versions.minor version;
RSTUDIO_VERSION_MINOR = "09"; RSTUDIO_VERSION_PATCH = lib.versions.patch version;
RSTUDIO_VERSION_PATCH = "0"; RSTUDIO_VERSION_SUFFIX = "+" + toString (
RSTUDIO_VERSION_SUFFIX = "+463"; lib.tail (lib.splitString "+" version)
);
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rstudio"; owner = "rstudio";
repo = "rstudio"; repo = "rstudio";
rev = "v${version}"; rev = version;
hash = "sha256-FwNuU2rbE3GEhuwphvZISUMhvSZJ6FjjaZ1oQ9F8NWc="; hash = "sha256-ecMzkpHazg8jEBz9wh8hqRX2UdziOC8b6F+3xxdugy0=";
}; };
mathJaxSrc = fetchurl { mathJaxSrc = fetchurl {
@ -62,8 +63,8 @@ let
rsconnectSrc = fetchFromGitHub { rsconnectSrc = fetchFromGitHub {
owner = "rstudio"; owner = "rstudio";
repo = "rsconnect"; repo = "rsconnect";
rev = "5175a927a41acfd9a21d9fdecb705ea3292109f2"; rev = "v1.2.0";
hash = "sha256-c1fFcN6KAfxXv8bv4WnIqQKg1wcNP2AywhEmIbyzaBA="; hash = "sha256-ghRz4Frd+I9ShRNNOE/kdk9KjRCj0Z1mPnThueriiUY=";
}; };
# Ideally, rev should match the rstudio release name. # Ideally, rev should match the rstudio release name.
@ -93,7 +94,7 @@ in
]; ];
buildInputs = [ buildInputs = [
boost boost183
zlib zlib
openssl openssl
R R
@ -133,6 +134,7 @@ in
./fix-resources-path.patch ./fix-resources-path.patch
./pandoc-nix-path.patch ./pandoc-nix-path.patch
./use-system-quarto.patch ./use-system-quarto.patch
./ignore-etc-os-release.patch
]; ];
postPatch = '' postPatch = ''

View file

@ -0,0 +1,77 @@
diff --git a/CMakeGlobals.txt b/CMakeGlobals.txt
index 5f96ffb..3f15687 100644
--- a/CMakeGlobals.txt
+++ b/CMakeGlobals.txt
@@ -29,11 +29,6 @@ endif()
get_filename_component(ROOT_SRC_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
set(CMAKE_MODULE_PATH "${ROOT_SRC_DIR}/cmake/modules/")
-# read /etc/os-release
-if(LINUX)
- include(OsRelease)
-endif()
-
# version info
if ("$ENV{RSTUDIO_VERSION_MAJOR}" STREQUAL "")
string(TIMESTAMP CPACK_PACKAGE_VERSION_MAJOR "%Y")
diff --git a/cmake/modules/OsRelease.cmake b/cmake/modules/OsRelease.cmake
deleted file mode 100644
index 81a9e1f..0000000
--- a/cmake/modules/OsRelease.cmake
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# OsRelease.cmake
-#
-# Copyright (C) 2022 by Posit Software, PBC
-#
-# This program is licensed to you under the terms of version 3 of the
-# GNU Affero General Public License. This program is distributed WITHOUT
-# ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
-# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
-# AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
-#
-#
-
-# reads and parses /etc/os-release into CMake variables
-file(STRINGS "/etc/os-release" OS_RELEASE)
-foreach(LINE ${OS_RELEASE})
- string(FIND "${LINE}" "=" INDEX)
- string(SUBSTRING "${LINE}" 0 "${INDEX}" KEY)
- math(EXPR INDEX "${INDEX} + 1")
- string(SUBSTRING "${LINE}" "${INDEX}" -1 VALUE)
- separate_arguments(VALUE UNIX_COMMAND "${VALUE}")
- set("OS_RELEASE_${KEY}" "${VALUE}" CACHE INTERNAL "/etc/os-release: ${KEY}")
-endforeach()
-
diff --git a/package/linux/CMakeLists.txt b/package/linux/CMakeLists.txt
index 5d5c35e..a94f8fc 100644
--- a/package/linux/CMakeLists.txt
+++ b/package/linux/CMakeLists.txt
@@ -16,7 +16,7 @@
# configure cpack install location
set(CPACK_SET_DESTDIR "ON")
set(CPACK_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
-message(STATUS "Packaging RStudio for ${OS_RELEASE_PRETTY_NAME}")
+message(STATUS "Packaging RStudio for Nix")
# detect architecture (packaging platform specific)
find_program(DPKG_EXECUTABLE dpkg)
@@ -42,17 +42,6 @@ if(EXISTS "/etc/redhat-release")
endif()
endif()
-# set libssl dependency
-if(OS_RELEASE_ID STREQUAL "ubuntu")
- if(OS_RELEASE_VERSION_ID VERSION_GREATER_EQUAL "22.04")
- set(RSTUDIO_DEBIAN_DEPENDS_SSL "libssl-dev")
- else()
- set(RSTUDIO_DEBIAN_DEPENDS_SSL "libssl1.0.0 | libssl1.0.2 | libssl1.1")
- endif()
-else()
- set(RSTUDIO_DEBIAN_DEPENDS_SSL "libssl-dev")
-endif()
-
# configuration specific
if(RSTUDIO_SERVER)

View file

@ -6,7 +6,7 @@ index d18362b..98cdd4c 100644
external-pandoc-path=${RSTUDIO_DEPENDENCIES_PANDOC_DIR} external-pandoc-path=${RSTUDIO_DEPENDENCIES_PANDOC_DIR}
external-quarto-path=${RSTUDIO_DEPENDENCIES_QUARTO_DIR} external-quarto-path=${RSTUDIO_DEPENDENCIES_QUARTO_DIR}
external-libclang-path=${RSTUDIO_DEPENDENCIES_DIR}/common/libclang external-libclang-path=${RSTUDIO_DEPENDENCIES_DIR}/common/libclang
-external-node-path=${RSTUDIO_DEPENDENCIES_DIR}/common/node/16.14.0/bin/node -external-node-path=${RSTUDIO_DEPENDENCIES_DIR}/common/node/18.18.2/bin/node
+external-node-path=@node@/bin/node +external-node-path=@node@/bin/node
# enable copilot # enable copilot
@ -32,7 +32,7 @@ index 033d605..f1ee63d 100644
+++ b/src/gwt/build.xml +++ b/src/gwt/build.xml
@@ -87,29 +87,7 @@ @@ -87,29 +87,7 @@
<!-- ensure version matches RSTUDIO_NODE_VERSION --> <!-- ensure version matches RSTUDIO_NODE_VERSION -->
<property name="node.version" value="16.14.0"/> <property name="node.version" value="18.18.2"/>
<property name="node.dir" value="../../dependencies/common/node/${node.version}"/> <property name="node.dir" value="../../dependencies/common/node/${node.version}"/>
- <!-- use yarn from system but will prefer yarn from dependencies if available --> - <!-- use yarn from system but will prefer yarn from dependencies if available -->
- <condition property="yarn.bin" value="yarn"> - <condition property="yarn.bin" value="yarn">
@ -58,15 +58,18 @@ index 033d605..f1ee63d 100644
- value="c:\rstudio-tools\dependencies\common\node\${node.version}\node_modules\yarn\bin\yarn.cmd" - value="c:\rstudio-tools\dependencies\common\node\${node.version}\node_modules\yarn\bin\yarn.cmd"
- file="c:\rstudio-tools\dependencies\common\node\${node.version}\node_modules\yarn\bin\yarn.cmd"/> - file="c:\rstudio-tools\dependencies\common\node\${node.version}\node_modules\yarn\bin\yarn.cmd"/>
+ <property name="node.bin" value="@node@/bin/node"/> + <property name="node.bin" value="@node@/bin/node"/>
<property name="panmirror.dir" value="./lib/quarto/apps/panmirror"/> <property name="panmirror.dir" value="./lib/quarto/apps/panmirror"/>
<property name="panmirror.build.dir" value="./www/js/panmirror"/> <property name="panmirror.build.dir" value="./www/js/panmirror"/>
@@ -126,21 +104,11 @@ @@ -133,28 +111,11 @@
file="c:\rstudio-tools\src\gwt\lib\quarto\apps\panmirror"/> <isset property="panmirror.minify" />
</not>
<target name="panmirror" description="Compile panmirror library"> </condition>
-
- <echo message="yarn location: ${yarn.bin}"/> - <echo message="yarn location: ${yarn.bin}"/>
- <echo message="panmirror location: ${panmirror.dir}"/> - <echo message="panmirror location: ${panmirror.dir}"/>
- <echo message="panmirror minify: ${panmirror.minify}"/>
-
<mkdir dir="${panmirror.build.dir}"/> <mkdir dir="${panmirror.build.dir}"/>
- <exec executable="${yarn.bin}" dir="${panmirror.dir}" resolveexecutable="true" failonerror="true"> - <exec executable="${yarn.bin}" dir="${panmirror.dir}" resolveexecutable="true" failonerror="true">
- <arg value="install"/> - <arg value="install"/>
@ -75,14 +78,19 @@ index 033d605..f1ee63d 100644
- </exec> - </exec>
- <exec executable="${yarn.bin}" dir="${panmirror.dir}" resolveexecutable="true" failonerror="true"> - <exec executable="${yarn.bin}" dir="${panmirror.dir}" resolveexecutable="true" failonerror="true">
- <arg value="build"/> - <arg value="build"/>
- <arg value="--minify"/>
- <arg value="${panmirror.minify}"/>
- <arg value="--sourcemap"/>
- <arg value="true"/>
- <env key="PANMIRROR_OUTDIR" value="dist-rstudio"/> - <env key="PANMIRROR_OUTDIR" value="dist-rstudio"/>
+ <exec executable="${node.bin}" dir="${panmirror.dir}" spawn="${panmirror.spawn}"> + <exec executable="${node.bin}" dir="${panmirror.dir}" spawn="${panmirror.spawn}">
+ <arg value="fuse"/> + <arg value="fuse"/>
+ <arg value="${panmirror.target}"/> + <arg value="${panmirror.target}"/>
</exec> </exec>
- <copy todir="${panmirror.build.dir}"> - <copy todir="${panmirror.build.dir}">
- <fileset dir="${panmirror.dir}/dist-rstudio"/> - <fileset dir="${panmirror.dir}/dist-rstudio"/>
- </copy> - </copy>
</target> </target>
<target name="javac" description="Compile java source"> <target name="javac" description="Compile java source">

View file

@ -6,6 +6,7 @@
, copyDesktopItems , copyDesktopItems
, prefetch-yarn-deps , prefetch-yarn-deps
, makeWrapper , makeWrapper
, autoSignDarwinBinariesHook
, nodejs , nodejs
, yarn , yarn
, electron , electron
@ -23,6 +24,11 @@ stdenv.mkDerivation rec {
hash = "sha256-+TCnVXcmAEpa7MiL0dyeoh2aUfIIO8eze9pEaHgKnME="; hash = "sha256-+TCnVXcmAEpa7MiL0dyeoh2aUfIIO8eze9pEaHgKnME=";
}; };
# `@electron/fuses` tries to run `codesign` and fails. Disable and use autoSignDarwinBinariesHook instead
postPatch = ''
sed -i -e 's/resetAdHocDarwinSignature:.*/resetAdHocDarwinSignature: false,/' build/fuses.js
'';
offlineCache = fetchYarnDeps { offlineCache = fetchYarnDeps {
yarnLock = src + "/yarn.lock"; yarnLock = src + "/yarn.lock";
hash = "sha256-QS0bkDDQq3sn79TQ+pTZsmbmXgMccyLmlPLTsko7eGg="; hash = "sha256-QS0bkDDQq3sn79TQ+pTZsmbmXgMccyLmlPLTsko7eGg=";
@ -35,6 +41,8 @@ stdenv.mkDerivation rec {
yarn yarn
] ++ lib.optionals (!stdenv.isDarwin) [ ] ++ lib.optionals (!stdenv.isDarwin) [
copyDesktopItems copyDesktopItems
] ++ lib.optionals stdenv.isDarwin [
autoSignDarwinBinariesHook
]; ];
ELECTRON_SKIP_BINARY_DOWNLOAD = true; ELECTRON_SKIP_BINARY_DOWNLOAD = true;

View file

@ -10,7 +10,7 @@
}: }:
let let
version = "4.4.4"; version = "4.5.4";
libsecp256k1_name = libsecp256k1_name =
if stdenv.isLinux then "libsecp256k1.so.{v}" if stdenv.isLinux then "libsecp256k1.so.{v}"
@ -32,11 +32,11 @@ python3.pkgs.buildPythonApplication {
owner = "Groestlcoin"; owner = "Groestlcoin";
repo = "electrum-grs"; repo = "electrum-grs";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "0fl01qdvb1z6l6kwipj1lj0qmjk3mzw25wv7yh5j1hh1f5lng0s8"; sha256 = "1k078jg3bw4n3kcxy917m30x1skxm679w8hcw8mlxb94ikrjc66h";
}; };
nativeBuildInputs = lib.optionals enableQt [ wrapQtAppsHook ]; nativeBuildInputs = lib.optionals enableQt [ wrapQtAppsHook ];
buildInputs = lib.optional stdenv.isLinux qtwayland; buildInputs = lib.optional (stdenv.isLinux && enableQt) qtwayland;
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [
aiohttp aiohttp
@ -56,17 +56,25 @@ python3.pkgs.buildPythonApplication {
requests requests
tlslite-ng tlslite-ng
certifi certifi
jsonpatch
# plugins # plugins
btchip-python btchip-python
ledger-bitcoin ledger-bitcoin
ckcc-protocol ckcc-protocol
keepkey keepkey
trezor trezor
bitbox02
cbor
pyserial
] ++ lib.optionals enableQt [ ] ++ lib.optionals enableQt [
pyqt5 pyqt5
qdarkstyle qdarkstyle
]; ];
checkInputs = with python3.pkgs; lib.optionals enableQt [
pyqt6
];
postPatch = '' postPatch = ''
# make compatible with protobuf4 by easing dependencies ... # make compatible with protobuf4 by easing dependencies ...
substituteInPlace ./contrib/requirements/requirements.txt \ substituteInPlace ./contrib/requirements/requirements.txt \
@ -104,7 +112,6 @@ python3.pkgs.buildPythonApplication {
meta = with lib; { meta = with lib; {
description = "Lightweight Groestlcoin wallet"; description = "Lightweight Groestlcoin wallet";
mainProgram = "electrum-grs";
longDescription = '' longDescription = ''
An easy-to-use Groestlcoin client featuring wallets generated from An easy-to-use Groestlcoin client featuring wallets generated from
mnemonic seeds (in addition to other, more advanced, wallet options) mnemonic seeds (in addition to other, more advanced, wallet options)
@ -116,5 +123,6 @@ python3.pkgs.buildPythonApplication {
license = licenses.mit; license = licenses.mit;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ gruve-p ]; maintainers = with maintainers; [ gruve-p ];
mainProgram = "electrum-grs";
}; };
} }

View file

@ -1,65 +0,0 @@
{ stdenv
, lib
, fetchurl
, libxkbcommon
, systemd
, xorg
, electron_13
, makeWrapper
, makeDesktopItem
}:
let
desktopItem = makeDesktopItem rec {
name = "Obinskit";
exec = "obinskit";
icon = "obinskit";
desktopName = "Obinskit";
genericName = "Obinskit keyboard configurator";
categories = [ "Utility" ];
};
electron = electron_13;
in
stdenv.mkDerivation rec {
pname = "obinskit";
version = "1.2.11";
src = fetchurl {
url = "https://s3.hexcore.xyz/occ/linux/tar/ObinsKit_${version}_x64.tar.gz";
curlOptsList = [ "--header" "Referer: https://www.hexcore.xyz/" ];
hash = "sha256-KhCu1TZsJmcXRSWSTaYOMjt+IA4qqavBwaYzXnkgls0=";
};
unpackPhase = "tar -xzf $src";
sourceRoot = "ObinsKit_${version}_x64";
nativeBuildInputs = [ makeWrapper ];
dontConfigure = true;
dontBuild = true;
installPhase = ''
mkdir -p $out/opt/obinskit
cp -r resources $out/opt/obinskit/
cp -r locales $out/opt/obinskit/
mkdir -p $out/share/{applications,pixmaps}
install resources/icons/tray-darwin@2x.png $out/share/pixmaps/obinskit.png
ln -s ${desktopItem}/share/applications/* $out/share/applications
'';
postFixup = ''
makeWrapper ${electron}/bin/electron $out/bin/${pname} \
--add-flags $out/opt/obinskit/resources/app.asar \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc.lib libxkbcommon (lib.getLib systemd) xorg.libXt xorg.libXtst ]}"
'';
meta = with lib; {
description = "Graphical configurator for Anne Pro and Anne Pro II keyboards";
homepage = "https://www.hexcore.xyz/obinskit";
license = licenses.unfree;
maintainers = with maintainers; [ shou ];
platforms = [ "x86_64-linux" ];
};
}

View file

@ -8,34 +8,34 @@
, shiboken2 , shiboken2
}: }:
let let
version = "0.1.3"; version = "0.1.3+";
in in
buildPythonApplication rec { buildPythonApplication rec {
pname = "sl1-to-photon"; pname = "sl1-to-photon";
inherit version; inherit version;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fookatchu"; owner = "cab404";
repo = "SL1toPhoton"; repo = "SL1toPhoton";
rev = "v${version}"; rev = "7edc6ea99818622f5d49ac7af80ddd4916b8c19f";
sha256 = "1hmb74rcky3nax4lxn7pw6lcd5a66fdbwrm11c84zb31xb51bakw"; sha256 = "ssFfjlBMi3FHosDBUA2gs71VUIBkEdPVcV3STNxmOIM=";
}; };
propagatedBuildInputs = [ pyphotonfile pillow numpy pyside2 shiboken2 ]; pythonPath = [ pyphotonfile pillow numpy pyside2 shiboken2 ];
format = "other"; format = "setuptools";
dontUseSetuptoolsCheck = true;
installPhase = '' installPhase = ''
install -D -m 0755 SL1_to_Photon.py $out/bin/${pname} install -D -m 0755 SL1_to_Photon.py $out/bin/${pname}
sed -i '1i#!/usr/bin/env python' $out/bin/${pname}
''; '';
meta = with lib; { meta = with lib; {
maintainers = [ maintainers.cab404 ]; maintainers = [ maintainers.cab404 ];
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
description = "Tool for converting Slic3r PE's SL1 files to Photon files for the Anycubic Photon 3D-Printer"; description = "Tool for converting Slic3r PE's SL1 files to Photon files for the Anycubic Photon 3D-Printer";
homepage = "https://github.com/cab404/SL1toPhoton";
mainProgram = "sl1-to-photon"; mainProgram = "sl1-to-photon";
homepage = "https://github.com/fookatchu/SL1toPhoton";
}; };
} }

View file

@ -18,6 +18,7 @@
, sndio , sndio
, libjack2 , libjack2
, speechd , speechd
, removeReferencesTo
}: }:
## configurability of the wrapper itself ## configurability of the wrapper itself
@ -238,7 +239,7 @@ let
}; };
})); }));
nativeBuildInputs = [ makeWrapper lndir jq ]; nativeBuildInputs = [ makeWrapper lndir jq removeReferencesTo ];
buildInputs = [ browser.gtk3 ]; buildInputs = [ browser.gtk3 ];
@ -413,7 +414,9 @@ let
passthru = { unwrapped = browser; }; passthru = { unwrapped = browser; };
disallowedRequisites = [ stdenv.cc ]; disallowedRequisites = [ stdenv.cc ];
postInstall = ''
find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
'';
meta = browser.meta // { meta = browser.meta // {
inherit (browser.meta) description; inherit (browser.meta) description;
mainProgram = launcherName; mainProgram = launcherName;

View file

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "argocd"; pname = "argocd";
version = "2.10.3"; version = "2.10.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "argoproj"; owner = "argoproj";
repo = "argo-cd"; repo = "argo-cd";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-DaM3vNmZTz4zJTsmtgWwKPhHeUdqe2ZdlXYTppdhiJs="; hash = "sha256-D7vkVvYLImC9dtqPU3Gxe5sQO92qxnx4533ykBm7u7c=";
}; };
proxyVendor = true; # darwin/linux hash mismatch proxyVendor = true; # darwin/linux hash mismatch

View file

@ -1,27 +1,33 @@
{ lib { lib
, buildPythonApplication , fetchFromGitHub
, fetchPypi
, makeWrapper , makeWrapper
, poetry-core , python3
, posthog
, pyperclip
, requests
, rich
, textual
, enableUsageTracking ? false , enableUsageTracking ? false
}: }:
buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "tftui"; pname = "tftui";
version = "0.12.4"; version = "0.12.6";
pyproject = true; pyproject = true;
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "idoavrah";
hash = "sha256-E4Y0qA7SooMlHh+oSFUl1hfblpirr/Jdb1C2fqU43t0="; repo = "terraform-tui";
rev = "refs/tags/v${version}";
hash = "sha256-vK1qKf8+RxwHUpuEQ97PcwGvObNVpd88kAb3DFRoRG0=";
}; };
propagatedBuildInputs = [ pythonRelaxDeps = [
"textual"
];
nativeBuildInputs = with python3.pkgs; [
makeWrapper
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = with python3.pkgs; [
posthog posthog
pyperclip pyperclip
requests requests
@ -29,11 +35,6 @@ buildPythonApplication rec {
textual textual
]; ];
nativeBuildInputs = [
makeWrapper
poetry-core
];
pythonImportsCheck = [ pythonImportsCheck = [
"tftui" "tftui"
]; ];
@ -46,7 +47,7 @@ buildPythonApplication rec {
meta = with lib; { meta = with lib; {
description = "Textual UI to view and interact with Terraform state"; description = "Textual UI to view and interact with Terraform state";
homepage = "https://github.com/idoavrah/terraform-tui"; homepage = "https://github.com/idoavrah/terraform-tui";
changelog = "https://github.com/idoavrah/terraform-tui/releases"; changelog = "https://github.com/idoavrah/terraform-tui/releases/tag/v${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; teams.bitnomial.members; maintainers = with maintainers; teams.bitnomial.members;
mainProgram = "tftui"; mainProgram = "tftui";

View file

@ -2,49 +2,67 @@
, stdenvNoCC , stdenvNoCC
, fetchFromGitHub , fetchFromGitHub
, jdk8 , jdk8
, makeWrapper
, jre8 , jre8
, strip-nondeterminism
, makeWrapper
, zip , zip
}: }:
let let
jdk = jdk8; jdk = jdk8;
jre = jre8; jre = jre8;
in in
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation (finalAttrs: {
pname = "astral"; pname = "astral";
version = "5.7.1"; version = "5.7.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "smirarab"; owner = "smirarab";
repo = "ASTRAL"; repo = "ASTRAL";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "043w2z6gbrisqirdid022f4b8jps1pp5syi344krv2bis1gjq5sn"; hash = "sha256-VhcsX9BxiZ0nISN6Xe4N+kq0iBMCtNhyxDrm9cwXfBA=";
}; };
nativeBuildInputs = [ jdk makeWrapper jre zip ]; patches = [
# we can't use stripJavaArchivesHook here, because the build process puts a .jar file into a zip file
# this patch calls strip-nondeterminism manually
./make-deterministic.patch
];
nativeBuildInputs = [
jdk
zip
strip-nondeterminism
makeWrapper
];
buildPhase = '' buildPhase = ''
runHook preBuild
patchShebangs ./make.sh patchShebangs ./make.sh
./make.sh ./make.sh
runHook postBuild
''; '';
doCheck = true; doCheck = true;
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
java -jar astral.${version}.jar -i main/test_data/song_primates.424.gene.tre java -jar astral.${finalAttrs.version}.jar -i main/test_data/song_primates.424.gene.tre
runHook postCheck runHook postCheck
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/share/lib runHook preInstall
mkdir -p $out/bin
mv astral.${version}.jar $out/share/ install -Dm644 astral.${finalAttrs.version}.jar -t $out/share
mv lib/*.jar $out/share/lib install -Dm644 lib/*.jar -t $out/share/lib
mv Astral.${version}.zip $out/share/ install -Dm644 Astral.${finalAttrs.version}.zip -t $out/share
cp -a main/test_data $out/share/ cp -a main/test_data $out/share
makeWrapper ${jre}/bin/java $out/bin/astral \ makeWrapper ${jre}/bin/java $out/bin/astral \
--add-flags "-jar $out/share/astral.${version}.jar" --add-flags "-jar $out/share/astral.${finalAttrs.version}.jar"
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {
@ -53,9 +71,9 @@ stdenvNoCC.mkDerivation rec {
mainProgram = "astral"; mainProgram = "astral";
sourceProvenance = with sourceTypes; [ sourceProvenance = with sourceTypes; [
fromSource fromSource
binaryBytecode # source bundles dependencies as jars binaryBytecode # source bundles dependencies as jars
]; ];
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ bzizou ]; maintainers = with maintainers; [ bzizou tomasajt ];
}; };
} })

View file

@ -0,0 +1,21 @@
diff --git a/make.sh b/make.sh
index 3ff6529..937b1a2 100644
--- a/make.sh
+++ b/make.sh
@@ -17,6 +17,8 @@ jar cvfm ../astral.$version.jar ../manifest.text phylonet/util/BitSet.* phylonet
cd ..
+strip-nondeterminism --type jar astral.$version.jar
+
chmod +x astral.$version.jar
sed -e "s/__astral.jar__/astral.$version.jar/g" -e "s/__astral.zip__/Astral.$version.zip/g" README.template.md > README.md
sed -e "s/__astral.jar__/astral.$version.jar/g" -e "s/__astral.zip__/Astral.$version.zip/g" astral-tutorial-template.md > astral-tutorial.md
@@ -32,6 +34,7 @@ ln -s ../astral-tutorial.pdf .
cd ..
rm -f Astral.$version.zip
zip -r Astral.$version.zip Astral
+strip-nondeterminism --type zip Astral.$version.zip
set +x
echo "

View file

@ -4,11 +4,11 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nauty"; pname = "nauty";
version = "2.7r4"; version = "2.8.8";
src = fetchurl { src = fetchurl {
url = "https://pallini.di.uniroma1.it/nauty${builtins.replaceStrings ["."] [""] version}.tar.gz"; url = "https://pallini.di.uniroma1.it/nauty${builtins.replaceStrings ["."] ["_"] version}.tar.gz";
sha256 = "sha256-uBDIWm/imfO0yfJKr5KcrH+VRsLzXCDh3Qrbx0CISKY="; sha256 = "sha256-FZ0hVoEKa7JAQQzWHrZBrdhQiNnxXIiM2qN7hoH5Kc4=";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
# I'm not sure if the filename will remain the same for future changelog or # I'm not sure if the filename will remain the same for future changelog or
# if it will track changes to minor releases. Lets see. Better than nothing # if it will track changes to minor releases. Lets see. Better than nothing
# in any case. # in any case.
changelog = "https://pallini.di.uniroma1.it/changes24-27.txt"; changelog = "https://pallini.di.uniroma1.it/changes24-28.txt";
homepage = "https://pallini.di.uniroma1.it/"; homepage = "https://pallini.di.uniroma1.it/";
}; };
} }

View file

@ -15,7 +15,7 @@ let
pkgs = pkgs.python3.pkgs.overrideScope (self: super: { pkgs = pkgs.python3.pkgs.overrideScope (self: super: {
# `sagelib`, i.e. all of sage except some wrappers and runtime dependencies # `sagelib`, i.e. all of sage except some wrappers and runtime dependencies
sagelib = self.callPackage ./sagelib.nix { sagelib = self.callPackage ./sagelib.nix {
inherit flint arb; inherit flint3;
inherit sage-src env-locations singular; inherit sage-src env-locations singular;
inherit (maxima) lisp-compiler; inherit (maxima) lisp-compiler;
linbox = pkgs.linbox.override { withSage = true; }; linbox = pkgs.linbox.override { withSage = true; };
@ -73,7 +73,7 @@ let
sagelib = python3.pkgs.sagelib; sagelib = python3.pkgs.sagelib;
sage-docbuild = python3.pkgs.sage-docbuild; sage-docbuild = python3.pkgs.sage-docbuild;
inherit env-locations; inherit env-locations;
inherit python3 singular palp flint pythonEnv maxima; inherit python3 singular palp flint3 pythonEnv maxima;
pkg-config = pkgs.pkg-config; # not to confuse with pythonPackages.pkg-config pkg-config = pkgs.pkg-config; # not to confuse with pythonPackages.pkg-config
}; };
@ -125,9 +125,7 @@ let
ignoreCollisions = true; ignoreCollisions = true;
} // { extraLibs = pythonRuntimeDeps; }; # make the libs accessible } // { extraLibs = pythonRuntimeDeps; }; # make the libs accessible
arb = pkgs.arb.override { inherit flint; }; singular = pkgs.singular.override { inherit flint3; };
singular = pkgs.singular.override { inherit flint; };
maxima = pkgs.maxima-ecl.override { maxima = pkgs.maxima-ecl.override {
lisp-compiler = pkgs.ecl.override { lisp-compiler = pkgs.ecl.override {
@ -149,7 +147,7 @@ let
# openblas instead of openblasCompat. Apparently other packages somehow use flints # openblas instead of openblasCompat. Apparently other packages somehow use flints
# blas when it is available. Alternative would be to override flint to use # blas when it is available. Alternative would be to override flint to use
# openblasCompat. # openblasCompat.
flint = pkgs.flint.override { withBlas = false; }; flint3 = pkgs.flint3.override { withBlas = false; };
# Multiple palp dimensions need to be available and sage expects them all to be # Multiple palp dimensions need to be available and sage expects them all to be
# in the same folder. # in the same folder.

View file

@ -3,7 +3,6 @@
, pari , pari
, singular , singular
, maxima , maxima
, conway_polynomials
, graphs , graphs
, elliptic_curves , elliptic_curves
, polytopes_db , polytopes_db
@ -27,16 +26,13 @@ writeTextFile rec {
export GPDOCDIR="${pari}/share/pari/doc" export GPDOCDIR="${pari}/share/pari/doc"
export SINGULARPATH='${singular}/share/singular' export SINGULARPATH='${singular}/share/singular'
export SINGULAR_SO='${singular}/lib/libSingular.so' export SINGULAR_SO='${singular}/lib/libSingular.so'
export GAP_SO='${gap}/lib/libgap.so'
export SINGULAR_EXECUTABLE='${singular}/bin/Singular' export SINGULAR_EXECUTABLE='${singular}/bin/Singular'
export MAXIMA_FAS='${maxima}/lib/maxima/${maxima.version}/binary-ecl/maxima.fas' export MAXIMA_FAS='${maxima}/lib/maxima/${maxima.version}/binary-ecl/maxima.fas'
export MAXIMA_PREFIX="${maxima}" export MAXIMA_PREFIX="${maxima}"
export CONWAY_POLYNOMIALS_DATA_DIR='${conway_polynomials}/share/conway_polynomials'
export GRAPHS_DATA_DIR='${graphs}/share/graphs' export GRAPHS_DATA_DIR='${graphs}/share/graphs'
export ELLCURVE_DATA_DIR='${elliptic_curves}/share/ellcurves' export ELLCURVE_DATA_DIR='${elliptic_curves}/share/ellcurves'
export POLYTOPE_DATA_DIR='${polytopes_db}/share/reflexive_polytopes' export POLYTOPE_DATA_DIR='${polytopes_db}/share/reflexive_polytopes'
export GAP_LIB_DIR='${gap}/lib/gap' export GAP_ROOT_PATHS='${gap}/lib/gap;${gap}/share/gap'
export GAP_SHARE_DIR='${gap}/share/gap'
export ECLDIR='${maxima.lisp-compiler}/lib/${maxima.lisp-compiler.pname}-${maxima.lisp-compiler.version}/' export ECLDIR='${maxima.lisp-compiler}/lib/${maxima.lisp-compiler.pname}-${maxima.lisp-compiler.version}/'
export COMBINATORIAL_DESIGN_DATA_DIR="${combinatorial_designs}/share/combinatorial_designs" export COMBINATORIAL_DESIGN_DATA_DIR="${combinatorial_designs}/share/combinatorial_designs"
export CREMONA_MINI_DATA_DIR="${elliptic_curves}/share/cremona" export CREMONA_MINI_DATA_DIR="${elliptic_curves}/share/cremona"

View file

@ -4,6 +4,7 @@
, jupyter-sphinx , jupyter-sphinx
, sphinx , sphinx
, sphinx-copybutton , sphinx-copybutton
, sphinx-inline-tabs
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -15,6 +16,7 @@ buildPythonPackage rec {
jupyter-sphinx jupyter-sphinx
sphinx sphinx
sphinx-copybutton sphinx-copybutton
sphinx-inline-tabs
]; ];
preBuild = '' preBuild = ''

View file

@ -42,7 +42,7 @@
, flintqs , flintqs
, blas , blas
, lapack , lapack
, flint , flint3
, gmp , gmp
, mpfr , mpfr
, zlib , zlib
@ -155,7 +155,7 @@ writeTextFile rec {
# cython needs to find these libraries, otherwise will fail with `ld: cannot find -lflint` or similar # cython needs to find these libraries, otherwise will fail with `ld: cannot find -lflint` or similar
export LDFLAGS='${ export LDFLAGS='${
lib.concatStringsSep " " (map (pkg: "-L${pkg}/lib") [ lib.concatStringsSep " " (map (pkg: "-L${pkg}/lib") [
flint flint3
gap gap
glpk glpk
gmp gmp
@ -174,7 +174,7 @@ writeTextFile rec {
singular singular
gmp.dev gmp.dev
glpk glpk
flint flint3
gap gap
mpfr.dev mpfr.dev
]) ])

View file

@ -10,14 +10,14 @@
# all get the same sources with the same patches applied. # all get the same sources with the same patches applied.
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "10.2"; version = "10.3";
pname = "sage-src"; pname = "sage-src";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sagemath"; owner = "sagemath";
repo = "sage"; repo = "sage";
rev = version; rev = version;
sha256 = "sha256-VXnPdJhtw5Y/anecrVpevJDCyBVfnjksyuuZslNipm4="; hash = "sha256-OHtMv8t0RrP6R8XIREU+C1vpazeQLWa75wx9Mv6BN1U=";
}; };
# contains essential files (e.g., setup.cfg) generated by the bootstrap script. # contains essential files (e.g., setup.cfg) generated by the bootstrap script.
@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
configure-src = fetchurl { configure-src = fetchurl {
# the hash below is the tagged commit's _parent_. it can also be found by looking for # the hash below is the tagged commit's _parent_. it can also be found by looking for
# the "configure" asset at https://github.com/sagemath/sage/releases/tag/${version} # the "configure" asset at https://github.com/sagemath/sage/releases/tag/${version}
url = "mirror://sageupstream/configure/configure-b2813506039143e6f0abe859ab67a343abf72c2e.tar.gz"; url = "mirror://sageupstream/configure/configure-ab1a517b64b02bf15bbcb8d7c2d4d643bd5eff9b.tar.gz";
sha256 = "sha256-a1v0XyoKI+zO6Sjm8DzEwItRHbIgRDbpj4UfwVH+/hw="; hash = "sha256-pe9AxTM+gFSR4/eVfUzay+4bwjoubbYeDPc+avKjlaw=";
}; };
# Patches needed because of particularities of nix or the way this is packaged. # Patches needed because of particularities of nix or the way this is packaged.
@ -62,11 +62,11 @@ stdenv.mkDerivation rec {
# should come from or be proposed to upstream. This list will probably never # should come from or be proposed to upstream. This list will probably never
# be empty since dependencies update all the time. # be empty since dependencies update all the time.
packageUpgradePatches = [ packageUpgradePatches = [
# https://github.com/sagemath/sage/pull/37123, to land in 10.3.beta7 # https://github.com/sagemath/sage/pull/37492
(fetchpatch { (fetchpatch {
name = "scipy-1.12-upgrade.patch"; name = "singular-4.3.2p14-upgrade.patch";
url = "https://github.com/sagemath/sage/commit/54eec464e9fdf18b411d9148aecb918178e95909.diff"; url = "https://github.com/sagemath/sage/commit/a0c56816b051e97da44ac0a4e4d4f6915cf7fa0f.diff";
sha256 = "sha256-9wyNrcSfF6mYFTIV4ev2OdD7igb0AeyZZYWSc/+JrIU="; sha256 = "sha256-WGMmPeBoj2LUC+2qxWuaJL89QUuGt6axGvxWkpM9LYg=";
}) })
]; ];

View file

@ -10,7 +10,6 @@
, iml , iml
, libpng , libpng
, readline , readline
, arb
, blas , blas
, boost , boost
, brial , brial
@ -18,7 +17,7 @@
, eclib , eclib
, ecm , ecm
, fflas-ffpack , fflas-ffpack
, flint , flint3
, gap , gap
, giac , giac
, givaro , givaro
@ -45,6 +44,7 @@
, singular , singular
, sqlite , sqlite
, symmetrica , symmetrica
, conway-polynomials
, cvxopt , cvxopt
, cypari2 , cypari2
, cysignals , cysignals
@ -92,6 +92,7 @@ buildPythonPackage rec {
version = src.version; version = src.version;
pname = "sagelib"; pname = "sagelib";
src = sage-src; src = sage-src;
pyproject = true;
nativeBuildInputs = [ nativeBuildInputs = [
iml iml
@ -112,7 +113,6 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
# native dependencies (TODO: determine which ones need to be propagated) # native dependencies (TODO: determine which ones need to be propagated)
arb
blas blas
boost boost
brial brial
@ -120,7 +120,7 @@ buildPythonPackage rec {
eclib eclib
ecm ecm
fflas-ffpack fflas-ffpack
flint flint3
gap gap
giac giac
givaro givaro
@ -149,6 +149,7 @@ buildPythonPackage rec {
symmetrica symmetrica
# from src/sage/setup.cfg and requirements.txt # from src/sage/setup.cfg and requirements.txt
conway-polynomials
cvxopt cvxopt
cypari2 cypari2
cysignals cysignals
@ -202,11 +203,7 @@ buildPythonPackage rec {
mkdir -p "$SAGE_SHARE/sage/ext/notebook-ipython" mkdir -p "$SAGE_SHARE/sage/ext/notebook-ipython"
mkdir -p "var/lib/sage/installed" mkdir -p "var/lib/sage/installed"
# version lower bounds are useful, but upper bounds are a hassle because sed -i "/sage-conf/d" src/{setup.cfg,pyproject.toml,requirements.txt}
# Sage tests already catch any relevant API breakage.
# according to the discussion at https://trac.sagemath.org/ticket/33520,
# upper bounds will be less noisy starting from Sage 9.6.
sed -i 's/, <[^, ]*//' build/pkgs/*/install-requires.txt
cd build/pkgs/sagelib/src cd build/pkgs/sagelib/src
''; '';

View file

@ -5,7 +5,7 @@
, sharutils , sharutils
, file , file
, getconf , getconf
, flint , flint3
, ntl , ntl
, cddlib , cddlib
, gfan , gfan
@ -18,13 +18,13 @@
# want it to match the upstream format because sage depends on it. # want it to match the upstream format because sage depends on it.
, texinfo4 , texinfo4
, texliveSmall , texliveSmall
, enableDocs ? !stdenv.isDarwin , enableDocs ? true
, enableGfanlib ? true , enableGfanlib ? true
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "singular"; pname = "singular";
version = "4.3.2p2"; version = "4.3.2p16";
# since the tarball does not contain tests, we fetch from GitHub. # since the tarball does not contain tests, we fetch from GitHub.
src = fetchFromGitHub { src = fetchFromGitHub {
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
# if a release is tagged (which sometimes does not happen), it will # if a release is tagged (which sometimes does not happen), it will
# be in the format below. # be in the format below.
rev = "Release-${lib.replaceStrings ["."] ["-"] version}"; rev = "Release-${lib.replaceStrings ["."] ["-"] version}";
sha256 = "sha256-dtZmN8xUCZ9eSgmtBxqfJeWsM4W5Baq7xWXuNAxNLjA="; sha256 = "sha256-5JZgI5lnfX4JlBSEAL7Wv6uao/57GBaMqwgslJt9Bjk=";
# the repository's .gitattributes file contains the lines "/Tst/ # the repository's .gitattributes file contains the lines "/Tst/
# export-ignore" and "/doc/ export-ignore" so some directories are # export-ignore" and "/doc/ export-ignore" so some directories are
@ -68,7 +68,7 @@ stdenv.mkDerivation rec {
ncurses ncurses
readline readline
ntl ntl
flint flint3
lrcalc lrcalc
gfan gfan
] ++ lib.optionals enableGfanlib [ ] ++ lib.optionals enableGfanlib [

View file

@ -11,7 +11,7 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "commitizen"; pname = "commitizen";
version = "3.18.4"; version = "3.20.0";
format = "pyproject"; format = "pyproject";
disabled = python3.pythonOlder "3.8"; disabled = python3.pythonOlder "3.8";
@ -20,7 +20,7 @@ python3.pkgs.buildPythonApplication rec {
owner = "commitizen-tools"; owner = "commitizen-tools";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-ODBlNwrvkYnZ+CvKyc5Bic6DK/z8d6/KR3+iarFxduE="; hash = "sha256-lruEkXgbND2Q49J9mnDSqDA4kWiUBIg1mI+s1a+V3ds=";
}; };
pythonRelaxDeps = [ pythonRelaxDeps = [

View file

@ -23,13 +23,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "advanced-scene-switcher"; pname = "advanced-scene-switcher";
version = "1.24.2"; version = "1.25.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "WarmUpTill"; owner = "WarmUpTill";
repo = "SceneSwitcher"; repo = "SceneSwitcher";
rev = version; rev = version;
hash = "sha256-J5Qcs2eoKMeO1O/MCsR5wfmfbtndRaZmHrbleEZqqOo="; hash = "sha256-cVMeFAliP0srvnhJQkOhZB2hrald8RHFhBXwdGIu2uo=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -61,11 +61,7 @@ stdenv.mkDerivation rec {
chmod -R +w $sourceRoot/deps/libremidi chmod -R +w $sourceRoot/deps/libremidi
''; '';
postInstall = '' env.NIX_CFLAGS_COMPILE = "-Wno-error=stringop-overflow";
mkdir $out/lib $out/share
mv $out/obs-plugins/64bit $out/lib/obs-plugins
mv $out/data $out/share/obs
'';
meta = with lib; { meta = with lib; {
description = "An automated scene switcher for OBS Studio"; description = "An automated scene switcher for OBS Studio";

View file

@ -1,21 +1,45 @@
{ lib, stdenv, fetchFromGitHub, SDL_compat, libX11, libXext }: { lib
, stdenv
, fetchFromGitHub
, SDL2
, libX11
, libXext
, guiBackend ? "sdl"
, enableSDL ? guiBackend == "sdl"
, enableX11 ? guiBackend == "x11"
}:
assert lib.assertMsg (builtins.elem guiBackend ["sdl" "x11" "none"]) "Unsupported GUI backend";
assert lib.assertMsg (!(enableSDL && enableX11)) "RVVM can have only one GUI backend at a time";
assert lib.assertMsg (stdenv.isDarwin -> !enableX11) "macOS supports only SDL GUI backend";
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rvvm"; pname = "rvvm";
version = "0.5"; version = "0.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "LekKit"; owner = "LekKit";
repo = "RVVM"; repo = "RVVM";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-1wAKijRYB0FGBe4cSHUynkO4ePVG4QvVIgSoWzNbqtE="; sha256 = "sha256-5nSlKyWDAx0EeKFzzwP5+99XuJz9BHXEF1WNkRMLa9U=";
}; };
buildInputs = if stdenv.isDarwin then [ SDL_compat ] else [ libX11 libXext ]; buildInputs = []
++ lib.optionals enableSDL [ SDL2 ]
++ lib.optionals enableX11 [ libX11 libXext ];
enableParallelBuilding = true;
buildFlags = [ "all" "lib" ]; buildFlags = [ "all" "lib" ];
makeFlags = [ "PREFIX=$(out)" ] makeFlags = [ "PREFIX=$(out)" ]
++ lib.optional enableSDL "USE_SDL=2" # Use SDL2 instead of SDL1
++ lib.optional (!enableSDL && !enableX11) "USE_FB=0"
# work around https://github.com/NixOS/nixpkgs/issues/19098 # work around https://github.com/NixOS/nixpkgs/issues/19098
++ lib.optional (stdenv.cc.isClang && stdenv.isDarwin) "CFLAGS=-fno-lto"; ++ lib.optional (stdenv.cc.isClang && stdenv.isDarwin) "CFLAGS=-fno-lto";
@ -24,7 +48,7 @@ stdenv.mkDerivation rec {
description = "The RISC-V Virtual Machine"; description = "The RISC-V Virtual Machine";
license = with licenses; [ gpl3 /* or */ mpl20 ]; license = with licenses; [ gpl3 /* or */ mpl20 ];
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ kamillaova ];
mainProgram = "rvvm"; mainProgram = "rvvm";
}; };
} }

View file

@ -1,25 +1,50 @@
{ lib { lib
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, nodejs
, npmHooks
, fetchNpmDeps
, nix-update-script , nix-update-script
}: }:
buildGoModule rec { buildGoModule rec {
pname = "godns"; pname = "godns";
version = "3.0.7"; version = "3.1.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "TimothyYe"; owner = "TimothyYe";
repo = "godns"; repo = "godns";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-7zgvrEVt8xg54NijcqnXoZcXetzOu9h3Ucw7w03YagU="; hash = "sha256-kdClyeU0hR0ymVLn9xe/kYVJE/9P/hAz/5UwRAQ2KCU=";
}; };
vendorHash = "sha256-veDrGB6gjUa8G/UyKzEgH2ItGGEPlXDePahq2XP2nAo="; vendorHash = "sha256-kSREFNIGH0MXiyKMp1LmrLkhKBhovvNRz46LTXT2XME=";
npmDeps = fetchNpmDeps {
src = "${src}/web";
hash = "sha256-2yeqLly0guU/kpX+yH/QOoDGzyJTxkTaCt8EleJhybU=";
};
npmRoot = "web";
nativeBuildInputs = [
nodejs
npmHooks.npmConfigHook
];
overrideModAttrs = oldAttrs: {
# Do not add `npmConfigHook` to `goModules`
nativeBuildInputs = lib.remove npmHooks.npmConfigHook oldAttrs.nativeBuildInputs;
# Do not run `preBuild` when building `goModules`
preBuild = null;
};
# Some tests require internet access, broken in sandbox # Some tests require internet access, broken in sandbox
doCheck = false; doCheck = false;
preBuild = ''
npm --prefix="$npmRoot" run build
go generate ./...
'';
ldflags = [ ldflags = [
"-s" "-s"
"-w" "-w"

View file

@ -0,0 +1,63 @@
{
lib,
llvmPackages,
fetchFromGitHub,
opencflite,
libuuid,
zlib,
}:
let
stdenv = llvmPackages.libcxxStdenv;
in
stdenv.mkDerivation {
pname = "maloader";
version = "0-unstable-2018-05-02";
src = fetchFromGitHub {
owner = "shinh";
repo = "maloader";
rev = "464a90fdfd06a54c9da5d1a3725ed6229c0d3d60";
hash = "sha256-0N3+tr8XUsn3WhJNsPVknumBrfMgDawTEXVRkIs/IV8=";
};
postPatch = ''
substituteInPlace ld-mac.cc \
--replace-fail 'loadLibMac(mypath)' 'loadLibMac("${placeholder "out"}/lib/")' \
--replace-fail 'libCoreFoundation.so' '${opencflite}/lib/libCoreFoundation.so'
substituteInPlace libmac/stack_protector-obsd.c \
--replace-fail 'sys/sysctl.h' 'linux/sysctl.h'
'';
buildInputs = [
libuuid
zlib
];
buildFlags = [
"USE_LIBCXX=1"
"release"
];
env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-command-line-argument";
installPhase = ''
runHook preInstall
install -vD libmac.so "$out/lib/libmac.so"
for bin in extract macho2elf ld-mac; do
install -vD "$bin" "$out/bin/$bin"
done
runHook postInstall
'';
meta = {
description = "Mach-O loader for Linux";
homepage = "https://github.com/shinh/maloader";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ wegank ];
inherit (opencflite.meta) platforms;
};
}

View file

@ -0,0 +1,43 @@
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
icu,
libkqueue,
libuuid,
tzdata,
zlib,
}:
stdenv.mkDerivation rec {
pname = "opencflite";
version = "635.21.8";
src = fetchFromGitHub {
owner = "gerickson";
repo = "opencflite";
rev = "opencflite-${version}";
hash = "sha256-ijyj4SFYQ0wZAFM2ehNnR9+yu5yDTSVW3VBycBT9l+A=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
icu
libkqueue
libuuid
tzdata
zlib
];
enableParallelBuilding = true;
meta = {
description = "Cross platform port of the macOS CoreFoundation";
homepage = "https://github.com/gerickson/opencflite";
license = lib.licenses.apsl20;
maintainers = with lib.maintainers; [ wegank ];
platforms = [ "x86_64-linux" ];
};
}

View file

@ -6,14 +6,14 @@
python3.pkgs.buildPythonApplication { python3.pkgs.buildPythonApplication {
pname = "renode-dts2repl"; pname = "renode-dts2repl";
version = "unstable-2024-03-12"; version = "unstable-2024-03-19";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "antmicro"; owner = "antmicro";
repo = "dts2repl"; repo = "dts2repl";
rev = "eff98d616e3541e54ca783c84f598c9e348a76a8"; rev = "dc4160a3a4c23aee846625ac9115fe2cbb91fe42";
hash = "sha256-qNHj5WOSca04ceGeRNa60M6cH9/rRHLEF1YX75yYDO8="; hash = "sha256-cy4XLKKiWqEvWWDHmj2bhp38pbtSxp+P92r7NxueAaE=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -23,11 +23,11 @@ let
in in
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "renode"; pname = "renode";
version = "1.14.0"; version = "1.15.0";
src = fetchurl { src = fetchurl {
url = "https://builds.renode.io/renode-${finalAttrs.version}.linux-portable.tar.gz"; url = "https://github.com/renode/renode/releases/download/v${finalAttrs.version}/renode-${finalAttrs.version}.linux-portable.tar.gz";
hash = "sha256-1wfVHtCYc99ACz8m2XEg1R0nIDh9xP4ffV/vxeeEHxE="; hash = "sha256-w3HKYctW1LmiAse/27Y1Gmz9hDprQ1CK7+TXIexCrkg=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -95,7 +95,7 @@ stdenv.mkDerivation (finalAttrs: {
meta = { meta = {
description = "Virtual development framework for complex embedded systems"; description = "Virtual development framework for complex embedded systems";
homepage = "https://renode.org"; homepage = "https://renode.io";
license = lib.licenses.bsd3; license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ otavio ]; maintainers = with lib.maintainers; [ otavio ];
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];

View file

@ -0,0 +1,26 @@
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "rs-tftpd";
version = "0.2.12";
src = fetchFromGitHub {
owner = "altugbakan";
repo = "rs-tftpd";
rev = version;
hash = "sha256-H67lXwX+4guHpdq0yTHe6tl1NxC41saNrM9g+yH5otk=";
};
cargoHash = "sha256-B5kduRuX9Lcdd31yj4PsDo8fyy0nabtmsiAXvc8RlYo=";
meta = with lib; {
description = "TFTP Server Daemon implemented in Rust";
homepage = "https://github.com/altugbakan/rs-tftpd";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
mainProgram = "tftpd";
};
}

View file

@ -16,16 +16,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "satty"; pname = "satty";
version = "0.11.2"; version = "0.11.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gabm"; owner = "gabm";
repo = "Satty"; repo = "Satty";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-bUDKRAp3/ByxWRzpoD0qGInxQuEfVIeYJ/pCcAEfH14="; hash = "sha256-TKpotVVjXWm2uue4a4QEqVH/qHKSsegL2MNcsnk0CHw=";
}; };
cargoHash = "sha256-aH08BJK4uOEUrpoMfVGwGnuzncHHW6w6jjxnk4Xz5zo="; cargoHash = "sha256-0AyzjKkTNZwGCT73Xo5AY7rPJwQ9GgAxtMf6lJnrTSA=";
nativeBuildInputs = [ nativeBuildInputs = [
copyDesktopItems copyDesktopItems

View file

@ -6,7 +6,7 @@
, makeWrapper , makeWrapper
, monkeysAudio , monkeysAudio
, nixosTests , nixosTests
, perl538Packages , perlPackages
, sox , sox
, stdenv , stdenv
, wavpack , wavpack
@ -15,20 +15,18 @@
}: }:
let let
perlPackages = perl538Packages;
binPath = lib.makeBinPath ([ lame flac faad2 sox wavpack ] ++ (lib.optional stdenv.isLinux monkeysAudio)); binPath = lib.makeBinPath ([ lame flac faad2 sox wavpack ] ++ (lib.optional stdenv.isLinux monkeysAudio));
libPath = lib.makeLibraryPath [ zlib stdenv.cc.cc.lib ]; libPath = lib.makeLibraryPath [ zlib stdenv.cc.cc.lib ];
in in
perlPackages.buildPerlPackage rec { perlPackages.buildPerlPackage rec {
pname = "slimserver"; pname = "slimserver";
version = "8.4.0"; version = "8.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Logitech"; owner = "LMS-Community";
repo = "slimserver"; repo = "slimserver";
rev = version; rev = version;
hash = "sha256-92mKchgAWRIrNOeK/zXUYRqIAk6THdtz1zQe3fg2kE0="; hash = "sha256-yDJVqZ0+qVm4r/wmQK/hf9uRJaN56WQMO28RE59mNNI=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
@ -58,7 +56,7 @@ perlPackages.buildPerlPackage rec {
DataURIEncode DataURIEncode
DBDSQLite DBDSQLite
DBI DBI
# DBIxClass # https://github.com/Logitech/slimserver/issues/138 # DBIxClass # https://github.com/LMS-Community/slimserver/issues/138
DigestSHA1 DigestSHA1
EncodeDetect EncodeDetect
EV EV
@ -144,16 +142,20 @@ perlPackages.buildPerlPackage rec {
outputs = [ "out" ]; outputs = [ "out" ];
passthru.tests = { passthru = {
inherit (nixosTests) slimserver; tests = {
inherit (nixosTests) slimserver;
};
updateScript = ./update.nu;
}; };
meta = with lib; { meta = with lib; {
homepage = "https://github.com/Logitech/slimserver"; homepage = "https://github.com/LMS-Community/slimserver";
changelog = "https://github.com/Logitech/slimserver/blob/${version}/Changelog${lib.versions.major version}.html"; changelog = "https://github.com/LMS-Community/slimserver/blob/${version}/Changelog${lib.versions.major version}.html";
description = "Server for Logitech Squeezebox players. This server is also called Logitech Media Server"; description = "Server for Logitech Squeezebox players. This server is also called Logitech Media Server";
# the firmware is not under a free license, so we do not include firmware in the default package # the firmware is not under a free license, so we do not include firmware in the default package
# https://github.com/Logitech/slimserver/blob/public/8.3/License.txt # https://github.com/LMS-Community/slimserver/blob/public/8.3/License.txt
license = if enableUnfreeFirmware then licenses.unfree else licenses.gpl2Only; license = if enableUnfreeFirmware then licenses.unfree else licenses.gpl2Only;
mainProgram = "slimserver"; mainProgram = "slimserver";
maintainers = with maintainers; [ adamcstephens jecaro ]; maintainers = with maintainers; [ adamcstephens jecaro ];

View file

@ -0,0 +1,14 @@
#!/usr/bin/env nix-shell
#!nix-shell -i nu -p nushell common-updater-scripts
# get latest tag, but drop versions 10.0 tags since they are 10+ years old
let latest_tag = list-git-tags --url=https://github.com/LMS-Community/slimserver | lines | find --invert 10.0 | sort --natural | last
let current_version = nix eval --raw -f default.nix slimserver | str trim
if $latest_tag != $current_version {
update-source-version slimserver $latest_tag $"--file=(pwd)/pkgs/by-name/sl/slimserver/package.nix"
{before: $current_version, after: $latest_tag}
} else {
"No new version"
}

View file

@ -1,5 +1,5 @@
{ lib { lib
, fetchFromGitea , fetchzip
, ocamlPackages , ocamlPackages
, soupault , soupault
, testers , testers
@ -8,19 +8,19 @@
let let
pname = "soupault"; pname = "soupault";
version = "4.8.0"; version = "4.9.0";
in in
ocamlPackages.buildDunePackage { ocamlPackages.buildDunePackage {
inherit pname version; inherit pname version;
minimalOCamlVersion = "4.13"; minimalOCamlVersion = "4.13";
src = fetchFromGitea { src = fetchzip {
domain = "codeberg.org"; urls = [
owner = "PataphysicalSociety"; "https://github.com/PataphysicalSociety/soupault/archive/${version}.tar.gz"
repo = pname; "https://codeberg.org/PataphysicalSociety/soupault/archive/${version}.tar.gz"
rev = version; ];
hash = "sha256-/QpT0zgrfMgRKjHyLHugaAlICpPkqaQ7f8fFAL0P02Y="; hash = "sha256-vGTJUbAeYs/EYFykNSmCc4c9G66/Lz3BsUYnZQ8feFo=";
}; };
buildInputs = with ocamlPackages; [ buildInputs = with ocamlPackages; [

View file

@ -0,0 +1,76 @@
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "strictdoc";
version = "0.0.49";
pyproject = true;
src = fetchFromGitHub {
owner = "strictdoc-project";
repo = "strictdoc";
rev = version;
hash = "sha256-WtDplupXBtq39oKyo31p5NgXMWtbWgxtpnKn4qCJz3I=";
};
nativeBuildInputs = [
python3.pkgs.hatchling
python3.pkgs.pythonRelaxDepsHook
];
propagatedBuildInputs = with python3.pkgs; [
beautifulsoup4
docutils
fastapi
graphviz
html5lib
jinja2
lxml
pybtex
pygments
datauri
python-multipart
selenium
requests
spdx-tools
webdriver-manager
reqif
setuptools
textx
toml
uvicorn
websockets
xlrd
xlsxwriter
];
passthru.optional-dependencies = with python3.pkgs; {
development = [
invoke
tox
];
nuitka = [
nuitka
ordered-set
];
};
pythonRelaxDeps = [
"python-datauri"
"xlsxwriter"
"lxml"
];
pythonImportsCheck = [ "strictdoc" ];
meta = with lib; {
description = "Software for technical documentation and requirements management";
homepage = "https://github.com/strictdoc-project/strictdoc";
changelog = "https://github.com/strictdoc-project/strictdoc/blob/${src.rev}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ yuu ];
mainProgram = "strictdoc";
};
}

View file

@ -6,19 +6,24 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "upiano"; pname = "upiano";
version = "0.1.2"; version = "0.1.2";
format = "pyproject"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "eliasdorneles"; owner = "eliasdorneles";
repo = "upiano"; repo = "upiano";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-5WhflvUCjzW4ZJ+PLUTMbKcUnQa3ChkDjl0R5YvjBWk="; hash = "sha256-5WhflvUCjzW4ZJ+PLUTMbKcUnQa3ChkDjl0R5YvjBWk=";
forceFetchGit = true; forceFetchGit = true;
fetchLFS = true; fetchLFS = true;
}; };
nativeBuildInputs = [ pythonRelaxDeps = [
python3.pkgs.poetry-core "textual"
];
nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
]; ];
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [
@ -26,7 +31,9 @@ python3.pkgs.buildPythonApplication rec {
textual textual
]; ];
pythonImportsCheck = [ "upiano" ]; pythonImportsCheck = [
"upiano"
];
meta = with lib; { meta = with lib; {
description = "A Piano in your terminal"; description = "A Piano in your terminal";

View file

@ -7,13 +7,13 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "uxn"; pname = "uxn";
version = "unstable-2024-03-16"; version = "unstable-2024-03-18";
src = fetchFromSourcehut { src = fetchFromSourcehut {
owner = "~rabbits"; owner = "~rabbits";
repo = "uxn"; repo = "uxn";
rev = "5d3cf8b61457fea833d3e232297b378ba54c8350"; rev = "250aecc920a6f12d2d5479a5230a31630dac2a1e";
hash = "sha256-PXXsMKAPRUs4/Y4s/NBorcJmv7RtNK7UlRgmyowrm3A="; hash = "sha256-nhKlcuhXkrhecRwVIuSf+jOmFbX0NMhmmc5pj6MCNdQ=";
}; };
outputs = [ "out" "projects" ]; outputs = [ "out" "projects" ];

View file

@ -1,41 +0,0 @@
{ lib, stdenv
, fetchurl
, python3
}:
stdenv.mkDerivation rec {
pname = "conway_polynomials";
version = "0.5";
src = fetchurl {
url = "mirror://sageupstream/conway_polynomials/conway_polynomials-${version}.tar.bz2";
sha256 = "05zb1ly9x2bbscqv0jgc45g48xx77mfs7qdbqhn4ihmihn57iwnq";
};
# Script that creates the "database" (nested python array) and pickles it
spkg-install = fetchurl {
url = "https://raw.githubusercontent.com/sagemath/sage/9.2/build/pkgs/conway_polynomials/spkg-install.py";
sha256 = "1bwnqasnyv793hxg29viing4dnliz29grkhldsirq19d509yk1fs";
};
installPhase = ''
# directory layout as spkg-install.py expects
dir="$PWD"
cd ..
ln -s "$dir" "src"
# environment spkg-install.py expects
mkdir -p "$out/share"
export SAGE_SHARE="$out/share"
export PYTHONPATH=$PWD
${python3.interpreter} ${spkg-install}
'';
meta = with lib; {
description = "Contains a small database of Conway polynomials";
license = licenses.gpl2;
platforms = platforms.all;
maintainers = teams.sage.members;
};
}

View file

@ -14,16 +14,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "wasmer"; pname = "wasmer";
version = "4.2.6"; version = "4.2.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wasmerio"; owner = "wasmerio";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-FSplJAVdy/b0HXvW1qny052I7Fm9EA83/XqmgEvneeg="; hash = "sha256-jyA1DUouODq9giAWeGOw7VMGwA+FbyqpEU77jtCb5v4=";
}; };
cargoHash = "sha256-OYHPudXGsDLVx6XKTsJTxqG5cbOAD25sd5KJDyU9lvY="; cargoHash = "sha256-EpHM8YaT2Ty9IBX/gXEa9n8006A9Y5/fq/ueODxHlnc=";
nativeBuildInputs = [ nativeBuildInputs = [
rustPlatform.bindgenHook rustPlatform.bindgenHook

View file

@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
"--with-blas-libs=-lcblas" "--with-blas-libs=-lcblas"
"--with-lapack-libs=-llapacke" "--with-lapack-libs=-llapacke"
"--without-archnative"
] ++ lib.optionals stdenv.isx86_64 [ ] ++ lib.optionals stdenv.isx86_64 [
# disable SIMD instructions (which are enabled *when available* by default) # disable SIMD instructions (which are enabled *when available* by default)
# for now we need to be careful to disable *all* relevant versions of an instruction set explicitly (https://github.com/linbox-team/fflas-ffpack/issues/284) # for now we need to be careful to disable *all* relevant versions of an instruction set explicitly (https://github.com/linbox-team/fflas-ffpack/issues/284)

View file

@ -24,16 +24,19 @@ stdenv.mkDerivation rec {
sha256 = "sha256-ezEaAFA6hjiB64F32+uEMi8pOZ89fXLzsaTJuh1XlLQ="; sha256 = "sha256-ezEaAFA6hjiB64F32+uEMi8pOZ89fXLzsaTJuh1XlLQ=";
}; };
propagatedBuildInputs = [ nativeBuildInputs = [
autoconf autoconf
automake automake
gettext gettext
libtool libtool
]; ];
propagatedBuildInputs = [
mpfr
];
buildInputs = [ buildInputs = [
gmp gmp
mpfr
] ++ lib.optionals withBlas [ ] ++ lib.optionals withBlas [
openblas openblas
] ++ lib.optionals withNtl [ ] ++ lib.optionals withNtl [

View file

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ gmpxx ]; propagatedBuildInputs = [ gmpxx ];
configureFlags = [ configureFlags = [
"--disable-optimization" "--without-archnative"
] ++ lib.optionals stdenv.isx86_64 [ ] ++ lib.optionals stdenv.isx86_64 [
# disable SIMD instructions (which are enabled *when available* by default) # disable SIMD instructions (which are enabled *when available* by default)
"--${if stdenv.hostPlatform.sse3Support then "enable" else "disable"}-sse3" "--${if stdenv.hostPlatform.sse3Support then "enable" else "disable"}-sse3"

View file

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
"--with-blas-libs=-lblas" "--with-blas-libs=-lblas"
"--disable-optimization" "--without-archnative"
] ++ lib.optionals stdenv.isx86_64 [ ] ++ lib.optionals stdenv.isx86_64 [
# disable SIMD instructions (which are enabled *when available* by default) # disable SIMD instructions (which are enabled *when available* by default)
"--${if stdenv.hostPlatform.sse3Support then "enable" else "disable"}-sse3" "--${if stdenv.hostPlatform.sse3Support then "enable" else "disable"}-sse3"

View file

@ -2726,6 +2726,30 @@ buildLuarocksPackage {
}; };
}) {}; }) {};
mimetypes = callPackage({ buildLuarocksPackage, fetchurl, lua, luaOlder }:
buildLuarocksPackage {
pname = "mimetypes";
version = "1.0.0-3";
knownRockspec = (fetchurl {
url = "mirror://luarocks/mimetypes-1.0.0-3.rockspec";
sha256 = "02f5x5pkz6fba71mp031arrgmddsyivn5fsa0pj3q3a7nxxpmnq9";
}).outPath;
src = fetchurl {
url = "https://github.com/lunarmodules/lua-mimetypes/archive/v1.0.0/lua-mimetypes-1.0.0.tar.gz";
sha256 = "1rc5lnzvw4cg8wxn4w4sar2xgf5vaivdd2hgpxxcqfzzcmblg1zk";
};
disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];
meta = {
homepage = "https://github/lunarmodules/lua-mimetypes/";
description = "A simple library for looking up the MIME types of files.";
license.fullName = "MIT/X11";
};
}) {};
moonscript = callPackage({ argparse, buildLuarocksPackage, fetchgit, lpeg, lua, luaOlder, luafilesystem }: moonscript = callPackage({ argparse, buildLuarocksPackage, fetchgit, lpeg, lua, luaOlder, luafilesystem }:
buildLuarocksPackage { buildLuarocksPackage {
pname = "moonscript"; pname = "moonscript";

View file

@ -1,6 +1,7 @@
{ lib { lib
, fetchPypi , fetchPypi
, buildPythonPackage , buildPythonPackage
, async-timeout
, uvloop , uvloop
, postgresql , postgresql
, pythonOlder , pythonOlder
@ -13,7 +14,7 @@ buildPythonPackage rec {
version = "0.29.0"; version = "0.29.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -23,6 +24,12 @@ buildPythonPackage rec {
# sandboxing issues on aarch64-darwin, see https://github.com/NixOS/nixpkgs/issues/198495 # sandboxing issues on aarch64-darwin, see https://github.com/NixOS/nixpkgs/issues/198495
doCheck = postgresql.doCheck; doCheck = postgresql.doCheck;
# required for compatibility with Python versions older than 3.11
# see https://github.com/MagicStack/asyncpg/blob/v0.29.0/asyncpg/_asyncio_compat.py#L13
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [
async-timeout
];
nativeCheckInputs = [ nativeCheckInputs = [
uvloop uvloop
postgresql postgresql

View file

@ -0,0 +1,23 @@
{ lib
, fetchPypi
, buildPythonPackage
}:
buildPythonPackage rec {
pname = "conway-polynomials";
version = "0.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-btIwBgm8558BddW4VGhY7sAoVPi+MjfbjRRJzMzBxYE=";
};
pythonImportsCheck = [ "conway_polynomials" ];
meta = with lib; {
description = "Python interface to Frank Lübeck's Conway polynomial database";
homepage = "https://github.com/sagemath/conway-polynomials";
maintainers = teams.sage.members;
license = licenses.gpl3Plus;
};
}

View file

@ -0,0 +1,65 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, click
, jedi
, markdown
, pymdown-extensions
, pygments
, tomlkit
, uvicorn
, starlette
, websockets
, docutils
, black
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "marimo";
version = "0.3.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-l5QehU/LqEWb7ybKxace4sm6C9mcNlaHNOp55ExglpQ=";
};
build-system = [
setuptools
];
dependencies = [
click
jedi
markdown
pymdown-extensions
pygments
tomlkit
uvicorn
starlette
websockets
docutils
black
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"marimo"
];
meta = with lib; {
description = "A reactive Python notebook that's reproducible, git-friendly, and deployable as scripts or apps";
homepage = "https://github.com/marimo-team/marimo";
license = licenses.asl20;
mainProgram = "marimo";
maintainers = with maintainers; [ akshayka dmadisetti ];
};
}

View file

@ -0,0 +1,64 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, pillow
, poetry-core
, pytest-asyncio
, pytest-httpserver
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "ollama";
version = "0.1.7";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ollama";
repo = "ollama-python";
rev = "refs/tags/v${version}";
hash = "sha256-xNH9kAjSdVXrCI7zkyR7tYxJ/NG8/08ykkDZQJI8Za4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "0.0.0" "${version}"
'';
pythonRelaxDeps = [
"httpx"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
httpx
];
nativeCheckInputs = [
pillow
pytest-asyncio
pytest-httpserver
pytestCheckHook
];
pythonImportsCheck = [
"ollama"
];
meta = with lib; {
description = "Ollama Python library";
homepage = "https://github.com/ollama/ollama-python";
changelog = "https://github.com/ollama/ollama-python/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1,34 +0,0 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, setuptools
}:
buildPythonPackage rec {
pname = "py-tree-sitter";
version = "0.20.4";
format = "pyproject";
src = fetchFromGitHub {
owner = "tree-sitter";
repo = "py-tree-sitter";
rev = "refs/tags/v${version}";
hash = "sha256-R97WcsHQMcuEOCg/QQ9YbGTRD30G9PRv0xAbxuoFyC4=";
fetchSubmodules = true;
};
nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [ "tree_sitter" ];
meta = with lib; {
homepage = "https://github.com/tree-sitter/py-tree-sitter";
description = "Python bindings for tree-sitter";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
platforms = platforms.unix;
};
}

View file

@ -5,26 +5,28 @@
, numpy , numpy
}: }:
let let
version = "0.2.1"; version = "0.2.1+";
format = "setuptools";
in in
buildPythonPackage { buildPythonPackage {
pname = "pyphotonfile"; pname = "pyphotonfile";
format = "setuptools";
inherit version; inherit version;
dontUseSetuptoolsCheck = true;
propagatedBuildInputs = [ pillow numpy ]; propagatedBuildInputs = [ pillow numpy ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fookatchu"; owner = "cab404";
repo = "pyphotonfile"; repo = "pyphotonfile";
rev = "v${version}"; rev = "b7ee92a0071007bb1d6a5984262651beec26543d";
sha256 = "1hh1fcn7q3kyk2413pjs18xnxvzrchrisbpj2cd59jrdp0qzgv2s"; sha256 = "iB5ky4fPX8ZnvXlDpggqS/345k2x/mPC4cIgb9M0f/c=";
}; };
meta = with lib; { meta = with lib; {
maintainers = [ maintainers.cab404 ]; maintainers = [ maintainers.cab404 ];
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
description = "Library for reading and writing files for the Anycubic Photon 3D-Printer"; description = "Library for reading and writing files for the Anycubic Photon 3D-Printer";
homepage = "https://github.com/fookatchu/pyphotonfile"; homepage = "https://github.com/cab404/pyphotonfile";
}; };
} }

View file

@ -26,7 +26,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "sagemaker"; pname = "sagemaker";
version = "2.212.0"; version = "2.213.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -35,7 +35,7 @@ buildPythonPackage rec {
owner = "aws"; owner = "aws";
repo = "sagemaker-python-sdk"; repo = "sagemaker-python-sdk";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-JZX/k8AJSQrCrPAsDfEc78mAouBWFQlmRG0ZA1yBGJY="; hash = "sha256-3V4boilVpqvwRBBuZv/AKEks+BH9PFnigfq6Z5kFhqQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "tesla-fleet-api"; pname = "tesla-fleet-api";
version = "0.4.9"; version = "0.5.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.10"; disabled = pythonOlder "3.10";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "Teslemetry"; owner = "Teslemetry";
repo = "python-tesla-fleet-api"; repo = "python-tesla-fleet-api";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-GiDhVN6aBj0yeIg596ox2ES28Dca81pVnsYWvc1SZ+A="; hash = "sha256-IRUH3qWRJoCEvzkkR8/qH5i735B030CLKKRRWO9DVuI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -1,37 +1,52 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, fetchpatch
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools , setuptools
, wheel
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "tree-sitter"; pname = "tree-sitter";
version = "0.20.4"; version = "0.21.1";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchFromGitHub {
pname = "tree_sitter"; owner = "tree-sitter";
inherit version; repo = "py-tree-sitter";
hash = "sha256-atsSPi8+VjmbvyNZkkYzyILMQO6DRIhSALygki9xO+U="; rev = "refs/tags/v${version}";
hash = "sha256-U4ZdU0lxjZO/y0q20bG5CLKipnfpaxzV3AFR6fGS7m4=";
fetchSubmodules = true;
}; };
patches = [
# Replace distutils with setuptools, https://github.com/tree-sitter/py-tree-sitter/pull/214
(fetchpatch {
name = "replace-distutils.patch";
url = "https://github.com/tree-sitter/py-tree-sitter/commit/80d3cae493c4a47e49cc1d2ebab0a8eaf7617825.patch";
hash = "sha256-00coI8/COpYMiSflAECwh6yJCMJj/ucFEn18Npj2g+Q=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
setuptools setuptools
wheel
]; ];
# PyPI tarball doesn't contains tests and source has additional requirements nativeCheckInputs = [
doCheck = false; pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [
"tree_sitter" "tree_sitter"
]; ];
preCheck = ''
rm -r tree_sitter
'';
meta = with lib; { meta = with lib; {
description = "Python bindings to the Tree-sitter parsing library"; description = "Python bindings to the Tree-sitter parsing library";
homepage = "https://github.com/tree-sitter/py-tree-sitter"; homepage = "https://github.com/tree-sitter/py-tree-sitter";

View file

@ -9,16 +9,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "moon"; pname = "moon";
version = "1.22.7"; version = "1.22.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "moonrepo"; owner = "moonrepo";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-sMV7pr3uVWpmx1cK+qooxe55E2IAqdbcYs5H76Al56c="; hash = "sha256-hKVC9xnzlucsja57O9p2ZAbE4YVrroKlQ0WMTWOumbE=";
}; };
cargoHash = "sha256-RsT0P7fNsKchQ3N71DNhdR0jViQJe/pyWKtj/A+nDhk="; cargoHash = "sha256-22nov28oq3KhILiwQUXaknTzcf8MlrAEHiyv31ivvBc=";
env = { env = {
RUSTFLAGS = "-C strip=symbols"; RUSTFLAGS = "-C strip=symbols";

View file

@ -2,15 +2,15 @@
buildGoModule rec { buildGoModule rec {
pname = "konstraint"; pname = "konstraint";
version = "0.33.0"; version = "0.35.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "plexsystems"; owner = "plexsystems";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-rZDLnr3FNLNOadmST70p5ZusK+p9SiUmVrnc5TrKuK4="; sha256 = "sha256-6MYpZm5Uc5l06wRo6/15bmyVkdqjFuxHV3B3TriauQg=";
}; };
vendorHash = "sha256-gaY3U6+Emk6La5wPyT5TvgTwPsh2Ws2t7C8B5T4c46E="; vendorHash = "sha256-NyNQivJM9bFP/EBfjso+13sWMnubG/fjYafCGUnsvdU=";
# Exclude go within .github folder # Exclude go within .github folder
excludedPackages = ".github"; excludedPackages = ".github";

View file

@ -1,13 +1,13 @@
{ lib, buildGoModule, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec { buildGoModule rec {
pname = "protolint"; pname = "protolint";
version = "0.49.2"; version = "0.49.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "yoheimuta"; owner = "yoheimuta";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-JUSHAIyUMsZOWFhomR6s+gxUIwd/oziBZdlgaZX1sOk="; hash = "sha256-V3xsjaqW5PaEmvEAn85c+eMRzb2DHpsPd9rUyzXDe9o=";
}; };
vendorHash = "sha256-8yV/YyNSn6O2UjAQlzM90fOoi3TdxO+v4YPtmSQMFC0="; vendorHash = "sha256-8yV/YyNSn6O2UjAQlzM90fOoi3TdxO+v4YPtmSQMFC0=";

View file

@ -3,13 +3,19 @@
, makeDesktopItem , makeDesktopItem
, makeWrapper , makeWrapper
, maven , maven
, jdk17
, jre , jre
, xorg , xorg
, gitUpdater , gitUpdater
, libGL , libGL
}: }:
maven.buildMavenPackage rec { let
mavenJdk17 = maven.override {
jdk = jdk17;
};
in
mavenJdk17.buildMavenPackage rec {
pname = "runelite"; pname = "runelite";
version = "2.6.13"; version = "2.6.13";

View file

@ -1,40 +0,0 @@
{ lib, stdenv, fetchFromGitHub, opencflite, clang, libcxx }:
stdenv.mkDerivation {
pname = "maloader";
version = "unstable-2014-02-25";
src = fetchFromGitHub {
owner = "shinh";
repo = "maloader";
rev = "5f220393e0b7b9ad0cf1aba0e89df2b42a1f0442";
sha256 = "0dd1pn07x1y8pyn5wz8qcl1c1xwghyya4d060m3y9vx5dhv9xmzw";
};
postPatch = ''
sed -i \
-e '/if.*loadLibMac.*mypath/s|mypath|"'"$out/lib/"'"|' \
-e 's|libCoreFoundation\.so|${opencflite}/lib/&|' \
ld-mac.cc
'';
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev libcxx}/include/c++/v1";
buildInputs = [ clang libcxx ];
buildFlags = [ "USE_LIBCXX=1" "release" ];
installPhase = ''
install -vD libmac.so "$out/lib/libmac.so"
for bin in extract macho2elf ld-mac; do
install -vD "$bin" "$out/bin/$bin"
done
'';
meta = {
description = "Mach-O loader for Linux";
homepage = "https://github.com/shinh/maloader";
license = lib.licenses.bsd2;
platforms = lib.platforms.linux;
broken = true; # 2018-09-08, no succesful build since 2017-08-21
};
}

View file

@ -1,21 +0,0 @@
{ lib, stdenv, fetchurl, icu, libuuid, tzdata }:
stdenv.mkDerivation rec {
pname = "opencflite";
version = "476.19.0";
src = fetchurl {
url = "mirror://sourceforge/opencflite/${pname}-${version}.tar.gz";
sha256 = "0jgmzs0ycl930hmzcvx0ykryik56704yw62w394q1q3xw5kkjn9v";
};
configureFlags = [ "--with-uuid=${libuuid.dev}" ];
buildInputs = [ icu tzdata.dev ];
enableParallelBuilding = true;
meta = {
description = "Cross platform port of the macOS CoreFoundation";
homepage = "https://sourceforge.net/projects/opencflite/";
license = lib.licenses.apsl20;
};
}

View file

@ -8,13 +8,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "klipper"; pname = "klipper";
version = "unstable-2024-03-15"; version = "unstable-2024-03-19";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "KevinOConnor"; owner = "KevinOConnor";
repo = "klipper"; repo = "klipper";
rev = "bfb71bc2dc63f2911a11ebf580f82b1e8b2706c4"; rev = "235b75be3c287a9fdcde54b347734bf6a8de2ade";
sha256 = "sha256-djF1IOcMCBcsmVV0hgn6QMwDVClxSSithgiRvss9KQc="; sha256 = "sha256-PTdLhoKTlvrTljAvrK8q/JF9w50kKJHkWrzdPPaSfCc=";
}; };
sourceRoot = "${src.name}/klippy"; sourceRoot = "${src.name}/klippy";

View file

@ -2,20 +2,20 @@
buildGoModule rec { buildGoModule rec {
pname = "mackerel-agent"; pname = "mackerel-agent";
version = "0.79.0"; version = "0.80.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mackerelio"; owner = "mackerelio";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-UKSrNUKS7VYK/hcKdNetaq6HNPqZyK7VtlJZjoyxU6o="; sha256 = "sha256-ETM7OTJEdySej9wrV9sth1JCJAtfBVdsPH8ndOBV118=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
nativeCheckInputs = lib.optionals (!stdenv.isDarwin) [ nettools ]; nativeCheckInputs = lib.optionals (!stdenv.isDarwin) [ nettools ];
buildInputs = lib.optionals (!stdenv.isDarwin) [ iproute2 ]; buildInputs = lib.optionals (!stdenv.isDarwin) [ iproute2 ];
vendorHash = "sha256-AnkjmgcFSI8RadfTdtCk+NCiAw+NecfaU/vc7WOgbuk="; vendorHash = "sha256-pCUHDHKNaSoIPB3fS+Jf953YMI5cXcUOLF+YP62iPMo=";
subPackages = [ "." ]; subPackages = [ "." ];

View file

@ -135,7 +135,7 @@ let
fish = stdenv.mkDerivation rec { fish = stdenv.mkDerivation rec {
pname = "fish"; pname = "fish";
version = "3.7.0"; version = "3.7.1";
src = fetchurl { src = fetchurl {
# There are differences between the release tarball and the tarball GitHub # There are differences between the release tarball and the tarball GitHub
@ -145,7 +145,7 @@ let
# --version`), as well as the local documentation for all builtins (and # --version`), as well as the local documentation for all builtins (and
# maybe other things). # maybe other things).
url = "https://github.com/fish-shell/fish-shell/releases/download/${version}/${pname}-${version}.tar.xz"; url = "https://github.com/fish-shell/fish-shell/releases/download/${version}/${pname}-${version}.tar.xz";
hash = "sha256-3xtzeLcU8GkLKF7Z5OWK/icKyY28nKWDlYnBr8yjOrE="; hash = "sha256-YUyfVkPNB5nfOROV+mu8NklCe7g5cizjsRTTu8GjslA=";
}; };
# Fix FHS paths in tests # Fix FHS paths in tests
@ -308,7 +308,7 @@ let
passthru = { passthru = {
shellPath = "/bin/fish"; shellPath = "/bin/fish";
tests = { tests = {
nixos = nixosTests.fish; nixos = lib.optionalAttrs stdenv.isLinux nixosTests.fish;
# Test the fish_config tool by checking the generated splash page. # Test the fish_config tool by checking the generated splash page.
# Since the webserver requires a port to run, it is not started. # Since the webserver requires a port to run, it is not started.
@ -322,18 +322,17 @@ let
# if we don't set `delete=False`, the file will get cleaned up # if we don't set `delete=False`, the file will get cleaned up
# automatically (leading the test to fail because there's no # automatically (leading the test to fail because there's no
# tempfile to check) # tempfile to check)
sed -e 's@, mode="w"@, mode="w", delete=False@' -i webconfig.py ${lib.getExe gnused} -e 's@, mode="w"@, mode="w", delete=False@' -i webconfig.py
# we delete everything after the fileurl is assigned # we delete everything after the fileurl is assigned
sed -e '/fileurl =/q' -i webconfig.py ${lib.getExe gnused} -e '/fileurl =/q' -i webconfig.py
echo "print(fileurl)" >> webconfig.py echo "print(fileurl)" >> webconfig.py
# and check whether the message appears on the page # and check whether the message appears on the page
cat (${python3}/bin/python ./webconfig.py \
| tail -n1 | sed -ne 's|.*\(/build/.*\)|\1|p' \
) | grep 'a href="http://localhost.*Start the Fish Web config'
# cannot test the http server because it needs a localhost port # cannot test the http server because it needs a localhost port
cat (${python3}/bin/python ./webconfig.py \
| tail -n1 | ${lib.getExe gnused} -e 's|file://||' \
) | ${lib.getExe gnugrep} -q 'a href="http://localhost.*Start the Fish Web config'
''; '';
in in
runCommand "test-web-config" { } '' runCommand "test-web-config" { } ''

View file

@ -225,14 +225,18 @@ rec {
}); });
}); });
/* Copy the libstdc++ from the model stdenv to the target stdenv.
*
* TODO(@connorbaker):
* This interface provides behavior which should be revisited prior to the
* release of 24.05. For a more detailed explanation and discussion, see
* https://github.com/NixOS/nixpkgs/issues/283517. */
useLibsFrom = modelStdenv: targetStdenv: useLibsFrom = modelStdenv: targetStdenv:
let let
ccForLibs = modelStdenv.cc.cc; ccForLibs = modelStdenv.cc.cc;
cc = pkgs.wrapCCWith { /* NOTE(@connorbaker):
/* NOTE: cc.cc is the unwrapped compiler. Should we respect the old * This assumes targetStdenv.cc is a cc-wrapper. */
* wrapper instead? */ cc = targetStdenv.cc.override {
cc = targetStdenv.cc.cc;
/* NOTE(originally by rrbutani): /* NOTE(originally by rrbutani):
* Normally the `useCcForLibs`/`gccForLibs` mechanism is used to get a * Normally the `useCcForLibs`/`gccForLibs` mechanism is used to get a
* clang based `cc` to use `libstdc++` (from gcc). * clang based `cc` to use `libstdc++` (from gcc).

View file

@ -19,13 +19,13 @@
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "drawterm"; pname = "drawterm";
version = "unstable-2024-02-18"; version = "unstable-2024-03-20";
src = fetchFrom9Front { src = fetchFrom9Front {
owner = "plan9front"; owner = "plan9front";
repo = "drawterm"; repo = "drawterm";
rev = "bcf1eb425dd4c90a3bfcd004f6aee3854259da78"; rev = "77b464a5d5648bb646467111b8faf719cd5c46b6";
hash = "sha256-aUQ6ay2ky9NzVUZvWyHc/GqPlCdhGpXTY8GGytJSC6g="; hash = "sha256-3J/Fa3NXxUieEqRcCepGdd0ktxQFKhyY4z8Pvcq94Kw=";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;

View file

@ -1,12 +1,12 @@
# DO NOT EDIT! This file is generated automatically by update.sh # DO NOT EDIT! This file is generated automatically by update.sh
{ }: { }:
{ {
version = "3.111.0"; version = "3.111.1";
pulumiPkgs = { pulumiPkgs = {
x86_64-linux = [ x86_64-linux = [
{ {
url = "https://get.pulumi.com/releases/sdk/pulumi-v3.111.0-linux-x64.tar.gz"; url = "https://get.pulumi.com/releases/sdk/pulumi-v3.111.1-linux-x64.tar.gz";
sha256 = "19nlzw60bsysqldzdg9zlxc9qvwzlfa9bn8wvffndg0xndy6ghwh"; sha256 = "1hkj2dkpxp2migg1xh3vk42k1yq7y1bhchvkjd3vxbsd86llkwjz";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v6.12.0-linux-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v6.12.0-linux-amd64.tar.gz";
@ -29,8 +29,8 @@
sha256 = "0984gpc5ds1bycvl1jwd3ifl6933vkd32w2mbyn3ik13wzxqm3q0"; sha256 = "0984gpc5ds1bycvl1jwd3ifl6933vkd32w2mbyn3ik13wzxqm3q0";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v6.25.1-linux-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v6.27.0-linux-amd64.tar.gz";
sha256 = "1bwp6fxqaxgyhlakci2crk7qiwgymkmih5cnpcvmgxwvdw56ll4q"; sha256 = "0dcyg4d50x5fkzqmnhw7mm8bgcs2zxph6bdjfdq2cxi28nzzg1ac";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.47.2-linux-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.47.2-linux-amd64.tar.gz";
@ -69,8 +69,8 @@
sha256 = "0hnardid0kbzy65dmn7vz8ddy5hq78nf2871zz6srf2hfyiv7qa4"; sha256 = "0hnardid0kbzy65dmn7vz8ddy5hq78nf2871zz6srf2hfyiv7qa4";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v8.5.0-linux-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v8.5.1-linux-amd64.tar.gz";
sha256 = "06lzppd2y2qm4gxf54f0s4gps13kk2zv6zmar8lrk31w4sfr06j3"; sha256 = "0vjd2y8h4m4j7v61wqwzrdgchqpz1nlbrvvrah06k8l9ci2hpml1";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v7.14.0-linux-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v7.14.0-linux-amd64.tar.gz";
@ -125,8 +125,8 @@
sha256 = "1fihr9kilipd3lycl5m0vrf8l8658b1pm8mywsnk5wlksk1bf665"; sha256 = "1fihr9kilipd3lycl5m0vrf8l8658b1pm8mywsnk5wlksk1bf665";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.68.0-linux-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.69.0-linux-amd64.tar.gz";
sha256 = "018ynwc7l2xvqq1n64ny3rlv37nzbx1b0c2j1jla7r35a4vjym8f"; sha256 = "0qmh81kvqprmp1shml183qc6mdq76p6an7cm0b1qg7zyabg7qbrz";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.20.3-linux-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.20.3-linux-amd64.tar.gz";
@ -148,23 +148,14 @@
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.7.0-linux-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.7.0-linux-amd64.tar.gz";
sha256 = "0w7cgafkz1r55bz8n51v2rqhmmxzrf7ma60awzlfd2apyihghxyp"; sha256 = "0w7cgafkz1r55bz8n51v2rqhmmxzrf7ma60awzlfd2apyihghxyp";
} }
{ # pulumi-resource-vsphere skipped (does not exist on remote)
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vsphere-v4.10.0-linux-amd64.tar.gz"; # pulumi-resource-wavefront skipped (does not exist on remote)
sha256 = "0j3g5d94x5hawlrvr2iya4l0lsqjvszkgrgwppna6cn5mqjpx7v0"; # pulumi-resource-yandex skipped (does not exist on remote)
}
{
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-wavefront-v3.1.1-linux-amd64.tar.gz";
sha256 = "0ghxcipyz6j3fmawi5bpkz1mdpcdg046nib2w90r26dbidi4l3f3";
}
{
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-yandex-v0.13.0-linux-amd64.tar.gz";
sha256 = "14qsnjafhd8ppachxr7j9541p5rbf1cakqlr7mra86fli1r49z9p";
}
]; ];
x86_64-darwin = [ x86_64-darwin = [
{ {
url = "https://get.pulumi.com/releases/sdk/pulumi-v3.111.0-darwin-x64.tar.gz"; url = "https://get.pulumi.com/releases/sdk/pulumi-v3.111.1-darwin-x64.tar.gz";
sha256 = "0z6bcdsm48cw0q6p3jrcbd920kwq56h81hd4qzf1akr5b0fqs8qk"; sha256 = "0vqwgx29z4rpmlxjqjxaixhijha6si0y01ibnr4wiwmm4y6ls578";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v6.12.0-darwin-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v6.12.0-darwin-amd64.tar.gz";
@ -187,8 +178,8 @@
sha256 = "0369vlly2x6sl59b4qha55yhhyjjpx38vlkmsbbqzla3da7zabf0"; sha256 = "0369vlly2x6sl59b4qha55yhhyjjpx38vlkmsbbqzla3da7zabf0";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v6.25.1-darwin-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v6.27.0-darwin-amd64.tar.gz";
sha256 = "1dhykjnvn1qr65nmbdafxl1q3vqfqc152x540syf5v3avcf0kqdb"; sha256 = "0xx4yw5zl4lnswnz4w4qrxgdiy400c8p7bsr1rqz1zmc9bqm43ng";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.47.2-darwin-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.47.2-darwin-amd64.tar.gz";
@ -227,8 +218,8 @@
sha256 = "1m5lh59h7nck1flzxs9m4n0ag0klk3jmnpf7hc509vffxs89xnjq"; sha256 = "1m5lh59h7nck1flzxs9m4n0ag0klk3jmnpf7hc509vffxs89xnjq";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v8.5.0-darwin-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v8.5.1-darwin-amd64.tar.gz";
sha256 = "0ibabyyk92v4cx7h6bckbb6yqp25b68z3s34ri2ci3q595f1mr84"; sha256 = "1c5wf2ksp7f02x82swjd7gq1d072j4zsyiyllrrazyvv8310zyig";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v7.14.0-darwin-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v7.14.0-darwin-amd64.tar.gz";
@ -283,8 +274,8 @@
sha256 = "0n0yd8hg10qfxvb6y5hci60n3520w5pidjzw43ih35dj84f0y23s"; sha256 = "0n0yd8hg10qfxvb6y5hci60n3520w5pidjzw43ih35dj84f0y23s";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.68.0-darwin-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.69.0-darwin-amd64.tar.gz";
sha256 = "1jy9ybxsplz7zapw56l0g11sfdzjf6xg1q7cj4js95fvisd2y0a4"; sha256 = "0mjcsgcwb8mqy5si5kj8l96ig6ccjwfplmr8kwrg22bj7g7vidlz";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.20.3-darwin-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.20.3-darwin-amd64.tar.gz";
@ -306,23 +297,14 @@
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.7.0-darwin-amd64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.7.0-darwin-amd64.tar.gz";
sha256 = "1pvbcyw1l2b27hn48klc2fj3is2y3z1dj90ac4kkqi2ag4xj45vx"; sha256 = "1pvbcyw1l2b27hn48klc2fj3is2y3z1dj90ac4kkqi2ag4xj45vx";
} }
{ # pulumi-resource-vsphere skipped (does not exist on remote)
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vsphere-v4.10.0-darwin-amd64.tar.gz"; # pulumi-resource-wavefront skipped (does not exist on remote)
sha256 = "0yfk80y2dm0rk06q5m5sc159gryxbxp1gmbi4iwjcrpdra6vbm9v"; # pulumi-resource-yandex skipped (does not exist on remote)
}
{
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-wavefront-v3.1.1-darwin-amd64.tar.gz";
sha256 = "1lypf3yisnf19ygkjy6fmdbzf4i4mi5jzq7yc16hrg3aq2g75rr5";
}
{
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-yandex-v0.13.0-darwin-amd64.tar.gz";
sha256 = "11wm9c125154brisncm9cgb41nbjl9q9h4bq6z0ym8v681qq0fc4";
}
]; ];
aarch64-linux = [ aarch64-linux = [
{ {
url = "https://get.pulumi.com/releases/sdk/pulumi-v3.111.0-linux-arm64.tar.gz"; url = "https://get.pulumi.com/releases/sdk/pulumi-v3.111.1-linux-arm64.tar.gz";
sha256 = "0vgaqm6ap02640yf6a8ycbb2an3ymamgrzl6x1bj3ykk13x7ri2p"; sha256 = "0nahz89vw9gkgszdcv9v9d658x43jzvk547kq6jpsgnzjligf41q";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v6.12.0-linux-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v6.12.0-linux-arm64.tar.gz";
@ -345,8 +327,8 @@
sha256 = "10iaa1w7a0xbp15hyfl3slksg7rss04jcchws1z3lqddfn5xdcf2"; sha256 = "10iaa1w7a0xbp15hyfl3slksg7rss04jcchws1z3lqddfn5xdcf2";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v6.25.1-linux-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v6.27.0-linux-arm64.tar.gz";
sha256 = "14ayammjy00d73qgkcdyyryd60yrk6h71vjqakvmbnwndh44hm52"; sha256 = "1v3h9j9bxqnjg8fj4k75p96sglnnkw5jziyfvbzhcbd11fcvaffs";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.47.2-linux-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.47.2-linux-arm64.tar.gz";
@ -385,8 +367,8 @@
sha256 = "111pia2f5xwkwaqs6p90ri29l5b3ivmahsa1bji4fwyyjyp22h4r"; sha256 = "111pia2f5xwkwaqs6p90ri29l5b3ivmahsa1bji4fwyyjyp22h4r";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v8.5.0-linux-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v8.5.1-linux-arm64.tar.gz";
sha256 = "14c25p6hfyyxq5cfq1z89gb67ywlr4zwj8lllknwqc7wsnvykllg"; sha256 = "1cx7b7nxmjng8pff84yf0jhdmnmld5g09a80999ah90p54xy4zww";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v7.14.0-linux-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v7.14.0-linux-arm64.tar.gz";
@ -441,8 +423,8 @@
sha256 = "1ssm84izdqzaymw1w3q9b2lkw35brysii73xhw7dgcazhgagfd1w"; sha256 = "1ssm84izdqzaymw1w3q9b2lkw35brysii73xhw7dgcazhgagfd1w";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.68.0-linux-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.69.0-linux-arm64.tar.gz";
sha256 = "1nwm69fblmll2d3hgnl5d98x1xhjl49l5cdc8smldr25i5zp5zj2"; sha256 = "0ns90ky01kys22dwhkmb4dwax1gzyr8jclczx1fc5d9xvl5cssiy";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.20.3-linux-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.20.3-linux-arm64.tar.gz";
@ -464,23 +446,14 @@
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.7.0-linux-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.7.0-linux-arm64.tar.gz";
sha256 = "017ff9x7s4yvsrf4ypsyaz934r9jm954080gn5535w1694k96wbn"; sha256 = "017ff9x7s4yvsrf4ypsyaz934r9jm954080gn5535w1694k96wbn";
} }
{ # pulumi-resource-vsphere skipped (does not exist on remote)
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vsphere-v4.10.0-linux-arm64.tar.gz"; # pulumi-resource-wavefront skipped (does not exist on remote)
sha256 = "0sgrb6h7d5myp1cy4i7fhhx718n4qx83hj561z98y5hvipg16bcx"; # pulumi-resource-yandex skipped (does not exist on remote)
}
{
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-wavefront-v3.1.1-linux-arm64.tar.gz";
sha256 = "08mxk5rccxsgvjcnfxwzcr8980gkg7mxfrzx3fyvcxmgvf3ykcn8";
}
{
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-yandex-v0.13.0-linux-arm64.tar.gz";
sha256 = "0fd3hgvkr3ch2r5hpmi7h70w4hkbjdyc7z534h151pyc5ssxw8bd";
}
]; ];
aarch64-darwin = [ aarch64-darwin = [
{ {
url = "https://get.pulumi.com/releases/sdk/pulumi-v3.111.0-darwin-arm64.tar.gz"; url = "https://get.pulumi.com/releases/sdk/pulumi-v3.111.1-darwin-arm64.tar.gz";
sha256 = "13qhv19xr21y6zs6if6gmyvayy0jrcg4kfn1z7zsqhf6j33ibwys"; sha256 = "0vs7mnp16bc9zj74v2ibn4nsjp43hjqpsdkgx3xhvb021b6lvnh0";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v6.12.0-darwin-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v6.12.0-darwin-arm64.tar.gz";
@ -503,8 +476,8 @@
sha256 = "0ja508z0r4gbg2zdyrjb7gq8kn1brrx5q6am5dvwaikqs6i6vxrm"; sha256 = "0ja508z0r4gbg2zdyrjb7gq8kn1brrx5q6am5dvwaikqs6i6vxrm";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v6.25.1-darwin-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v6.27.0-darwin-arm64.tar.gz";
sha256 = "0wx39f18qc3yvnzixs7r1lq7lbff3as2xb60ldy3zim2dapy3y37"; sha256 = "0y0qha8d0dsjnqjaipn6i3csda4cl13zq0mqd8jpda127c3jzzxv";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.47.2-darwin-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.47.2-darwin-arm64.tar.gz";
@ -543,8 +516,8 @@
sha256 = "12bzicm43l7yvh02v5fx3z8v46l9i7a9f677735xi5rjbmd2an4c"; sha256 = "12bzicm43l7yvh02v5fx3z8v46l9i7a9f677735xi5rjbmd2an4c";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v8.5.0-darwin-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v8.5.1-darwin-arm64.tar.gz";
sha256 = "1ayyr8kywylv6zvwbzs71mvyldkh8qiki8ca90i34rpjxrv92n2d"; sha256 = "18985l0djz592235y2brxncpaky850qyr0xa23aflm07wdh7fc3n";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v7.14.0-darwin-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v7.14.0-darwin-arm64.tar.gz";
@ -599,8 +572,8 @@
sha256 = "1qr6qh4323d6n7f56lixdrph5cb5qby4q2f3l8l4l6n8s345v9kr"; sha256 = "1qr6qh4323d6n7f56lixdrph5cb5qby4q2f3l8l4l6n8s345v9kr";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.68.0-darwin-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.69.0-darwin-arm64.tar.gz";
sha256 = "120acxnm1lid5spszv8i4vgnk732fch8j3i2qhrdd3k2p86z0a1n"; sha256 = "0rjb8pbxrp0djvjmxqvivd3jyy9r1iflp6i5a7mzad825g7gzczb";
} }
{ {
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.20.3-darwin-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.20.3-darwin-arm64.tar.gz";
@ -622,18 +595,9 @@
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.7.0-darwin-arm64.tar.gz"; url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.7.0-darwin-arm64.tar.gz";
sha256 = "00qq53wirdjm8zqqisad34fzx70m96dwg0dqysz6nqikq620h7dp"; sha256 = "00qq53wirdjm8zqqisad34fzx70m96dwg0dqysz6nqikq620h7dp";
} }
{ # pulumi-resource-vsphere skipped (does not exist on remote)
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vsphere-v4.10.0-darwin-arm64.tar.gz"; # pulumi-resource-wavefront skipped (does not exist on remote)
sha256 = "1562pylmy4i109wwpn0lqb11m3ajwlswn5f76ni0cq4sw0iips4l"; # pulumi-resource-yandex skipped (does not exist on remote)
}
{
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-wavefront-v3.1.1-darwin-arm64.tar.gz";
sha256 = "09k9px0pm55jf3kxq1xc37li34mdv96sgcg89wmmm7spwl8q48m1";
}
{
url = "https://api.pulumi.com/releases/plugins/pulumi-resource-yandex-v0.13.0-darwin-arm64.tar.gz";
sha256 = "1qaccfqw24g862ij2p49m78hnymg0j2nghshszqrg45v0d0qnknm";
}
]; ];
}; };
} }

View file

@ -8,18 +8,18 @@
buildGoModule rec { buildGoModule rec {
pname = "opentelemetry-collector-contrib"; pname = "opentelemetry-collector-contrib";
version = "0.87.0"; version = "0.96.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "open-telemetry"; owner = "open-telemetry";
repo = "opentelemetry-collector-contrib"; repo = "opentelemetry-collector-contrib";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-b1TCj3aKupqUMQ74O58O5WJfQM9tj1G0ny5YeeilFAM="; sha256 = "sha256-eQau6PcslY/Bzghmndv1lq5fb+Q+x9guouKzLw5sJTg=";
}; };
# proxy vendor to avoid hash missmatches between linux and macOS # proxy vendor to avoid hash missmatches between linux and macOS
proxyVendor = true; proxyVendor = true;
vendorHash = "sha256-o/51Z2Zmdza3pNZa0u3j4uG46orE9S7pUsZOXjHKrnI="; vendorHash = "sha256-aMxOu6eCskTlphMjM/CBs0lN6UkLDgSidS9qwlSUUiU=";
# there is a nested go.mod # there is a nested go.mod
sourceRoot = "${src.name}/cmd/otelcontribcol"; sourceRoot = "${src.name}/cmd/otelcontribcol";
@ -39,11 +39,7 @@ buildGoModule rec {
# it instead of trusting the global $PATH. # it instead of trusting the global $PATH.
propagatedBuildInputs = lib.optionals withSystemd [ systemdMinimal ]; propagatedBuildInputs = lib.optionals withSystemd [ systemdMinimal ];
preCheck = "export CGO_ENABLED=1"; doCheck = false;
# This test fails on darwin for mysterious reasons.
checkFlags = lib.optionals stdenv.isDarwin
[ "-skip" "TestDefaultExtensions/memory_ballast" ];
ldflags = [ ldflags = [
"-s" "-s"

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pspg"; pname = "pspg";
version = "5.8.1"; version = "5.8.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "okbob"; owner = "okbob";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-nsGBBGw66LCwOuNdBjlz6u9RT+BX6iZmZeDY9yJoc+c="; sha256 = "sha256-1mL/UlN7wD0GBYwg0C2eYCB3MtFO2ILd4+A7br+/ovs=";
}; };
nativeBuildInputs = [ pkg-config installShellFiles ]; nativeBuildInputs = [ pkg-config installShellFiles ];

View file

@ -2,6 +2,7 @@
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, autoreconfHook , autoreconfHook
, boost
, pkg-config , pkg-config
, gnutls , gnutls
, libgcrypt , libgcrypt
@ -17,18 +18,19 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "nzbget-ng"; pname = "nzbget-ng";
version = "21.4-rc2"; version = "23.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nzbget-ng"; owner = "nzbgetcom";
repo = "nzbget"; repo = "nzbget";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-JJML5mtAog5xC7DkthCtoyn5QeC2Z+fdzSuEa/Te0Ew="; hash = "sha256-JqC82zpsIqRYB7128gTSOQMWJFR/t63NJXlPgGqP0jE=";
}; };
nativeBuildInputs = [ autoreconfHook pkg-config ]; nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ buildInputs = [
boost
gnutls gnutls
libgcrypt libgcrypt
libpar2 libpar2
@ -49,11 +51,11 @@ stdenv.mkDerivation (finalAttrs: {
passthru.tests = { inherit (nixosTests) nzbget; }; passthru.tests = { inherit (nixosTests) nzbget; };
meta = with lib; { meta = with lib; {
homepage = "https://nzbget-ng.github.io/"; homepage = "https://nzbget.com/";
changelog = "https://github.com/nzbget-ng/nzbget/releases/tag/v${finalAttrs.version}"; changelog = "https://github.com/nzbgetcom/nzbget/releases/tag/v${finalAttrs.version}";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
description = "A command line tool for downloading files from news servers"; description = "A command line tool for downloading files from news servers";
maintainers = with maintainers; [ pSub ]; maintainers = with maintainers; [ pSub devusb ];
platforms = with platforms; unix; platforms = with platforms; unix;
mainProgram = "nzbget"; mainProgram = "nzbget";
}; };

View file

@ -2,13 +2,13 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "sockdump"; pname = "sockdump";
version = "unstable-2023-09-16"; version = "unstable-2023-12-11";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mechpen"; owner = "mechpen";
repo = pname; repo = pname;
rev = "713759e383366feae76863881e851a6411c73b68"; rev = "d40ec77e960d021861220bc14a273c5dcad13160";
hash = "sha256-q6jdwFhl2G9o2C0BVU6Xz7xizO00yaSQ2KSR/z4fixY="; hash = "sha256-FLK1rgWvIoFGv/6+DtDhZGeOZrn7V1jYNS3S8qwL/dc=";
}; };
propagatedBuildInputs = [ bcc ]; propagatedBuildInputs = [ bcc ];
@ -21,6 +21,6 @@ python3.pkgs.buildPythonApplication rec {
description = "Dump unix domain socket traffic with bpf"; description = "Dump unix domain socket traffic with bpf";
mainProgram = "sockdump"; mainProgram = "sockdump";
license = lib.licenses.unlicense; license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ ehmry ]; maintainers = with lib.maintainers; [ ehmry picnoir ];
}; };
} }

View file

@ -5,16 +5,16 @@
buildNpmPackage rec { buildNpmPackage rec {
pname = "cdxgen"; pname = "cdxgen";
version = "10.2.3"; version = "10.2.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "AppThreat"; owner = "AppThreat";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-C/XTMOFLW2FPPi1Pgx7g5H8jtJlya5LnKmo3oF21yMI="; sha256 = "sha256-fou0BfQfL66Iv+STY0JcRqu22XTgA9nSOse1LJYl3vs=";
}; };
npmDepsHash = "sha256-64dKqV17WvuHjF+n1vCEfpLx6UBNpGkVE+XYi7YswgI="; npmDepsHash = "sha256-ISmNasK44T21HagHKrX1LyCFVm0GF0CsTwIIi3n8h2o=";
dontNpmBuild = true; dontNpmBuild = true;

View file

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "riffdiff"; pname = "riffdiff";
version = "3.0.1"; version = "3.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "walles"; owner = "walles";
repo = "riff"; repo = "riff";
rev = version; rev = version;
hash = "sha256-MHsbwtoiaMBWZi/UHbuhG3VuSSvuQtvxPB9EMMti80A="; hash = "sha256-ASIB7+ZyvMsaRdvJcWT/sR0JLyt4v/gytAIi8Yajlzg=";
}; };
cargoHash = "sha256-pEXGUIrWZGJoYdNoufXEJ+eeIEhm5JhIUlHRisD4qWc="; cargoHash = "sha256-NGTWBlg5xvodK02RtFuCe7KsFm4z2aEpbcx3UqH9G/o=";
meta = with lib; { meta = with lib; {
description = "A diff filter highlighting which line parts have changed"; description = "A diff filter highlighting which line parts have changed";

View file

@ -847,6 +847,7 @@ mapAliases ({
o = orbiton; # Added 2023-04-09 o = orbiton; # Added 2023-04-09
oathToolkit = oath-toolkit; # Added 2022-04-04 oathToolkit = oath-toolkit; # Added 2022-04-04
oauth2_proxy = oauth2-proxy; # Added 2021-04-18 oauth2_proxy = oauth2-proxy; # Added 2021-04-18
obinskit = throw "'obinskit' has been removed from nixpkgs, because the package was unmaintained and depended on an insecure version of electron"; # Added 2024-03-20
octant = throw "octant has been dropped due to being archived and vulnerable"; # Added 2023-09-29 octant = throw "octant has been dropped due to being archived and vulnerable"; # Added 2023-09-29
octant-desktop = throw "octant-desktop has been dropped due to being archived and vulnerable"; # Added 2023-09-29 octant-desktop = throw "octant-desktop has been dropped due to being archived and vulnerable"; # Added 2023-09-29
octorpki = throw "octorpki has been removed, upstream says to use rpki-client instead"; # Added 2024-03-19 octorpki = throw "octorpki has been removed, upstream says to use rpki-client instead"; # Added 2024-03-19

View file

@ -1861,8 +1861,6 @@ with pkgs;
gofu = callPackage ../applications/misc/gofu { }; gofu = callPackage ../applications/misc/gofu { };
godns = callPackage ../tools/networking/godns { };
godspeed = callPackage ../tools/networking/godspeed { }; godspeed = callPackage ../tools/networking/godspeed { };
goodhosts = callPackage ../tools/networking/goodhosts { }; goodhosts = callPackage ../tools/networking/goodhosts { };
@ -6119,8 +6117,6 @@ with pkgs;
optar = callPackage ../tools/graphics/optar { }; optar = callPackage ../tools/graphics/optar { };
obinskit = callPackage ../applications/misc/obinskit { };
ockam = callPackage ../tools/networking/ockam { ockam = callPackage ../tools/networking/ockam {
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
}; };
@ -7724,8 +7720,6 @@ with pkgs;
sonobuoy = callPackage ../applications/networking/cluster/sonobuoy { }; sonobuoy = callPackage ../applications/networking/cluster/sonobuoy { };
soupault = callPackage ../tools/typesetting/soupault { };
stratisd = callPackage ../tools/filesystems/stratisd { }; stratisd = callPackage ../tools/filesystems/stratisd { };
stratis-cli = callPackage ../tools/filesystems/stratis-cli { }; stratis-cli = callPackage ../tools/filesystems/stratis-cli { };
@ -10693,6 +10687,8 @@ with pkgs;
inherit (python3Packages) mako; inherit (python3Packages) mako;
}; };
marimo = with python3Packages; toPythonApplication marimo;
marktext = callPackage ../applications/misc/marktext { }; marktext = callPackage ../applications/misc/marktext { };
mars-mips = callPackage ../development/tools/mars-mips { }; mars-mips = callPackage ../development/tools/mars-mips { };
@ -26897,8 +26893,6 @@ with pkgs;
sipwitch = callPackage ../servers/sip/sipwitch { }; sipwitch = callPackage ../servers/sip/sipwitch { };
slimserver = callPackage ../servers/slimserver { };
smcroute = callPackage ../servers/smcroute { }; smcroute = callPackage ../servers/smcroute { };
snipe-it = callPackage ../by-name/sn/snipe-it/package.nix { snipe-it = callPackage ../by-name/sn/snipe-it/package.nix {
@ -28765,8 +28759,6 @@ with pkgs;
commit-mono = callPackage ../data/fonts/commit-mono { }; commit-mono = callPackage ../data/fonts/commit-mono { };
conway_polynomials = callPackage ../data/misc/conway_polynomials { };
cooper-hewitt = callPackage ../data/fonts/cooper-hewitt { }; cooper-hewitt = callPackage ../data/fonts/cooper-hewitt { };
d2coding = callPackage ../data/fonts/d2coding { }; d2coding = callPackage ../data/fonts/d2coding { };
@ -30695,7 +30687,9 @@ with pkgs;
drawing = callPackage ../applications/graphics/drawing { }; drawing = callPackage ../applications/graphics/drawing { };
drawio = callPackage ../applications/graphics/drawio { }; drawio = callPackage ../applications/graphics/drawio {
inherit (darwin) autoSignDarwinBinariesHook;
};
drawio-headless = callPackage ../applications/graphics/drawio/headless.nix { }; drawio-headless = callPackage ../applications/graphics/drawio/headless.nix { };
drawpile = libsForQt5.callPackage ../applications/graphics/drawpile { }; drawpile = libsForQt5.callPackage ../applications/graphics/drawpile { };
@ -39091,8 +39085,6 @@ with pkgs;
jflap = callPackage ../applications/science/engineering/jflap { }; jflap = callPackage ../applications/science/engineering/jflap { };
strictdoc = python3.pkgs.callPackage ../applications/science/engineering/strictdoc { };
### SCIENCE / ELECTRONICS ### SCIENCE / ELECTRONICS
adms = callPackage ../applications/science/electronics/adms { }; adms = callPackage ../applications/science/electronics/adms { };

View file

@ -153,9 +153,6 @@ impure-cmds // appleSourcePackages // chooseLibs // {
propagatedBuildInputs = [ self.signingUtils ]; propagatedBuildInputs = [ self.signingUtils ];
} ../os-specific/darwin/signing-utils/auto-sign-hook.sh; } ../os-specific/darwin/signing-utils/auto-sign-hook.sh;
maloader = callPackage ../os-specific/darwin/maloader {
};
insert_dylib = callPackage ../os-specific/darwin/insert_dylib { }; insert_dylib = callPackage ../os-specific/darwin/insert_dylib { };
iosSdkPkgs = callPackage ../os-specific/darwin/xcode/sdk-pkgs.nix { iosSdkPkgs = callPackage ../os-specific/darwin/xcode/sdk-pkgs.nix {
@ -175,8 +172,6 @@ impure-cmds // appleSourcePackages // chooseLibs // {
inherit (apple_sdk_11_0.libs) simd; inherit (apple_sdk_11_0.libs) simd;
}; };
opencflite = callPackage ../os-specific/darwin/opencflite { };
openwith = pkgs.darwin.apple_sdk_11_0.callPackage ../os-specific/darwin/openwith { openwith = pkgs.darwin.apple_sdk_11_0.callPackage ../os-specific/darwin/openwith {
inherit (apple_sdk_11_0.frameworks) AppKit Foundation UniformTypeIdentifiers; inherit (apple_sdk_11_0.frameworks) AppKit Foundation UniformTypeIdentifiers;
}; };

View file

@ -501,6 +501,7 @@ mapAliases ({
thumborPexif = throw "thumborPexif has been removed, because it was unused."; # added 2024-01-07 thumborPexif = throw "thumborPexif has been removed, because it was unused."; # added 2024-01-07
torrent_parser = torrent-parser; # added 2023-11-04 torrent_parser = torrent-parser; # added 2023-11-04
transip = throw "transip has been removed because it is no longer maintained. TransIP SOAP V5 API was marked as deprecated"; # added 2023-02-27 transip = throw "transip has been removed because it is no longer maintained. TransIP SOAP V5 API was marked as deprecated"; # added 2023-02-27
py-tree-sitter = throw "Was merged with tree-sitter."; # added 2024-03-20
trezor_agent = trezor-agent; # Added 2024-01-07 trezor_agent = trezor-agent; # Added 2024-01-07
tumpa = throw "tumpa was promoted to a top-level attribute"; # added 2022-11-19 tumpa = throw "tumpa was promoted to a top-level attribute"; # added 2022-11-19
tvdb_api = tvdb-api; # added 2023-10-20 tvdb_api = tvdb-api; # added 2023-10-20

View file

@ -1955,6 +1955,8 @@ self: super: with self; {
connio = callPackage ../development/python-modules/connio { }; connio = callPackage ../development/python-modules/connio { };
conway-polynomials = callPackage ../development/python-modules/conway-polynomials {};
correctionlib = callPackage ../development/python-modules/correctionlib { }; correctionlib = callPackage ../development/python-modules/correctionlib { };
coqpit = callPackage ../development/python-modules/coqpit { }; coqpit = callPackage ../development/python-modules/coqpit { };
@ -7005,6 +7007,8 @@ self: super: with self; {
mariadb = callPackage ../development/python-modules/mariadb { }; mariadb = callPackage ../development/python-modules/mariadb { };
marimo = callPackage ../development/python-modules/marimo { };
marisa = callPackage ../development/python-modules/marisa { marisa = callPackage ../development/python-modules/marisa {
inherit (pkgs) marisa; inherit (pkgs) marisa;
}; };
@ -8853,6 +8857,8 @@ self: super: with self; {
oletools = callPackage ../development/python-modules/oletools { }; oletools = callPackage ../development/python-modules/oletools { };
ollama = callPackage ../development/python-modules/ollama { };
omegaconf = callPackage ../development/python-modules/omegaconf { }; omegaconf = callPackage ../development/python-modules/omegaconf { };
omemo-dr = callPackage ../development/python-modules/omemo-dr { }; omemo-dr = callPackage ../development/python-modules/omemo-dr { };
@ -10304,8 +10310,6 @@ self: super: with self; {
py-tes = callPackage ../development/python-modules/py-tes { }; py-tes = callPackage ../development/python-modules/py-tes { };
py-tree-sitter = callPackage ../development/python-modules/py-tree-sitter { };
py-ubjson = callPackage ../development/python-modules/py-ubjson { }; py-ubjson = callPackage ../development/python-modules/py-ubjson { };
py-zabbix = callPackage ../development/python-modules/py-zabbix { }; py-zabbix = callPackage ../development/python-modules/py-zabbix { };