3
0
Fork 0
forked from mirrors/nixpkgs

Merge master into staging-next

This commit is contained in:
github-actions[bot] 2023-01-27 00:02:25 +00:00 committed by GitHub
commit 2a8fae3ee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 787 additions and 196 deletions

View file

@ -6508,6 +6508,13 @@
githubId = 221929; githubId = 221929;
name = "Jean-Baptiste Giraudeau"; name = "Jean-Baptiste Giraudeau";
}; };
jboy = {
email = "jboy+nixos@bius.moe";
githubId = 2187261;
github = "jboynyc";
matrix = "@jboy:utwente.io";
name = "John Boy";
};
jc = { jc = {
name = "Josh Cooper"; name = "Josh Cooper";
email = "josh@cooper.is"; email = "josh@cooper.is";
@ -11463,6 +11470,12 @@
githubId = 138074; githubId = 138074;
name = "Pedro Pombeiro"; name = "Pedro Pombeiro";
}; };
pongo1231 = {
email = "pongo1999712@gmail.com";
github = "pongo1231";
githubId = 4201956;
name = "pongo1231";
};
poscat = { poscat = {
email = "poscat@mail.poscat.moe"; email = "poscat@mail.poscat.moe";
github = "poscat0x04"; github = "poscat0x04";

View file

@ -1307,8 +1307,8 @@ let
mktplcRef = { mktplcRef = {
publisher = "github"; publisher = "github";
name = "copilot"; name = "copilot";
version = "1.56.7152"; version = "1.70.8099";
sha256 = "sha256-9WEvTcVY/yMF00GJVj4h57aWhfBYTSatbw10DjjAaAM="; sha256 = "sha256-+jlLM9UC1DZFBrtiiri4jvpuc/Rf9PcSVP8D8pmQC2s=";
}; };
meta = with lib; { meta = with lib; {
description = "GitHub Copilot uses OpenAI Codex to suggest code and entire functions in real-time right from your editor."; description = "GitHub Copilot uses OpenAI Codex to suggest code and entire functions in real-time right from your editor.";

View file

@ -39,7 +39,7 @@
, soqt , soqt
, spaceNavSupport ? stdenv.isLinux , spaceNavSupport ? stdenv.isLinux
, swig , swig
, vtk , vtk_8
, wrapQtAppsHook , wrapQtAppsHook
, wrapGAppsHook , wrapGAppsHook
, xercesc , xercesc
@ -97,7 +97,7 @@ mkDerivation rec {
shiboken2 shiboken2
soqt soqt
swig swig
vtk vtk_8
xercesc xercesc
zlib zlib
] ++ lib.optionals spaceNavSupport [ ] ++ lib.optionals spaceNavSupport [

View file

@ -1,32 +1,50 @@
{ lib, stdenv, fetchurl, aalib, gsl, libpng, libX11, xorgproto, libXext { lib, stdenv, fetchFromGitHub, qmake, qtbase, qttools, wrapQtAppsHook, copyDesktopItems }:
, libXt, zlib, gettext, intltool, perl }:
stdenv.mkDerivation rec { let datapath = "$out/share/XaoS";
in stdenv.mkDerivation rec {
pname = "xaos"; pname = "xaos";
version = "3.6"; version = "4.2.1";
outputs = [ "out" "man" ];
src = fetchurl { src = fetchFromGitHub {
url = "mirror://sourceforge/xaos/${pname}-${version}.tar.gz"; owner = "xaos-project";
sha256 = "15cd1cx1dyygw6g2nhjqq3bsfdj8sj8m4va9n75i0f3ryww3x7wq"; repo = pname;
rev = "release-${version}";
hash = "sha256-JLF8Mz/OHZEEJG/aryKQuJ6B5R8hPJdvln7mbKoqXFU=";
}; };
hardeningDisable = [ "format" ]; nativeBuildInputs = [ qmake qttools wrapQtAppsHook copyDesktopItems ];
buildInputs = [ qtbase ];
nativeBuildInputs = [ intltool ]; QMAKE_LRELEASE = "lrelease";
buildInputs = [ DEFINES = [ "USE_OPENGL" "USE_FLOAT128" ];
aalib gsl libpng libX11 xorgproto libXext
libXt zlib gettext perl
];
preConfigure = '' postPatch = ''
sed -e s@/usr/@"$out/"@g -i configure $(find . -name 'Makefile*') substituteInPlace src/include/config.h \
mkdir -p $out/share/locale --replace "/usr/share/XaoS" "${datapath}"
''; '';
meta = { desktopItems = [ "xdg/xaos.desktop" ];
homepage = "http://xaos.sourceforge.net/";
description = "Fractal viewer"; installPhase = ''
runHook preInstall
install -D bin/xaos "$out/bin/xaos"
mkdir -p "${datapath}"
cp -r tutorial examples catalogs "${datapath}"
install -D "xdg/${pname}.png" "$out/share/icons/${pname}.png"
install -D doc/xaos.6 "$man/man6/xaos.6"
runHook postInstall
'';
meta = src.meta // {
description = "Real-time interactive fractal zoomer";
homepage = "https://xaos-project.github.io/";
license = lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ ehmry ];
}; };
} }

View file

@ -1,17 +1,24 @@
{ lib, rustPlatform, fetchFromGitHub }: { lib, stdenv, rustPlatform, fetchFromGitHub, darwin }:
let
inherit (darwin.apple_sdk.frameworks) Security;
in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "diswall"; pname = "diswall";
version = "0.2.0"; version = "0.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dis-works"; owner = "dis-works";
repo = "diswall-rs"; repo = "diswall-rs";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-zT8RRg+Ver7dYtJL9htrZ8nXoD0V7IvdIqHTKDmbZ7c="; sha256 = "sha256-3FTqT3IL48lYmGoB9u76RQSgZPbaq7IkOyQjyxwpkWA=";
}; };
cargoSha256 = "sha256-N+w1OiCy3scahFdYI49GpL301t1qNd/X4fdLMoQE/2s="; buildInputs = lib.optionals stdenv.isDarwin [
Security
];
cargoSha256 = "sha256-sb6s4Oc3W+I9DB0SGyZINxyWHCSpkakiEeQUatEpeEU=";
doCheck = false; doCheck = false;

View file

@ -0,0 +1,81 @@
{ lib, stdenv, buildNpmPackage, fetchFromGitHub, copyDesktopItems
, python3, pipewire, libpulseaudio, xdg-utils, electron_22, makeDesktopItem }:
buildNpmPackage rec {
name = "webcord";
version = "4.1.1";
src = fetchFromGitHub {
owner = "SpacingBat3";
repo = "WebCord";
rev = "v${version}";
sha256 = "sha256-Buu7eKmI0UGV/9Kfj+urmDcjBtR9HSwW+mlHaYhfUa4=";
};
npmDepsHash = "sha256-PeoOoEljbkHynjZwocCWCTyYvIvSE1gQiABUzIiXEdM=";
nativeBuildInputs = [
copyDesktopItems
python3
];
libPath = lib.makeLibraryPath [
pipewire
libpulseaudio
];
binPath = lib.makeBinPath [
xdg-utils
];
# npm install will error when electron tries to download its binary
# we don't need it anyways since we wrap the program with our nixpkgs electron
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
# remove husky commit hooks, errors and aren't needed for packaging
postPatch = ''
rm -rf .husky
'';
# override installPhase so we can copy the only folders that matter
installPhase = ''
runHook preInstall
# Remove dev deps that aren't necessary for running the app
npm prune --omit=dev
mkdir -p $out/lib/node_modules/webcord
cp -r app node_modules sources package.json $out/lib/node_modules/webcord/
install -Dm644 sources/assets/icons/app.png $out/share/icons/hicolor/256x256/apps/webcord.png
makeWrapper '${electron_22}/bin/electron' $out/bin/webcord \
--prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/webcord \
--prefix PATH : "${binPath}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}" \
--add-flags $out/lib/node_modules/webcord/
runHook postInstall
'';
desktopItems = [
(makeDesktopItem {
name = "webcord";
exec = "webcord";
icon = "webcord";
desktopName = "WebCord";
comment = meta.description;
categories = [ "Network" "InstantMessaging" ];
})
];
meta = with lib; {
description = "A Discord and Fosscord electron-based client implemented without Discord API";
homepage = "https://github.com/SpacingBat3/WebCord";
downloadPage = "https://github.com/SpacingBat3/WebCord/releases";
changelog = "https://github.com/SpacingBat3/WebCord/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ huantian ];
platforms = electron_22.meta.platforms;
};
}

View file

@ -30,7 +30,7 @@
, libxkbcommon , libxkbcommon
, udev , udev
, zlib , zlib
, krb5 , libkrb5
# Runtime # Runtime
, coreutils , coreutils
, pciutils , pciutils
@ -103,11 +103,13 @@ let
xorg.libxshmfence xorg.libxshmfence
xorg.xcbutilimage xorg.xcbutilimage
xorg.xcbutilkeysyms xorg.xcbutilkeysyms
xorg.xcbutilrenderutil
xorg.xcbutilwm
xorg.libXfixes xorg.libXfixes
xorg.libXtst xorg.libXtst
udev udev
zlib zlib
krb5 libkrb5
] ++ lib.optional (pulseaudioSupport) libpulseaudio); ] ++ lib.optional (pulseaudioSupport) libpulseaudio);
in in

