jiebi/CodeConvo huggingface dataset:
<ins> { lib, buildPythonPackage, fetchurl, fetchPypi, setuptools, pybind11, requests, rich, pillow, }: let test-image = fetchurl { name = "test-image.jpg"; url = "https://unsplash.com/photos/u9tAl8WR3DI/download"; hash = "sha256-shGNdgOOydgGBtl/JCbTJ0AYgl+2xWvCgHBL+bEoTaE="; }; in buildPythonPackage rec { pname = "materialyoucolor"; version = "2.0.9"; pyproject = true; # PyPI sources contain additional vendored sources src = fetchPypi { inherit pname version; hash = "sha256-J35//h3tWn20f5ej6OXaw4NKnxung9q7m0E4Zf9PUw4="; }; build-system = [ setuptools pybind11 ]; nativeCheckInputs = [ requests rich pillow ]; checkPhase = '' runHook preCheck python tests/test_all.py ${test-image} 1 runHook postCheck ''; pythonImportsCheck = [ "materialyoucolor" "materialyoucolor.quantize" # ext ]; meta = { description = "Material You color generation algorithms in python"; homepage = "https://github.com/T-Dynamos/materialyoucolor-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ tomasajt ]; }; } </ins>
hostName = mkIf (!cfg.manageHostName) (mkForce ""); }; <ins> # unprivileged LXCs can't set net.ipv4.ping_group_range security.wrappers.ping = mkIf (!cfg.privileged) { owner = "root"; group = "root"; capabilities = "cap_net_raw+p"; source = "${pkgs.iputils.out}/bin/ping"; }; </ins> services.openssh = { enable = mkDefault true; startWhenNeeded = mkDefault true;
<del> { lib , stdenvNoCC , fetchFromGitHub , gnome-themes-extra , gtk-engine-murrine </del> <ins> { lib, stdenvNoCC, fetchFromGitHub, gnome-themes-extra, gtk-engine-murrine, </ins> }: stdenvNoCC.mkDerivation { pname = "gruvbox-gtk-theme"; <del> version = "unstable-2023-05-28"; </del> <ins> version = "0-unstable-2024-06-12"; </ins> src = fetchFromGitHub { owner = "Fausto-Korpsvart"; repo = "Gruvbox-GTK-Theme"; <del> rev = "c0b7fb501938241a3b6b5734f8cb1f0982edc6b4"; hash = "sha256-Y+6HuWaVkNqlYc+w5wLkS2LpKcDtpeOpdHnqBmShm5Q="; </del> <ins> rev = "1a0f6672283e1846ec307addd4647f2daad29402"; hash = "sha256-bbL4bHAdkmReogUQML9sMpSallZ7wrgbK3R64xiAYRo="; </ins> }; <del> propagatedUserEnvPkgs = [ gtk-engine-murrine ]; </del> <ins> propagatedUserEnvPkgs = [ gtk-engine-murrine ]; </ins> <del> buildInputs = [ gnome-themes-extra ]; </del> <ins> buildInputs = [ gnome-themes-extra ]; </ins> dontBuild = true;
runHook postInstall ''; <del> meta = with lib; { </del> <ins> meta = { </ins> description = "Gtk theme based on the Gruvbox colour pallete"; homepage = "https://www.pling.com/p/1681313/"; <del> license = licenses.gpl3Only; platforms = platforms.unix; maintainers = [ maintainers.math-42 ]; </del> <ins> license = lib.licenses.gpl3Only; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ luftmensch-luftmensch math-42 ]; </ins> }; }
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, wrapQtAppsHook <del> , libzip, boost, fftw, qtbase, qtwayland, qtsvg, libusb1 </del> <ins> , libzip, boost, fftw, libusb1, qtbase, qtsvg, qtwayland </ins> , python3, desktopToDarwinBundle }: stdenv.mkDerivation rec { pname = "dsview"; <del> version = "1.3.1"; </del> <ins> version = "1.3.2"; </ins> src = fetchFromGitHub { owner = "DreamSourceLab"; repo = "DSView"; rev = "v${version}"; <del> sha256 = "sha256-LwrlB+Nwq34YjwGmnbUWS3W//ZHr8Do2Wf2te+2oBeI="; </del> <ins> sha256 = "sha256-d/TfCuJzAM0WObOiBhgfsTirlvdROrlCm+oL1cqUrIs="; </ins> }; patches = [
<del> { lib , stdenv , fetchFromGitLab , bash , btrfs-progs , cmake , coreutils , git , pkg-config , qt6 , snapper , util-linux , enableSnapper ? true , nix-update-script </del> <ins> { lib, stdenv, fetchFromGitLab, bash, btrfs-progs, cmake, coreutils, git, pkg-config, qt6, snapper, util-linux, enableSnapper ? true, nix-update-script, </ins> }: stdenv.mkDerivation (finalAttrs: {
cmake git pkg-config <ins> qt6.wrapQtAppsHook </ins> ]; buildInputs = [ btrfs-progs <ins> coreutils </ins> qt6.qtbase qt6.qtsvg qt6.qttools qt6.qtwayland <del> ]; propagatedBuildInputs = [ qt6.wrapQtAppsHook ]; </del> <ins> util-linux ] ++ lib.optionals enableSnapper [ snapper ]; </ins> <del> prePatch = '' substituteInPlace src/util/System.cpp  --replace '/bin/bash' "${lib.getExe bash}" '' + lib.optionalString enableSnapper '' substituteInPlace src/main.cpp  --replace '/usr/bin/snapper' "${lib.getExe snapper}" ''; </del> <ins> prePatch = '' substituteInPlace src/util/System.cpp  --replace-fail '/bin/bash' "${lib.getExe bash}" </ins> <del> postPatch = '' substituteInPlace src/org.btrfs-assistant.pkexec.policy  --replace '/usr/bin' "$out/bin" </del> <ins> substituteInPlace src/main.cpp  --replace-fail 'if (!qEnvironmentVariableIsEmpty("DISPLAY"))' ' if(!qEnvironmentVariableIsEmpty("DISPLAY") || !qEnvironmentVariableIsEmpty("WAYLAND_DISPLAY"))' '' + lib.optionalString enableSnapper '' substituteInPlace src/main.cpp  --replace-fail '/usr/bin/snapper' "${lib.getExe snapper}" ''; </ins> <del> substituteInPlace src/btrfs-assistant  --replace 'btrfs-assistant-bin' "$out/bin/btrfs-assistant-bin" </del> <ins> postPatch = '' substituteInPlace src/org.btrfs-assistant.pkexec.policy  --replace-fail '/usr/bin' "$out/bin" </ins> <del> substituteInPlace src/btrfs-assistant-launcher  --replace 'btrfs-assistant' "$out/bin/btrfs-assistant" '' + lib.optionalString enableSnapper '' substituteInPlace src/btrfs-assistant.conf  --replace '/usr/bin/snapper' "${lib.getExe snapper}" ''; </del> <ins> substituteInPlace src/btrfs-assistant  --replace-fail 'btrfs-assistant-bin' "$out/bin/btrfs-assistant-bin" </ins> <del> qtWrapperArgs = let runtimeDeps = lib.makeBinPath ([ coreutils util-linux ] ++ lib.optionals enableSnapper [ snapper ]); in [ "--prefix PATH : ${runtimeDeps}" ]; </del> <ins> substituteInPlace src/btrfs-assistant-launcher  --replace-fail 'btrfs-assistant' "$out/bin/btrfs-assistant" '' + lib.optionalString enableSnapper '' substituteInPlace src/btrfs-assistant.conf  --replace-fail '/usr/bin/snapper' "${lib.getExe snapper}" ''; </ins> passthru.updateScript = nix-update-script { };
libX11 = super.libX11.overrideAttrs (attrs: { outputs = [ "out" "dev" "man" ]; configureFlags = attrs.configureFlags or [] <del> ++ malloc0ReturnsNullCrossFlag; </del> <ins> ++ malloc0ReturnsNullCrossFlag ++ lib.optional (stdenv.targetPlatform.useLLVM or false) "ac_cv_path_RAWCPP=cpp"; </ins> depsBuildBuild = [ buildPackages.stdenv.cc ] ++ lib.optionals stdenv.hostPlatform.isStatic [
PRODUCTION = "true"; ALEMBIC_CONFIG_FILE="${pkg}/config/alembic.ini"; API_PORT = toString cfg.port; <del> BASE_URL = "http://localhost:${cfg.port}"; </del> <ins> BASE_URL = "http://localhost:${toString cfg.port}"; </ins> DATA_DIR = "/var/lib/mealie"; CRF_MODEL_PATH = "/var/lib/mealie/model.crfmodel"; } // (builtins.mapAttrs (_: val: toString val) cfg.settings);
}: let <del> version = "1.7.0"; </del> <ins> version = "1.9.0"; </ins> src = fetchFromGitHub { owner = "mealie-recipes"; repo = "mealie"; rev = "v${version}"; <del> hash = "sha256-z7kLBDzvzPWY7XmpROMpw3LcDpsl+hA+w1SdhrD/yNU="; </del> <ins> hash = "sha256-gg7ClclBS9j9n4/3HLxbX8HXTz9Zw5+BYG2MEYRsRBU="; </ins> }; frontend = callPackage (import ./mealie-frontend.nix src version) { };
hash = "sha256-rMbf09pCHvVYI9g/aq74+PcsuU2LezpmDz4b/w9vRyc="; }; <ins> postPatch = lib.optionalString stdenv.isDarwin '' substituteInPlace setup.py  --replace-fail "-flto" "" ''; </ins> nativeBuildInputs = [ pybind11 ]; # tests are removed from fork
<ins> { stdenv, fetchurl, alsaLib, bzip2, cairo, dpkg, freetype, gdk_pixbuf , glib, gtk2, harfbuzz, jdk, lib, xorg , libbsd, libjack2, libpng , libxkbcommon , makeWrapper, pixman , xdg_utils, zenity, zlib }: stdenv.mkDerivation rec { name = "bitwig-studio-${version}"; version = "1.3.16"; src = fetchurl { url    = "https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb"; sha256 = "0n0fxh9gnmilwskjcayvjsjfcs3fz9hn00wh7b3gg0cv3qqhich8"; }; nativeBuildInputs = [ dpkg makeWrapper ]; unpackCmd = "mkdir root ; dpkg-deb -x $curSrc root"; dontBuild    = true; dontPatchELF = true; dontStrip    = true; libPath = with xorg; lib.makeLibraryPath [ alsaLib bzip2.out cairo freetype gdk_pixbuf glib gtk2 harfbuzz libX11 libXau libXcursor libXdmcp libXext libXfixes libXrender libbsd libjack2 libpng libxcb libxkbfile pixman xcbutil xcbutilwm zlib ]; binPath = lib.makeBinPath [ xdg_utils zenity ]; installPhase = '' mkdir -p $out cp -r opt/bitwig-studio $out/libexec # Use NixOS versions of these libs instead of the bundled ones. ( cd $out/libexec/lib/bitwig-studio rm libbz2.so* libxkbfile.so* libXcursor.so* libXau.so*  libXdmcp.so* libpng16.so* libxcb*.so* libharfbuzz.so*  libcairo.so* libfreetype.so* ln -s ${bzip2.out}/lib/libbz2.so.1.0.6 libbz2.so.1.0 ) # Use our OpenJDK instead of Bitwig’s bundled—and commercial!—one. rm -rf $out/libexec/lib/jre ln -s ${jdk.home}/jre $out/libexec/lib/jre # Bitwig’s `libx11-windowing-system.so` has several problems: # #   • has some old version of libxkbcommon linked statically (ಠ_ಠ), # #   • hardcodes path to `/usr/share/X11/xkb`, # #   • even if we redirected it with libredirect (after adding #     `eaccess()` to libredirect!), their version of libxkbcommon #     is unable to parse our xkeyboardconfig. Been there, done that. # # However, it suffices to override theirs with our libxkbcommon # in LD_PRELOAD. :-) find $out -type f -executable  -not -name '*.so.*'  -not -name '*.so'  -not -path '*/resources/*' |  while IFS= read -r f ; do patchelf  --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker)  $f &&  wrapProgram $f  --prefix PATH : "${binPath}"  --prefix LD_LIBRARY_PATH : "${libPath}"  --set LD_PRELOAD "${libxkbcommon.out}/lib/libxkbcommon.so" || true done mkdir -p $out/bin ln -s $out/libexec/bitwig-studio $out/bin/bitwig-studio cp -r usr/share $out/share substitute usr/share/applications/bitwig-studio.desktop  $out/share/applications/bitwig-studio.desktop  --replace /usr/bin/bitwig-studio $out/bin/bitwig-studio ''; meta = with stdenv.lib; { description = "A digital audio workstation"; longDescription = '' Bitwig Studio is a multi-platform music-creation system for production, performance and DJing, with a focus on flexible editing tools and a super-fast workflow. ''; homepage = http://www.bitwig.com/; license = licenses.unfree; platforms = [ "x86_64-linux" ]; maintainers = with maintainers; [ michalrus mrVanDalo ]; }; } </ins>
<ins> { stdenv, fetchurl, bitwig-studio1, xdg_utils, zenity, ffmpeg }: bitwig-studio1.overrideAttrs (oldAttrs: rec { name = "bitwig-studio-${version}"; version = "2.2.2"; src = fetchurl { url    = "https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb"; sha256 = "1x4wka32xlygmhdh9rb15s37zh5qjrgap2qk35y34c52lf5aak22"; }; buildInputs = bitwig-studio1.buildInputs ++ [ ffmpeg ]; binPath = stdenv.lib.makeBinPath [ ffmpeg xdg_utils zenity ]; }) </ins>
<del> { stdenv, fetchurl, alsaLib, bzip2, cairo, dpkg, ffmpeg, freetype, gdk_pixbuf , glib, gtk2, harfbuzz, jdk, lib, libX11, libXau, libXcursor, libXdmcp , libXext, libXfixes, libXrender, libbsd, libjack2, libpng, libxcb , libxkbcommon, libxkbfile, makeWrapper, pixman, xcbutil, xcbutilwm , xdg_utils, zenity, zlib }: stdenv.mkDerivation rec { name = "bitwig-studio-${version}"; version = "2.2.2"; src = fetchurl { url = "https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb"; sha256 = "1x4wka32xlygmhdh9rb15s37zh5qjrgap2qk35y34c52lf5aak22"; }; nativeBuildInputs = [ dpkg makeWrapper ]; unpackCmd = "mkdir root ; dpkg-deb -x $curSrc root"; dontBuild = true; dontPatchELF = true; dontStrip = true; libPath = lib.makeLibraryPath [ alsaLib bzip2.out cairo freetype gdk_pixbuf glib gtk2 harfbuzz libX11 libXau libXcursor libXdmcp libXext libXfixes libXrender libbsd libjack2 libpng libxcb libxkbfile pixman xcbutil xcbutilwm zlib ]; binPath = lib.makeBinPath [ ffmpeg xdg_utils zenity ]; installPhase = '' mkdir -p $out cp -r opt/bitwig-studio $out/libexec # Use NixOS versions of these libs instead of the bundled ones. ( cd $out/libexec/lib/bitwig-studio rm libbz2.so* libxkbfile.so* libXcursor.so* libXau.so*  libXdmcp.so* libpng16.so* libxcb*.so* libharfbuzz.so*  libcairo.so* libfreetype.so* ln -s ${bzip2.out}/lib/libbz2.so.1.0.6 libbz2.so.1.0 ) # Use our OpenJDK instead of Bitwig’s bundled—and commercial!—one. rm -rf $out/libexec/lib/jre ln -s ${jdk.home}/jre $out/libexec/lib/jre # Bitwig’s `libx11-windowing-system.so` has several problems: # #   • has some old version of libxkbcommon linked statically (ಠ_ಠ), # #   • hardcodes path to `/usr/share/X11/xkb`, # #   • even if we redirected it with libredirect (after adding #     `eaccess()` to libredirect!), their version of libxkbcommon #     is unable to parse our xkeyboardconfig. Been there, done that. # # However, it suffices to override theirs with our libxkbcommon # in LD_PRELOAD. :-) find $out -type f -executable  -not -name '*.so.*'  -not -name '*.so'  -not -path '*/resources/*' |  while IFS= read -r f ; do patchelf  --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker)  $f &&  wrapProgram $f  --prefix PATH : "${binPath}"  --prefix LD_LIBRARY_PATH : "${libPath}"  --set LD_PRELOAD "${libxkbcommon.out}/lib/libxkbcommon.so" || true done mkdir -p $out/bin ln -s $out/libexec/bitwig-studio $out/bin/bitwig-studio cp -r usr/share $out/share substitute usr/share/applications/bitwig-studio.desktop  $out/share/applications/bitwig-studio.desktop  --replace /usr/bin/bitwig-studio $out/bin/bitwig-studio ''; meta = with stdenv.lib; { description = "A digital audio workstation"; longDescription = '' Bitwig Studio is a multi-platform music-creation system for production, performance and DJing, with a focus on flexible editing tools and a super-fast workflow. ''; homepage = http://www.bitwig.com/; license = licenses.unfree; platforms = [ "x86_64-linux" ]; maintainers = with maintainers; [ michalrus ]; }; } </del>
bitscope = callPackage ../applications/science/electronics/bitscope/packages.nix { }; <del> bitwig-studio =  callPackage ../applications/audio/bitwig-studio { </del> <ins> bitwig-studio1 =  callPackage ../applications/audio/bitwig-studio/bitwig-studio1.nix { </ins> inherit (gnome2) zenity; }; <ins> bitwig-studio2 =  callPackage ../applications/audio/bitwig-studio/bitwig-studio2.nix { inherit (gnome2) zenity; inherit (self) bitwig-studio1; }; bitwig-studio = bitwig-studio2; </ins> bgpdump = callPackage ../tools/networking/bgpdump { };
qemu socat swtpm <del> usbutils </del> util-linux unzip <del> xdg-user-dirs </del> xrandr zsync <ins> ] ++ lib.optionals stdenv.isLinux [ glxinfo usbutils xdg-user-dirs </ins> ]; in stdenv.mkDerivation (finalAttrs: { pname = "quickemu"; <del> version = "4.9.4-unstable-2024-05-28"; </del> <ins> version = "4.9.5"; </ins> src = fetchFromGitHub { owner = "quickemu-project"; repo = "quickemu"; <del> rev = "d78255b097b599e8ab3713cb61c4085cc45f5a95"; # TODO: return to version on next release hash = "sha256-fF306CdGqKM+779OLm0NNyqPBtm7TuU7UN/NanT12y8="; </del> <ins> rev = finalAttrs.version; hash = "sha256-UlpNujF2E8H1zcWTen8D29od60pY8FaGueviT0iwupQ="; </ins> }; postPatch = ''
''; passthru.tests = testers.testVersion { <del> version = "4.9.5"; # required for passing tests, TODO: remove when release bump </del> package = quickemu; }; meta = { description = "Quickly create and run optimised Windows, macOS and Linux virtual machines"; homepage = "https://github.com/quickemu-project/quickemu"; <ins> changelog = "https://github.com/quickemu-project/quickemu/releases/tag/${finalAttrs.version}"; </ins> mainProgram = "quickemu"; license = lib.licenses.mit; maintainers = with lib.maintainers; [
specs-nvim = buildVimPlugin { pname = "specs.nvim"; <del> version = "2022-09-20"; </del> <ins> version = "2024-05-19"; </ins> src = fetchFromGitHub { <del> owner = "edluffy"; </del> <ins> owner = "cxwx"; </ins> repo = "specs.nvim"; <del> rev = "2743e412bbe21c9d73954c403d01e8de7377890d"; sha256 = "1ycqvxrn13bfimf9k03bmm1baml8gyq5lxqjxh1fya44s2bg714r"; </del> <ins> rev = "dd82496f538b688cedf98429f89fef47ecb0625e"; sha256 = "0427fx6iw3i2y9ny3sz1na32bxcj8i93dbm93ckxf3bii8zqjs0s"; </ins> }; <del> meta.homepage = "https://github.com/edluffy/specs.nvim/"; </del> <ins> meta.homepage = "https://github.com/cxwx/specs.nvim/"; </ins> }; spellsitter-nvim = buildVimPlugin {
https://github.com/liuchengxu/space-vim/,, https://github.com/ctjhoa/spacevim/,, https://github.com/chrisgeo/sparkup/,, <del> https://github.com/edluffy/specs.nvim/,, </del> <ins> https://github.com/cxwx/specs.nvim/,HEAD, </ins> https://github.com/lewis6991/spellsitter.nvim/,HEAD, https://github.com/stsewd/sphinx.nvim/,, https://github.com/sjl/splice.vim/,,
stdenv.mkDerivation rec { pname = "uutils-coreutils"; <del> version = "0.0.25"; </del> <ins> version = "0.0.27"; </ins> src = fetchFromGitHub { owner = "uutils"; repo = "coreutils"; rev = version; <del> hash = "sha256-25jmlGxMWzAaJEmMHruA6H+nqx2QHnYX9c9SKqrQRE4="; </del> <ins> hash = "sha256-6MbX3C5NVwiOwXW5xJO2X3qKMh3pUSALR9aK2IbgaaU="; </ins> }; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; <del> hash = "sha256-lQoOkiSga2aS8GNgLcHdid1/1u3johYEcGi9oOVsdJs="; </del> <ins> hash = "sha256-JowORfYHxN8GqvWeUm0ACnHNM3uZviYbhR7BOeAfphw="; </ins> }; nativeBuildInputs = [ rustPlatform.cargoSetupHook sphinx ];
./fix-122159.patch # https://github.com/NixOS/nixpkgs/issues/122159 ]; <ins> # Note: xposix is renamed to posix in v5. postPatch = lib.optionalString stdenv.isLinux '' substituteInPlace xpra/platform/xposix/features.py  --replace-fail "/usr/bin/xdg-open" "${xdg-utils}/bin/xdg-open" ''; </ins> INCLUDE_DIRS = "${pam}/include"; nativeBuildInputs = [
stdenv.mkDerivation rec { pname = "azuredatastudio"; <del> version = "1.44.1"; </del> <ins> version = "1.48.1"; </ins> desktopItems = [ desktopItem urlHandlerDesktopItem ]; src = fetchurl { name = "${pname}-${version}.tar.gz"; url = "https://azuredatastudio-update.azurewebsites.net/${version}/linux-x64/stable"; <del> sha256 = "sha256-6kEV331kt+/7/uWKZmTTkJX4P06CfxC8Ogq052qlUEg="; </del> <ins> sha256 = "sha256-JDNdMy0Wk6v2pMKS+NzSbsrffaEG2IneZO+K9pBFX48="; </ins> }; nativeBuildInputs = [
]; # this will most likely need to be updated when azuredatastudio's version changes <del> sqltoolsservicePath = "${targetPath}/resources/app/extensions/mssql/sqltoolsservice/Linux/4.7.1.6"; </del> <ins> sqltoolsservicePath = "${targetPath}/resources/app/extensions/mssql/sqltoolsservice/Linux/4.11.1.1"; </ins> rpath = lib.concatStringsSep ":" [ (lib.makeLibraryPath [
<ins> { lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "goread"; version = "1.6.5"; src = fetchFromGitHub { owner = "TypicalAM"; repo = "goread"; rev = "v${version}"; hash = "sha256-SRVXcdgtRpWqvO28CnUcx40nFJnG+Hd94Ezgaj5xK6A="; }; vendorHash = "sha256-/kxEnw8l9S7WNMcPh1x7xqiQ3L61DSn6DCIvJlyrip0="; env.TEST_OFFLINE_ONLY = 1; meta = { description = "Beautiful program to read your RSS/Atom feeds right in the terminal"; homepage = "https://github.com/TypicalAM/goread"; changelog = "https://github.com/TypicalAM/goread/releases/tag/v${version}"; license = lib.licenses.gpl3Plus; mainProgram = "goread"; maintainers = with lib.maintainers; [ schnow265 ]; }; } </ins>
<del> { lib, stdenv, cmake, boost, bison, flex, fetchFromGitHub, perl , python3, python3Packages, zlib, minisat, cryptominisat }: </del> <ins> { lib , stdenv , cmake , boost , bison , flex , fetchFromGitHub , fetchpatch , perl , python3 , zlib , minisat , cryptominisat }: </ins> stdenv.mkDerivation rec { pname = "stp";
src = fetchFromGitHub { owner = "stp"; repo = "stp"; <del> rev    = version; sha256 = "1yg2v4wmswh1sigk47drwsxyayr472mf4i47lqmlcgn9hhbx1q87"; </del> <ins> rev = version; hash = "sha256-B+HQF4TJPkYrpodE4qo4JHvlu+a5HTJf1AFyXTnZ4vk="; </ins> }; patches = [ # Fix missing type declaration # due to undeterminisitic compilation # of circularly dependent headers ./stdint.patch <ins> # Python 3.12+ compatibility for build: https://github.com/stp/stp/pull/450 (fetchpatch { url = "https://github.com/stp/stp/commit/fb185479e760b6ff163512cb6c30ac9561aadc0e.patch"; hash = "sha256-guFgeWOrxRrxkU7kMvd5+nmML0rwLYW196m1usE2qiA="; }) </ins> ]; postPatch = ''
sed -e '1i #include <cstdint>' -i include/stp/AST/ASTNode.h ''; <del> buildInputs = [ boost zlib minisat cryptominisat python3 ]; </del> <ins> buildInputs = [ boost zlib minisat cryptominisat python3 ]; </ins> nativeBuildInputs = [ cmake bison flex perl ]; preConfigure = '' <del> python_install_dir=$out/${python3Packages.python.sitePackages} </del> <ins> python_install_dir=$out/${python3.sitePackages} </ins> mkdir -p $python_install_dir cmakeFlagsArray=( $cmakeFlagsArray
--replace "#include <assert.h>" "" substituteInPlace lib/builtins/cpu_model${lib.optionalString (lib.versionAtLeast version "18") "/x86"}.c  --replace "#include <assert.h>" "" <del> '')); </del> <ins> '')) + lib.optionalString (lib.versionAtLeast release_version "13" && lib.versionOlder release_version "14") '' # https://github.com/llvm/llvm-project/blob/llvmorg-14.0.6/libcxx/utils/merge_archives.py # Seems to only be used in v13 though it's present in v12 and v14, and dropped in v15. substituteInPlace ../libcxx/utils/merge_archives.py  --replace-fail "import distutils.spawn" "from shutil import which as find_executable"  --replace-fail "distutils.spawn." "" ''; </ins> # Hack around weird upsream RPATH bug postInstall = lib.optionalString (stdenv.hostPlatform.isDarwin) ''
wrapProgram $out/bin/tailscaled  --prefix PATH : ${lib.makeBinPath [ iproute2 iptables getent shadow ]}  --suffix PATH : ${lib.makeBinPath [ procps ]} <ins> sed -i -e "s#/usr/sbin#$out/bin#" -e "/^EnvironmentFile/d" ./cmd/tailscaled/tailscaled.service install -D -m0444 -t $out/lib/systemd/system ./cmd/tailscaled/tailscaled.service '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' </ins> local INSTALL="$out/bin/tailscale" installShellCompletion --cmd tailscale  --bash <($out/bin/tailscale completion bash)  --fish <($out/bin/tailscale completion fish)  --zsh <($out/bin/tailscale completion zsh) <del> sed -i -e "s#/usr/sbin#$out/bin#" -e "/^EnvironmentFile/d" ./cmd/tailscaled/tailscaled.service install -D -m0444 -t $out/lib/systemd/system ./cmd/tailscaled/tailscaled.service </del> ''; passthru.tests = {
sha256 = "sha256-uVFuwtsmR/9epoqot3lJ/5v5OuJjuRjL7FJF7oXNDzU="; }; <ins> nativeBuildInputs = [ wrapGAppsNoGuiHook gobject-introspection ]; </ins> propagatedBuildInputs = with python3Packages; [ dbus-python pygobject3 ]; checkInputs = with python3Packages; [ dbus-python ];
<del> { lib , python3 , fetchFromGitHub }: python3.pkgs.buildPythonApplication rec { pname = "flexget"; version = "3.11.39"; pyproject = true; # Fetch from GitHub in order to use `requirements.in` src = fetchFromGitHub { owner = "Flexget"; repo = "Flexget"; rev = "refs/tags/v${version}"; hash = "sha256-saNxs+Xdf6OTRRcMTceU8/ITcYzwtP8VqRKxsWyas+o="; }; postPatch = '' # remove dependency constraints but keep environment constraints sed 's/[~<>=][^;]*//' -i requirements.txt ''; build-system = with python3.pkgs; [ setuptools wheel ]; dependencies = with python3.pkgs; [ # See https://github.com/Flexget/Flexget/blob/master/requirements.txt apscheduler beautifulsoup4 click colorama commonmark feedparser guessit html5lib jinja2 jsonschema loguru more-itertools packaging pendulum psutil pynzb pyrsistent pyrss2gen python-dateutil pyyaml rebulk requests rich rpyc sqlalchemy typing-extensions # WebUI requirements cherrypy flask-compress flask-cors flask-login flask-restful flask-restx flask pyparsing werkzeug zxcvbn # Plugins requirements transmission-rpc ]; pythonImportsCheck = [ "flexget" "flexget.plugins.clients.transmission" ]; # ~400 failures doCheck = false; meta = with lib; { homepage = "https://flexget.com/"; changelog = "https://github.com/Flexget/Flexget/releases/tag/v${version}"; description = "Multipurpose automation tool for all of your media"; license = licenses.mit; maintainers = with maintainers; [ pbsds ]; }; } </del>