View file

@ -0,0 +1,65 @@
{ bash
, coreutils
, curl
, fetchFromGitHub
, gnugrep
, gnused
, iproute2
, jq
, lib
, resholve
, wireguard-tools
}:
resholve.mkDerivation rec {
pname = "wgnord";
version = "0.1.10";
src = fetchFromGitHub {
owner = "phirecc";
repo = pname;
rev = version;
hash = "sha256-T7dAEgi4tGvrzBABGLzKHhpCx0bxSCtTVI5iJJqJGlE=";
};
postPatch = ''
substituteInPlace wgnord \
--replace '$conf_dir/countries.txt' "$out/share/countries.txt" \
--replace '$conf_dir/countries_iso31662.txt' "$out/share/countries_iso31662.txt"
'';
dontBuild = true;
installPhase = ''
install -Dm 755 wgnord -t $out/bin/
install -Dm 644 countries.txt -t $out/share/
install -Dm 644 countries_iso31662.txt -t $out/share/
'';
solutions.default = {
scripts = [ "bin/wgnord" ];
interpreter = "${bash}/bin/sh";
inputs = [
coreutils
curl
gnugrep
gnused
iproute2
jq
wireguard-tools
];
fix.aliases = true; # curl command in an alias
execer = [
"cannot:${iproute2}/bin/ip"
"cannot:${wireguard-tools}/bin/wg-quick"
];
};
meta = with lib; {
description = "A NordVPN Wireguard (NordLynx) client in POSIX shell";
homepage = "https://github.com/phirecc/wgnord";
changelog = "https://github.com/phirecc/wgnord/releases/tag/v${version}";
maintainers = with lib.maintainers; [ urandom ];
license = licenses.mit;
};
}

View file

@ -1,20 +1,35 @@
{ lib, stdenv, fetchFromGitLab, unzip, zlib, python3, parallel }: { lib
, stdenv
, fetchFromGitLab
, unzip
, zlib
, python3
, parallel
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "last"; pname = "last";
version = "1422"; version = "1445";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "mcfrith"; owner = "mcfrith";
repo = "last"; repo = "last";
rev = version; rev = "refs/tags/${version}";
sha256 = "sha256-3OhttOd6qgO6d+sbVkZj8i/K6bJTvlMyfa3E4mIpt24="; hash = "sha256-E3D9KmCIVcwXblwJ0wePk0wKoXwKA2UsSGqfMmRsw2A=";
}; };
nativeBuildInputs = [ unzip ]; nativeBuildInputs = [
buildInputs = [ zlib python3 ]; unzip
];
makeFlags = [ "prefix=${placeholder "out"}" ]; buildInputs = [
zlib
python3
];
makeFlags = [
"prefix=${placeholder "out"}"
];
postFixup = '' postFixup = ''
for f in $out/bin/parallel-* ; do for f in $out/bin/parallel-* ; do

View file

@ -5,7 +5,7 @@
, csxcad , csxcad
, qcsxcad , qcsxcad
, hdf5 , hdf5
, vtkWithQt5 , vtk_8_withQt5
, qtbase , qtbase
, fparser , fparser
, tinyxml , tinyxml
@ -32,7 +32,7 @@ mkDerivation {
csxcad csxcad
qcsxcad qcsxcad
hdf5 hdf5
vtkWithQt5 vtk_8_withQt5
qtbase qtbase
fparser fparser
tinyxml tinyxml

View file

@ -5,7 +5,7 @@
, tinyxml , tinyxml
, hdf5 , hdf5
, cgal_5 , cgal_5
, vtk , vtk_8
, boost , boost
, gmp , gmp
, mpfr , mpfr
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
boost boost
gmp gmp
mpfr mpfr
vtk vtk_8
fparser fparser
tinyxml tinyxml
hdf5 hdf5

View file

@ -8,19 +8,20 @@
, which , which
, elfutils , elfutils
, libelf , libelf
, libffi
, llvm , llvm
, zlib , zlib
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nvc"; pname = "nvc";
version = "1.7.2"; version = "1.8.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nickg"; owner = "nickg";
repo = pname; repo = pname;
rev = "r${version}"; rev = "r${version}";
sha256 = "sha256-7N11S7OiAogyuNqrf7R5NZyVbiXgXxJ5t6lwBzL0YAU="; hash = "sha256-9ziGNAZgUYnBofx7YwSzAgL4zIAwoPYMsGWBYs+xtg0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -32,6 +33,7 @@ stdenv.mkDerivation rec {
]; ];
buildInputs = [ buildInputs = [
libffi
llvm llvm
zlib zlib
] ++ [ ] ++ [

View file

@ -5,7 +5,7 @@
, fparser , fparser
, tinyxml , tinyxml
, hdf5 , hdf5
, vtk , vtk_8
, boost , boost
, zlib , zlib
, cmake , cmake
@ -39,7 +39,7 @@ stdenv.mkDerivation {
fparser fparser
tinyxml tinyxml
hdf5 hdf5
vtk vtk_8
boost boost
zlib zlib
csxcad csxcad

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, git, gfortran, mpi, blas, liblapack, pkg-config, libGL, libGLU, opencascade, libsForQt5, vtkWithQt5}: { lib, stdenv, fetchFromGitHub, cmake, git, gfortran, mpi, blas, liblapack, pkg-config, libGL, libGLU, opencascade, libsForQt5, vtk_8_withQt5}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "elmerfem"; pname = "elmerfem";
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
libGL libGL
libGLU libGLU
opencascade opencascade
vtkWithQt5 vtk_8_withQt5
]; ];
preConfigure = '' preConfigure = ''

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, opencv, pcl, libusb1, eigen { lib, stdenv, fetchFromGitHub, pkg-config, cmake, opencv, pcl, libusb1, eigen
, wrapQtAppsHook, qtbase, g2o, ceres-solver, libpointmatcher, octomap, freenect , wrapQtAppsHook, qtbase, g2o, ceres-solver, libpointmatcher, octomap, freenect
, libdc1394, librealsense, libGL, libGLU, vtkWithQt5, wrapGAppsHook, liblapack , libdc1394, librealsense, libGL, libGLU, vtk_8_withQt5, wrapGAppsHook, liblapack
, xorg }: , xorg }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
qtbase qtbase
libGL libGL
libGLU libGLU
vtkWithQt5 vtk_8_withQt5
]; ];
# Disable warnings that are irrelevant to us as packagers # Disable warnings that are irrelevant to us as packagers

View file

@ -1,56 +1,40 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, glib
, meson , meson
, ninja , ninja
, libevdev , libevdev
, json-glib , json-glib
, cairo
, pango
, libinput , libinput
, gtk4 , gtk4
, wrapGAppsHook4 , wrapGAppsHook4
, libxkbcommon , libxkbcommon
, pkg-config , pkg-config
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "showmethekey"; pname = "showmethekey";
version = "1.7.3"; version = "1.8.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "AlynxZhou"; owner = "AlynxZhou";
repo = "showmethekey"; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-hq4X4dG25YauMjsNXC6Flco9pEpVj3EM2JiFWbRrPaA="; hash = "sha256-iWZjOhugGD7GikcIKaJimfLrTDaGQeYgmp17N03Meb8=";
}; };
patches = [
(fetchpatch {
name = "use-gtk4-update-icon-cache.patch";
url = "https://github.com/alynxzhou/showmethekey/commit/c73102dc2825d00cbaf323fcfc96736381dc67ae.patch";
sha256 = "sha256-6QDY5eQ9A8q3LZeD7v6WI/4vYXc/XXVY/WENA1nvIKo=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
glib
meson meson
ninja ninja
cairo
pango
json-glib json-glib
pkg-config pkg-config
libevdev
libinput
libxkbcommon
wrapGAppsHook4 wrapGAppsHook4
]; ];
buildInputs = [ buildInputs = [
gtk4 gtk4
libevdev
libinput
libxkbcommon
]; ];
meta = with lib; { meta = with lib; {

View file

@ -2,13 +2,13 @@
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "numix-icon-theme-square"; pname = "numix-icon-theme-square";
version = "23.01.12"; version = "23.01.25";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "numixproject"; owner = "numixproject";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-DqinupNkjAzjiLkuPCw9IaKRCHtwGnvUQbPNLUeqtRs="; sha256 = "sha256-ZScDymdtrDTCrLB9Fp3zxBQt0A3qz0vN1OhBCK5K/HQ=";
}; };
nativeBuildInputs = [ gtk3 ]; nativeBuildInputs = [ gtk3 ];

View file

@ -0,0 +1,54 @@
{ stdenv
, lib
, fetchFromGitHub
, dtkwidget
, qt5integration
, qt5platform-plugins
, dde-qt-dbus-factory
, cmake
, qtbase
, qttools
, pkg-config
, wrapQtAppsHook
, gtest
}:
stdenv.mkDerivation rec {
pname = "deepin-calculator";
version = "5.8.23";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-MczQWYIQfpSkyA3144y3zly66N0vgcVvTYR6B7Hq1aw=";
};
nativeBuildInputs = [
cmake
qttools
pkg-config
wrapQtAppsHook
];
buildInputs = [
dtkwidget
dde-qt-dbus-factory
gtest
];
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
"--prefix QT_QPA_PLATFORM_PLUGIN_PATH : ${qt5platform-plugins}/${qtbase.qtPluginPrefix}"
];
cmakeFlags = [ "-DVERSION=${version}" ];
meta = with lib; {
description = "An easy to use calculator for ordinary users";
homepage = "https://github.com/linuxdeepin/deepin-calculator";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}

View file

@ -19,6 +19,9 @@ let
gio-qt = callPackage ./library/gio-qt { }; gio-qt = callPackage ./library/gio-qt { };
image-editor = callPackage ./library/image-editor { }; image-editor = callPackage ./library/image-editor { };
udisks2-qt5 = callPackage ./library/udisks2-qt5 { }; udisks2-qt5 = callPackage ./library/udisks2-qt5 { };
#### Dtk Application
deepin-calculator = callPackage ./apps/deepin-calculator { };
}; };
in in
lib.makeScope libsForQt5.newScope packages lib.makeScope libsForQt5.newScope packages

View file

@ -0,0 +1,73 @@
{ lib, stdenv, fetchFromGitHub, makeBinaryWrapper
, alsaLib, libX11, libXext, libGL, libGLU
}:
stdenv.mkDerivation rec {
pname = "minimacy";
version = "0.6.2";
src = fetchFromGitHub {
owner = "ambermind";
repo = pname;
rev = version;
sha256 = "i0Z1UKApX+elHmFgujwjiF7k6OmtFF37HJim464OMfU=";
};
nativeBuildInputs = [ makeBinaryWrapper ];
buildInputs = [ libGL libGLU ] ++ lib.optionals stdenv.isLinux [ alsaLib libX11 libXext ];
enableParallelBuilding = true;
NIX_CFLAGS_COMPILE = "-Wno-unused-result";
preBuild = ''
pushd ${if stdenv.isDarwin then "macos/cmdline" else "unix"}
'';
# TODO: build graphic version for darwin
buildFlags = (if stdenv.isDarwin then [ "nox" ] else [ "all" ]) ++ [ "CC=${stdenv.cc.targetPrefix}cc" ];
postBuild = ''
popd
'';
doCheck = true;
checkPhase = ''
runHook preCheck
bin/${if stdenv.isDarwin then "minimacyMac" else "minimacy"} system/demo/demo.fun.mandelbrot.mcy
runHook postCheck
'';
installPhase = ''
runHook preInstall
mkdir -p $out/lib/minimacy
cp -r {README.md,LICENSE,system,rom,topLevel.mcy} $out/lib/minimacy
install bin/minimacy* -Dt $out/bin
runHook postInstall
'';
postFixup = ''
for prog in $out/bin/minimacy*;
do wrapProgram $prog \
--set MINIMACY $out/lib/minimacy
done
'';
meta = {
description = "An open-source minimalist computing technology";
longDescription = ''
Minimacy is an open-source minimalist computation system based on the principle "Less is more".
It is designed and programmed by Sylvain Huet.
'';
maintainers = with lib.maintainers; [ jboy ];
homepage = "https://minimacy.net";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}

View file

@ -6,6 +6,7 @@
, libdaemon , libdaemon
, dbus , dbus
, perlPackages , perlPackages
, libpcap
, expat , expat
, gettext , gettext
, glib , glib
@ -63,7 +64,9 @@ stdenv.mkDerivation rec {
] ++ (with perlPackages; [ ] ++ (with perlPackages; [
perl perl
XMLParser XMLParser
]) ++ lib.optionals gtk3Support [ ]) ++ lib.optionals stdenv.isFreeBSD [
libpcap
] ++ lib.optionals gtk3Support [
gtk3 gtk3
] ++ lib.optionals qt5Support [ ] ++ lib.optionals qt5Support [
qt5 qt5
@ -86,7 +89,7 @@ stdenv.mkDerivation rec {
"--localstatedir=/var" "--localstatedir=/var"
"--runstatedir=/run" "--runstatedir=/run"
"--sysconfdir=/etc" "--sysconfdir=/etc"
"--with-distro=none" "--with-distro=${with stdenv.hostPlatform; if isBSD then parsed.kernel.name else "none"}"
# A systemd unit is provided by the avahi-daemon NixOS module # A systemd unit is provided by the avahi-daemon NixOS module
"--with-systemdsystemunitdir=no" "--with-systemdsystemunitdir=no"
] ++ lib.optionals withLibdnssdCompat [ ] ++ lib.optionals withLibdnssdCompat [

View file

@ -3,7 +3,7 @@
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, enableVTK ? true , enableVTK ? true
, vtk , vtk_8
, ApplicationServices , ApplicationServices
, Cocoa , Cocoa
, enablePython ? false , enablePython ? false
@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = lib.optionals enableVTK [ buildInputs = lib.optionals enableVTK [
vtk vtk_8
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
ApplicationServices ApplicationServices
Cocoa Cocoa

View file

@ -1,7 +1,7 @@
{ version, rev, sourceSha256 }: { version, rev, sourceSha256 }:
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper { lib, stdenv, fetchFromGitHub, cmake, makeWrapper
, pkg-config, libX11, libuuid, xz, vtk, Cocoa }: , pkg-config, libX11, libuuid, xz, vtk_8, Cocoa }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "itk"; pname = "itk";
@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
]; ];
nativeBuildInputs = [ cmake xz makeWrapper ]; nativeBuildInputs = [ cmake xz makeWrapper ];
buildInputs = [ libX11 libuuid vtk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ]; buildInputs = [ libX11 libuuid vtk_8 ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
postInstall = '' postInstall = ''
wrapProgram "$out/bin/h5c++" --prefix PATH ":" "${pkg-config}/bin" wrapProgram "$out/bin/h5c++" --prefix PATH ":" "${pkg-config}/bin"

View file

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, libGL, libGLU, libXmu, cmake, ninja, { lib, stdenv, fetchFromGitHub, fetchpatch, libGL, libGLU, libXmu, cmake, ninja,
pkg-config, fontconfig, freetype, expat, freeimage, vtk, gl2ps, tbb, pkg-config, fontconfig, freetype, expat, freeimage, vtk_8, gl2ps, tbb,
OpenCL, Cocoa OpenCL, Cocoa
}: }:
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ninja pkg-config ]; nativeBuildInputs = [ cmake ninja pkg-config ];
buildInputs = [ buildInputs = [
libGL libGLU libXmu freetype fontconfig expat freeimage vtk libGL libGLU libXmu freetype fontconfig expat freeimage vtk_8
gl2ps tbb gl2ps tbb
] ]
++ optionals stdenv.isDarwin [OpenCL Cocoa] ++ optionals stdenv.isDarwin [OpenCL Cocoa]

View file

@ -22,7 +22,7 @@
, enablePython ? false, pythonPackages ? null , enablePython ? false, pythonPackages ? null
, enableGtk2 ? false, gtk2 , enableGtk2 ? false, gtk2
, enableGtk3 ? false, gtk3 , enableGtk3 ? false, gtk3
, enableVtk ? false, vtk , enableVtk ? false, vtk_8
, enableFfmpeg ? false, ffmpeg , enableFfmpeg ? false, ffmpeg
, enableGStreamer ? false, gst_all_1 , enableGStreamer ? false, gst_all_1
, enableTesseract ? false, tesseract, leptonica , enableTesseract ? false, tesseract, leptonica
@ -188,7 +188,7 @@ stdenv.mkDerivation {
++ lib.optional enablePython pythonPackages.python ++ lib.optional enablePython pythonPackages.python
++ lib.optional enableGtk2 gtk2 ++ lib.optional enableGtk2 gtk2
++ lib.optional enableGtk3 gtk3 ++ lib.optional enableGtk3 gtk3
++ lib.optional enableVtk vtk ++ lib.optional enableVtk vtk_8
++ lib.optional enableJPEG libjpeg ++ lib.optional enableJPEG libjpeg
++ lib.optional enablePNG libpng ++ lib.optional enablePNG libpng
++ lib.optional enableTIFF libtiff ++ lib.optional enableTIFF libtiff

View file

@ -48,7 +48,7 @@
, enableGtk3 ? false , enableGtk3 ? false
, gtk3 , gtk3
, enableVtk ? false , enableVtk ? false
, vtk , vtk_8
, enableFfmpeg ? true , enableFfmpeg ? true
, ffmpeg , ffmpeg
, enableGStreamer ? true , enableGStreamer ? true
@ -253,7 +253,7 @@ stdenv.mkDerivation {
++ lib.optional (stdenv.buildPlatform == stdenv.hostPlatform) hdf5 ++ lib.optional (stdenv.buildPlatform == stdenv.hostPlatform) hdf5
++ lib.optional enableGtk2 gtk2 ++ lib.optional enableGtk2 gtk2
++ lib.optional enableGtk3 gtk3 ++ lib.optional enableGtk3 gtk3
++ lib.optional enableVtk vtk ++ lib.optional enableVtk vtk_8
++ lib.optional enableJPEG libjpeg ++ lib.optional enableJPEG libjpeg
++ lib.optional enablePNG libpng ++ lib.optional enablePNG libpng
++ lib.optional enableTIFF libtiff ++ lib.optional enableTIFF libtiff

View file

@ -6,7 +6,7 @@
, qhull , qhull
, flann , flann
, boost , boost
, vtk , vtk_8
, eigen , eigen
, pkg-config , pkg-config
, qtbase , qtbase
@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
libpng libpng
libtiff libtiff
qhull qhull
vtk vtk_8
]; ];
cmakeFlags = lib.optionals stdenv.isDarwin [ cmakeFlags = lib.optionals stdenv.isDarwin [

View file

@ -1,4 +1,4 @@
{ lib, stdenv, gtest, fetchFromGitHub, cmake, boost, eigen, python3, vtk, zlib, tbb }: { lib, stdenv, gtest, fetchFromGitHub, cmake, boost, eigen, python3, vtk_8, zlib, tbb }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.0.0"; version = "2.0.0";
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
''; '';
nativeBuildInputs = [ cmake gtest ]; nativeBuildInputs = [ cmake gtest ];
buildInputs = [ boost eigen python3 vtk zlib tbb ]; buildInputs = [ boost eigen python3 vtk_8 zlib tbb ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/BioMedIA/MIRTK"; homepage = "https://github.com/BioMedIA/MIRTK";

View file

@ -4,7 +4,7 @@
, cmake , cmake
, csxcad , csxcad
, tinyxml , tinyxml
, vtkWithQt5 , vtk_8_withQt5
, qtbase , qtbase
}: }:
@ -33,7 +33,7 @@ mkDerivation {
buildInputs = [ buildInputs = [
csxcad csxcad
tinyxml tinyxml
vtkWithQt5 vtk_8_withQt5
qtbase qtbase
]; ];

View file

@ -9,19 +9,21 @@
, inkscape , inkscape
, imagemagick , imagemagick
, pytestCheckHook , pytestCheckHook
, typed-ast
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "diagrams"; pname = "diagrams";
version = "0.23.1"; version = "0.23.3";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mingrammer"; owner = "mingrammer";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-gVUlP3offTgHUBTTIzTBf7b2NpBjGlAHYQQxe6ks0v8="; hash = "sha256-4b+jmR56y2VV0XxD6FCmNpDB0UKH9+FqcTQuU2jRCXo=";
}; };
postPatch = '' postPatch = ''
@ -40,20 +42,33 @@ buildPythonPackage rec {
./remove-black-requirement.patch ./remove-black-requirement.patch
]; ];
nativeCheckInputs = [ pytestCheckHook ];
# Despite living in 'tool.poetry.dependencies', # Despite living in 'tool.poetry.dependencies',
# these are only used at build time to process the image resource files # these are only used at build time to process the image resource files
nativeBuildInputs = [ inkscape imagemagick jinja2 poetry-core round ]; nativeBuildInputs = [
inkscape imagemagick
jinja2
poetry-core
round
];
propagatedBuildInputs = [ graphviz ]; propagatedBuildInputs = [
graphviz
typed-ast
];
pythonImportsCheck = [ "diagrams" ]; nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"diagrams"
];
meta = with lib; { meta = with lib; {
description = "Diagram as Code"; description = "Diagram as Code";
homepage = "https://diagrams.mingrammer.com/"; homepage = "https://diagrams.mingrammer.com/";
license = licenses.mit; changelog = "https://github.com/mingrammer/diagrams/releases/tag/v${version}";
maintainers = with maintainers; [ addict3d ]; license = licenses.mit;
maintainers = with maintainers; [ addict3d ];
}; };
} }

View file

@ -1,8 +1,17 @@
From bf081e60a7f604d2e71cf5c315dd90c48dd96808 Mon Sep 17 00:00:00 2001
From: Fabian Affolter <mail@fabian-affolter.ch>
Date: Thu, 26 Jan 2023 15:35:47 +0100
Subject: [PATCH] Update autogen.sh
---
autogen.sh | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/autogen.sh b/autogen.sh diff --git a/autogen.sh b/autogen.sh
index acbcacb..1f60b83 100755 index f5e065b35..b6cef5bf9 100755
--- a/autogen.sh --- a/autogen.sh
+++ b/autogen.sh +++ b/autogen.sh
@@ -21,11 +21,6 @@ @@ -37,11 +37,6 @@ if ! [ -x "$(command -v convert)" ]; then
exit 1 exit 1
fi fi
@ -14,10 +23,10 @@ index acbcacb..1f60b83 100755
# preprocess the resources # preprocess the resources
for pvd in "${providers[@]}"; do for pvd in "${providers[@]}"; do
# convert the svg to png for azure provider # convert the svg to png for azure provider
@@ -55,7 +50,3 @@ @@ -75,7 +70,3 @@ python -m scripts.generate "custom"
# Generate doc for custom module # copy icons across to website
echo "generating the docs for custom" echo "copying icons to website static folder"
python -m scripts.generate "custom" cp -r resources website/static/img/
- -
-# run black -# run black
-echo "linting the all the diagram modules" -echo "linting the all the diagram modules"

View file

@ -1,7 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, isPy27 , pythonOlder
, packaging , packaging
, pytest , pytest
, cython , cython
@ -14,15 +14,15 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "dipy"; pname = "dipy";
version = "1.4.1"; version = "1.5.0";
disabled = isPy27; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dipy"; owner = "dipy";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/${version}";
sha256 = "0zaqsiq73vprbqbzvzswjfmqgappl5vhpl2fwjrrda33c27klpzj"; hash = "sha256-kJ8JbnNpjTqGJXwwMTqZdgeN8fOEuxarycunDCRLB74=";
}; };
nativeBuildInputs = [ cython packaging ]; nativeBuildInputs = [ cython packaging ];

View file

@ -11,14 +11,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-cloud-os-config"; pname = "google-cloud-os-config";
version = "1.14.0"; version = "1.14.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-CLZC9Iub3LWvDPhetxlHorccRUritd+YzTI/MF1hHrY="; hash = "sha256-wDb1vy1rj0yBOk7Q1pMzNw3foOXHk18YwIbY4ZcYCxM=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -1,5 +1,5 @@
{ lib { lib
, fetchFromGitHub , fetchPypi
, buildPythonPackage , buildPythonPackage
, tzlocal , tzlocal
, six , six
@ -8,13 +8,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "js2py"; pname = "js2py";
version = "0.71"; version = "0.74";
src = fetchFromGitHub { src = fetchPypi {
owner = "PiotrDabkowski"; pname = "Js2Py";
repo = "Js2Py"; inherit version;
rev = "5f665f60083a9796ec33861240ce31d6d2b844b6"; hash = "sha256-OfOmqoRpGA77o8hncnHfJ8MTMv0bRx3xryr1i4e4ly8=";
sha256 = "sha256-1omTV7zkYSQfxhkNgI4gtXTenWt9J1r3VARRHoRsSfc=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -27,7 +27,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "openapi-core"; pname = "openapi-core";
version = "0.16.4"; version = "0.16.5";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -36,7 +36,7 @@ buildPythonPackage rec {
owner = "p1c2u"; owner = "p1c2u";
repo = "openapi-core"; repo = "openapi-core";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-16DM9HrptQmj95OOM5XSGIEKzxrCkN3sU/7o8Yh0l6s="; hash = "sha256-xXSZ9qxjmeIyYIWQubJbJxkXUdOu/WSSBddIWsVaH8k=";
}; };
postPatch = '' postPatch = ''

View file

@ -11,13 +11,13 @@
let let
pname = "pydicom"; pname = "pydicom";
version = "2.3.0"; version = "2.3.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pydicom"; owner = "pydicom";
repo = "pydicom"; repo = "pydicom";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-CAQWaBkzecJ1VXQ5BnAUjmBMjh0I8y+gT7I4P4o2gqI="; hash = "sha256-xt0aK908lLgNlpcI86OSxy96Z/PZnQh7+GXzJ0VMQGA=";
}; };
# Pydicom needs pydicom-data to run some tests. If these files aren't downloaded # Pydicom needs pydicom-data to run some tests. If these files aren't downloaded

View file

@ -1,24 +1,55 @@
{ lib, buildPythonPackage, fetchFromGitHub, cmake, python { lib
, libosmium, protozero, boost, expat, bzip2, zlib, pybind11 , buildPythonPackage
, shapely, pythonOlder, isPyPy, lz4, requests, pytestCheckHook , fetchFromGitHub
, cmake
, python
, libosmium
, protozero
, boost
, expat
, bzip2
, zlib
, pybind11
, shapely
, pythonOlder
, isPyPy
, lz4
, requests
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyosmium"; pname = "pyosmium";
version = "3.5.0"; version = "3.6.0";
format = "setuptools";
disabled = pythonOlder "3.4" || isPyPy; disabled = pythonOlder "3.6" || isPyPy;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "osmcode"; owner = "osmcode";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-dumTyca1nLPa6B3p5fmUGWa6jReHOeFPc9heTz/2zao="; hash = "sha256-+YJQGPQm2FGOPhNzlXX2GM+ad4QdipJhwViOKGHtqBk=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [
buildInputs = [ libosmium protozero boost expat bzip2 zlib pybind11 lz4 ]; cmake
propagatedBuildInputs = [ requests ]; ];
buildInputs = [
libosmium
protozero
boost
expat
bzip2
zlib
pybind11
lz4
];
propagatedBuildInputs = [
requests
];
preBuild = "cd .."; preBuild = "cd ..";

View file

@ -6,6 +6,7 @@
, numpy , numpy
, py , py
, pytestCheckHook , pytestCheckHook
, pythonAtLeast
, pythonOlder , pythonOlder
}: }:
@ -45,6 +46,11 @@ buildPythonPackage rec {
"pypytools" "pypytools"
]; ];
disabledTests = lib.optionals (pythonAtLeast "3.11") [
# https://github.com/antocuni/pypytools/issues/4
"test_clonefunc"
];
meta = with lib; { meta = with lib; {
description = "Collection of tools to use PyPy-specific features"; description = "Collection of tools to use PyPy-specific features";
homepage = "https://github.com/antocuni/pypytools"; homepage = "https://github.com/antocuni/pypytools";

View file

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyswitchbot"; pname = "pyswitchbot";
version = "0.36.4"; version = "0.37.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "Danielhiversen"; owner = "Danielhiversen";
repo = "pySwitchbot"; repo = "pySwitchbot";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-3n3TtyzosWsdnzT2m2s55hnY45Yjj7kJS3rv/5LTSSg="; hash = "sha256-+bkEaXIvIX67D8b3CIhNM/rz2DjUbpjsshImoUopjlA=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -0,0 +1,62 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, hypothesis
, numpy
, pandas
, psycopg2
, pymysql
, python-dateutil
, pytz
, pyyaml
, six
, sqlalchemy
}:
buildPythonPackage rec {
pname = "siuba";
version = "0.4.2";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "machow";
repo = "siuba";
rev = "refs/tags/v${version}";
hash = "sha256-Q2nkK51bmIO2OcBuWu+u7yB8UmaqiZJXpuxXcytTlUY=";
};
propagatedBuildInputs = [
numpy
pandas
psycopg2
pymysql
python-dateutil
pytz
pyyaml
six
sqlalchemy
];
checkInputs = [
hypothesis
pytestCheckHook
];
doCheck = false;
# requires running mysql and postgres instances; see docker-compose.yml
pythonImportsCheck = [
"siuba"
"siuba.data"
];
meta = with lib; {
description = "Use dplyr-like syntax with pandas and SQL";
homepage = "https://siuba.org";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}

View file

@ -19,12 +19,12 @@ let
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "coreboot-toolchain-${arch}"; pname = "coreboot-toolchain-${arch}";
version = "4.16"; version = "4.19";
src = fetchgit { src = fetchgit {
url = "https://review.coreboot.org/coreboot"; url = "https://review.coreboot.org/coreboot";
rev = version; rev = version;
sha256 = "sha256-PCum+IvJ136eZQLovUi9u4xTLLs17MkMP5Oc0/2mMY4="; sha256 = "sha256-pGS+bfX2k/ot7sHL9aiaQpA0wtbHHZEObJ/h2JGF5/4=";
fetchSubmodules = false; fetchSubmodules = false;
leaveDotGit = true; leaveDotGit = true;
postFetch = '' postFetch = ''
@ -70,7 +70,7 @@ let
); );
in in
lib.listToAttrs (map (arch: lib.nameValuePair arch (common arch {})) [ lib.listToAttrs (map (arch: lib.nameValuePair arch (common arch { })) [
"i386" "i386"
"x64" "x64"
"arm" "arm"

View file

@ -7,10 +7,10 @@
}; };
} }
{ {
name = "mpfr-4.1.0.tar.xz"; name = "mpfr-4.1.1.tar.xz";
archive = fetchurl { archive = fetchurl {
sha256 = "0zwaanakrqjf84lfr5hfsdr7hncwv9wj0mchlr7cmxigfgqs760c"; sha256 = "0gf3ibi7kzz39zj72qc9r607clyhm80gs8wbp71zzfkxasyrblgz";
url = "mirror://gnu/mpfr/mpfr-4.1.0.tar.xz"; url = "mirror://gnu/mpfr/mpfr-4.1.1.tar.xz";
}; };
} }
{ {
@ -35,10 +35,10 @@
}; };
} }
{ {
name = "acpica-unix2-20211217.tar.gz"; name = "R10_20_22.tar.gz";
archive = fetchurl { archive = fetchurl {
sha256 = "0521hmaw2zhi0mpgnaf2i83dykfgql4bx98cg7xqy8wmj649z194"; sha256 = "11iv3jrz27g7bv7ffyxsrgm4cq60cld2gkkl008p3lcwfyqpx88s";
url = "https://acpica.org/sites/acpica/files/acpica-unix2-20211217.tar.gz"; url = "https://github.com/acpica/acpica/archive/refs/tags//R10_20_22.tar.gz";
}; };
} }
{ {

View file

@ -1,24 +1,26 @@
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell --pure -i bash -p nix cacert git getopt #!nix-shell --pure -i bash -p nix cacert git getopt
# shellcheck shell=bash
if [ ! -d .git ]; then if [ ! -d .git ]; then
echo "This script needs to be run from the root directory of nixpkgs. Exiting." echo "This script needs to be run from the root directory of nixpkgs. Exiting."
exit 1 exit 1
fi fi
pkg_dir="$(dirname "$0")" pkg_dir="$(dirname "$0")"
src="$(nix-build . --no-out-link -A coreboot-toolchain.i386.src)" src="$(nix-build . --no-out-link -A coreboot-toolchain.i386.src)"
urls=$($src/util/crossgcc/buildgcc -u) urls=$("${src}/util/crossgcc/buildgcc" -u)
tmp=$(mktemp) tmp=$(mktemp)
echo '{ fetchurl }: [' > $tmp echo '{ fetchurl }: [' >"$tmp"
for url in $urls; do for url in $urls; do
name="$(basename $url)" name="$(basename "$url")"
hash="$(nix-prefetch-url "$url")" hash="$(nix-prefetch-url "$url")"
cat << EOF >> $tmp cat <<EOF >>"$tmp"
{ {
name = "$name"; name = "$name";
archive = fetchurl { archive = fetchurl {
@ -29,8 +31,8 @@ for url in $urls; do
EOF EOF
done done
echo ']' >> $tmp echo ']' >>"$tmp"
sed -ie 's/https\:\/\/ftpmirror\.gnu\.org/mirror\:\/\/gnu/g' $tmp sed -ie 's/https\:\/\/ftpmirror\.gnu\.org/mirror\:\/\/gnu/g' "$tmp"
mv $tmp $pkg_dir/sources.nix mv "$tmp" "${pkg_dir}/sources.nix"

View file

@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, makeWrapper, unzip, lib, php80 }:
let
pname = "n98-magerun";
version = "2.3.0";
in
stdenv.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "netz98";
repo = "n98-magerun1-dist";
rev = version;
sha256 = "sha256-T7wQmEEYMG0J6+9nRt+tiMuihjnjjQ7UWy1C0vKoQY4=";
};
dontUnpack = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -D $src/n98-magerun $out/libexec/n98-magerun/n98-magerun-${version}.phar
makeWrapper ${php80}/bin/php $out/bin/n98-magerun \
--add-flags "$out/libexec/n98-magerun/n98-magerun-${version}.phar" \
--prefix PATH : ${lib.makeBinPath [ unzip ]}
runHook postInstall
'';
meta = with lib; {
description = "The swiss army knife for Magento1/OpenMage developers";
license = licenses.mit;
homepage = "https://magerun.net/";
changelog = "https://magerun.net/category/magerun/";
maintainers = teams.php.members;
};
}

View file

@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, makeWrapper, unzip, lib, php }:
let
pname = "n98-magerun2";
version = "6.1.1";
in
stdenv.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "netz98";
repo = "n98-magerun2-dist";
rev = version;
sha256 = "sha256-D2U1kLG6sOpBHDzNQ/LbiFUknvFhK+rkOPgWvW0pNmY=";
};
dontUnpack = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -D $src/n98-magerun2 $out/libexec/n98-magerun2/n98-magerun2-${version}.phar
makeWrapper ${php}/bin/php $out/bin/n98-magerun2 \
--add-flags "$out/libexec/n98-magerun2/n98-magerun2-${version}.phar" \
--prefix PATH : ${lib.makeBinPath [ unzip ]}
runHook postInstall
'';
meta = with lib; {
description = "The swiss army knife for Magento2 developers";
license = licenses.mit;
homepage = "https://magerun.net/";
changelog = "https://magerun.net/category/magerun/";
maintainers = teams.php.members;
};
}

View file

@ -5,16 +5,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-expand"; pname = "cargo-expand";
version = "1.0.38"; version = "1.0.39";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dtolnay"; owner = "dtolnay";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-n7GDvniwkyCYiu7/qw0TQsVsTZfjcSpkF2Qo/uO60e4="; sha256 = "sha256-wJyCRg6qvkjjaFuFK6hTqt3u7ugFKAc9K4M/BojND6o=";
}; };
cargoHash = "sha256-oA+8bceow7Cdao9FhkXkfFyrCpgvR4NJHddevbhUFkA="; cargoHash = "sha256-n4fraxlMtkVNNmteVBoS6BlS0qE6bpFL/fKRp2pjxIs=";
meta = with lib; { meta = with lib; {
description = "A utility and Cargo subcommand designed to let people expand macros in their Rust source code"; description = "A utility and Cargo subcommand designed to let people expand macros in their Rust source code";

View file

@ -1,20 +1,24 @@
{ lib, buildGoPackage, fetchFromSourcehut, nixosTests }: { lib, buildGoModule, fetchFromSourcehut, nixosTests }:
buildGoPackage rec { buildGoModule rec {
pname = "phylactery"; pname = "phylactery";
version = "0.1.2"; version = "0.1.2";
goPackagePath = "git.sr.ht/~cnx/phylactery";
src = fetchFromSourcehut { src = fetchFromSourcehut {
owner = "~cnx"; owner = "~cnx";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-HQN6wJ/4YeuQaDcNgdHj0RgYnn2NxXGRfxybmv60EdQ="; hash = "sha256-HQN6wJ/4YeuQaDcNgdHj0RgYnn2NxXGRfxybmv60EdQ=";
}; };
# Upstream repo doesn't provide any test. vendorHash = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
doCheck = false;
preBuild = ''
cp ${./go.mod} go.mod
'';
ldflags = [ "-s" "-w" ];
passthru.tests.phylactery = nixosTests.phylactery; passthru.tests.phylactery = nixosTests.phylactery;
meta = with lib; { meta = with lib; {

View file

@ -0,0 +1,3 @@
module git.sr.ht/~cnx/phylactery
go 1.18

View file

@ -3372,11 +3372,11 @@ self: with self; {
# THIS IS A GENERATED FILE. DO NOT EDIT! # THIS IS A GENERATED FILE. DO NOT EDIT!
xprop = callPackage ({ stdenv, pkg-config, fetchurl, libX11, xorgproto }: stdenv.mkDerivation { xprop = callPackage ({ stdenv, pkg-config, fetchurl, libX11, xorgproto }: stdenv.mkDerivation {
pname = "xprop"; pname = "xprop";
version = "1.2.5"; version = "1.2.6";
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = "mirror://xorg/individual/app/xprop-1.2.5.tar.bz2"; url = "mirror://xorg/individual/app/xprop-1.2.6.tar.xz";
sha256 = "18ckr8g1z50zkc01hprkpm1npwbq32yqib4b3l98c95z2q1yv4lv"; sha256 = "0vjqnn42gscw1z2wdj24kdwjwvd7mw58pj0nm9203k1fn4jqa2sq";
}; };
hardeningDisable = [ "bindnow" "relro" ]; hardeningDisable = [ "bindnow" "relro" ];
strictDeps = true; strictDeps = true;

View file

@ -60,7 +60,7 @@ mirror://xorg/individual/app/xmessage-1.0.5.tar.bz2
mirror://xorg/individual/app/xmodmap-1.0.10.tar.bz2 mirror://xorg/individual/app/xmodmap-1.0.10.tar.bz2
mirror://xorg/individual/app/xmore-1.0.3.tar.bz2 mirror://xorg/individual/app/xmore-1.0.3.tar.bz2
mirror://xorg/individual/app/xpr-1.0.5.tar.bz2 mirror://xorg/individual/app/xpr-1.0.5.tar.bz2
mirror://xorg/individual/app/xprop-1.2.5.tar.bz2 mirror://xorg/individual/app/xprop-1.2.6.tar.xz
mirror://xorg/individual/app/xrandr-1.5.1.tar.xz mirror://xorg/individual/app/xrandr-1.5.1.tar.xz
mirror://xorg/individual/app/xrdb-1.2.1.tar.bz2 mirror://xorg/individual/app/xrdb-1.2.1.tar.bz2
mirror://xorg/individual/app/xrefresh-1.0.6.tar.bz2 mirror://xorg/individual/app/xrefresh-1.0.6.tar.bz2

View file

@ -0,0 +1,54 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, extra-cmake-modules
, krunner
, kconfigwidgets
, ktextwidgets
, kservice
, ki18n
, translate-shell
, qtbase
, qtdeclarative
, qtlocation
}:
stdenv.mkDerivation rec {
pname = "krunner-translator";
version = "1.5.0";
src = fetchFromGitHub {
owner = "naraesk";
repo = pname;
rev = "v${version}";
sha256 = "8MusGvNhTxa8Sm8WiSwRaVIfZOeXmgcO4T6H9LqFGLs=";
};
nativeBuildInputs = [ cmake extra-cmake-modules ];
dontWrapQtApps = true;
buildInputs = [
krunner
kconfigwidgets
ktextwidgets
kservice
ki18n
qtbase
qtdeclarative
qtlocation
];
postPatch = ''
substituteInPlace src/translateShellProcess.cpp --replace "start(\"trans\", arguments);" "start(\"${translate-shell}/bin/trans\", arguments);"
'';
meta = with lib; {
description = "A plugin for KRunner which integrates a translator, supports Google Translate, Bing Translator, youdao and Baidu Fanyi";
homepage = "https://github.com/naraesk/krunner-translator";
license = licenses.gpl3;
maintainers = with maintainers; [ pongo1231 ];
platforms = platforms.unix;
};
}

View file

@ -39,6 +39,13 @@ let
aws-sdk-cpp = aws-sdk-cpp-nix; aws-sdk-cpp = aws-sdk-cpp-nix;
}; };
# https://github.com/NixOS/nix/pull/7585
patch-monitorfdhup = fetchpatch2 {
name = "nix-7585-monitor-fd-hup.patch";
url = "https://github.com/NixOS/nix/commit/1df3d62c769dc68c279e89f68fdd3723ed3bcb5a.patch";
sha256 = "sha256-f+F0fUO+bqyPXjt+IXJtISVr589hdc3y+Cdrxznb+Nk=";
};
# https://github.com/NixOS/nix/pull/7473 # https://github.com/NixOS/nix/pull/7473
patch-sqlite-exception = fetchpatch2 { patch-sqlite-exception = fetchpatch2 {
name = "nix-7473-sqlite-exception-add-message.patch"; name = "nix-7473-sqlite-exception-add-message.patch";
@ -53,6 +60,9 @@ in lib.makeExtensible (self: {
url = "https://nixos.org/releases/nix/nix-${version}/nix-${version}.tar.xz"; url = "https://nixos.org/releases/nix/nix-${version}/nix-${version}.tar.xz";
sha256 = "sha256-fuaBtp8FtSVJLSAsO+3Nne4ZYLuBj2JpD2xEk7fCqrw="; sha256 = "sha256-fuaBtp8FtSVJLSAsO+3Nne4ZYLuBj2JpD2xEk7fCqrw=";
}; };
patches = [
patch-monitorfdhup
];
}).override { boehmgc = boehmgc-nix_2_3; }; }).override { boehmgc = boehmgc-nix_2_3; };
nix_2_4 = throw "nixVersions.nix_2_4 has been removed"; nix_2_4 = throw "nixVersions.nix_2_4 has been removed";
@ -78,6 +88,7 @@ in lib.makeExtensible (self: {
url = "https://github.com/NixOS/nix/commit/3ade5f5d6026b825a80bdcc221058c4f14e10a27.patch"; url = "https://github.com/NixOS/nix/commit/3ade5f5d6026b825a80bdcc221058c4f14e10a27.patch";
sha256 = "sha256-s1ybRFCjQaSGj7LKu0Z5g7UiHqdJGeD+iPoQL0vaiS0="; sha256 = "sha256-s1ybRFCjQaSGj7LKu0Z5g7UiHqdJGeD+iPoQL0vaiS0=";
}) })
patch-monitorfdhup
patch-sqlite-exception patch-sqlite-exception
]; ];
}; };
@ -93,6 +104,7 @@ in lib.makeExtensible (self: {
url = "https://github.com/NixOS/nix/commit/3ade5f5d6026b825a80bdcc221058c4f14e10a27.patch"; url = "https://github.com/NixOS/nix/commit/3ade5f5d6026b825a80bdcc221058c4f14e10a27.patch";
sha256 = "sha256-s1ybRFCjQaSGj7LKu0Z5g7UiHqdJGeD+iPoQL0vaiS0="; sha256 = "sha256-s1ybRFCjQaSGj7LKu0Z5g7UiHqdJGeD+iPoQL0vaiS0=";
}) })
patch-monitorfdhup
patch-sqlite-exception patch-sqlite-exception
]; ];
}; };
@ -102,6 +114,7 @@ in lib.makeExtensible (self: {
sha256 = "sha256-sQ9C101CL/eVN5JgH91ozHFWU4+bXr8/Fi/8NQk6xRI="; sha256 = "sha256-sQ9C101CL/eVN5JgH91ozHFWU4+bXr8/Fi/8NQk6xRI=";
patches = [ patches = [
./patches/flaky-tests.patch ./patches/flaky-tests.patch
patch-monitorfdhup
patch-sqlite-exception patch-sqlite-exception
]; ];
}; };

View file

@ -2,38 +2,23 @@
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, stdenv
, darwin
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "hck"; pname = "hck";
version = "0.8.2"; version = "0.9.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sstadick"; owner = "sstadick";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-66wunZuRAJ6QVWgBUy2+HGaow33F5+16LitGSQC4kCE="; sha256 = "sha256-wsuXEHwnTP+vl8Gn1mfH+cKoasDdZ+ILiAaJ7510lsI=";
}; };
cargoSha256 = "sha256-4CAj94wm9qxr9wejD2ffKSdRV1UeofMhxNxLi++At+I="; cargoSha256 = "sha256-qWat0QIMLmMrbK/QCr3dSyWP27wFFQ+IDQAzLngThQE=";
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
# link System as a dylib instead of a framework on macos
postPatch = lib.optionalString stdenv.isDarwin ''
core_affinity=../$(stripHash $cargoDeps)/core_affinity
oldHash=$(sha256sum $core_affinity/src/lib.rs | cut -d " " -f 1)
substituteInPlace $core_affinity/src/lib.rs --replace framework dylib
substituteInPlace $core_affinity/.cargo-checksum.json \
--replace $oldHash $(sha256sum $core_affinity/src/lib.rs | cut -d " " -f 1)
'';
meta = with lib; { meta = with lib; {
description = "A close to drop in replacement for cut that can use a regex delimiter instead of a fixed string"; description = "A close to drop in replacement for cut that can use a regex delimiter instead of a fixed string";
homepage = "https://github.com/sstadick/hck"; homepage = "https://github.com/sstadick/hck";

View file

@ -534,6 +534,10 @@ with pkgs;
mix2nix = callPackage ../development/tools/mix2nix { }; mix2nix = callPackage ../development/tools/mix2nix { };
n98-magerun = callPackage ../development/tools/misc/n98-magerun { };
n98-magerun2 = callPackage ../development/tools/misc/n98-magerun2 { };
prisma-engines = callPackage ../development/tools/database/prisma-engines { prisma-engines = callPackage ../development/tools/database/prisma-engines {
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
}; };
@ -8762,6 +8766,8 @@ with pkgs;
krunner-pass = libsForQt5.callPackage ../tools/security/krunner-pass { }; krunner-pass = libsForQt5.callPackage ../tools/security/krunner-pass { };
krunner-translator = libsForQt5.callPackage ../tools/misc/krunner-translator { };
krunvm = callPackage ../applications/virtualization/krunvm { krunvm = callPackage ../applications/virtualization/krunvm {
inherit (darwin) sigtool; inherit (darwin) sigtool;
}; };
@ -11120,7 +11126,7 @@ with pkgs;
rocket = libsForQt5.callPackage ../tools/graphics/rocket { }; rocket = libsForQt5.callPackage ../tools/graphics/rocket { };
rtabmap = libsForQt5.callPackage ../applications/video/rtabmap/default.nix { rtabmap = libsForQt5.callPackage ../applications/video/rtabmap/default.nix {
pcl = pcl.override { vtk = vtkWithQt5; }; pcl = pcl.override { vtk_8 = vtk_8_withQt5; };
}; };
rtaudio = callPackage ../development/libraries/audio/rtaudio { rtaudio = callPackage ../development/libraries/audio/rtaudio {
@ -15168,6 +15174,8 @@ with pkgs;
microscheme = callPackage ../development/compilers/microscheme { }; microscheme = callPackage ../development/compilers/microscheme { };
minimacy = callPackage ../development/compilers/minimacy { };
mint = callPackage ../development/compilers/mint { crystal = crystal_1_2; }; mint = callPackage ../development/compilers/mint { crystal = crystal_1_2; };
mitama-cpp-result = callPackage ../development/libraries/mitama-cpp-result { }; mitama-cpp-result = callPackage ../development/libraries/mitama-cpp-result { };
@ -23525,8 +23533,8 @@ with pkgs;
vtk_9_withQt5 = vtk_9.override { enableQt = true; }; vtk_9_withQt5 = vtk_9.override { enableQt = true; };
vtk = vtk_8; vtk = vtk_9;
vtkWithQt5 = vtk_8_withQt5; vtkWithQt5 = vtk_9_withQt5;
vulkan-caps-viewer = libsForQt5.callPackage ../tools/graphics/vulkan-caps-viewer { }; vulkan-caps-viewer = libsForQt5.callPackage ../tools/graphics/vulkan-caps-viewer { };
@ -33647,6 +33655,8 @@ with pkgs;
webcamoid = libsForQt5.callPackage ../applications/video/webcamoid { }; webcamoid = libsForQt5.callPackage ../applications/video/webcamoid { };
webcord = callPackage ../applications/networking/instant-messengers/webcord {};
webex = callPackage ../applications/networking/instant-messengers/webex {}; webex = callPackage ../applications/networking/instant-messengers/webex {};
webmacs = libsForQt5.callPackage ../applications/networking/browsers/webmacs {}; webmacs = libsForQt5.callPackage ../applications/networking/browsers/webmacs {};
@ -33684,6 +33694,8 @@ with pkgs;
weston = callPackage ../applications/window-managers/weston { }; weston = callPackage ../applications/window-managers/weston { };
wgnord = callPackage ../applications/networking/wgnord/default.nix {};
whalebird = callPackage ../applications/misc/whalebird { whalebird = callPackage ../applications/misc/whalebird {
electron = electron_19; electron = electron_19;
}; };
@ -33792,9 +33804,7 @@ with pkgs;
xannotate = callPackage ../tools/X11/xannotate {}; xannotate = callPackage ../tools/X11/xannotate {};
xaos = callPackage ../applications/graphics/xaos { xaos = libsForQt5.callPackage ../applications/graphics/xaos { };
libpng = libpng12;
};
xastir = callPackage ../applications/misc/xastir { xastir = callPackage ../applications/misc/xastir {
rastermagick = imagemagick6; rastermagick = imagemagick6;

View file

@ -10515,6 +10515,8 @@ self: super: with self; {
sip_4 = callPackage ../development/python-modules/sip/4.x.nix { }; sip_4 = callPackage ../development/python-modules/sip/4.x.nix { };
siuba = callPackage ../development/python-modules/siuba { };
six = callPackage ../development/python-modules/six { }; six = callPackage ../development/python-modules/six { };
sjcl = callPackage ../development/python-modules/sjcl { }; sjcl = callPackage ../development/python-modules/sjcl { };