jiebi/CodeConvo huggingface dataset:
in stdenv.mkDerivation rec { pname = "koreader"; <del> version = "2023.04"; </del> <ins> version = "2024.03.1"; </ins> src = if stdenv.isAarch64 then fetchurl { url = "https://github.com/koreader/koreader/releases/download/v${version}/koreader-${version}-arm64.deb"; <del> sha256 = "sha256-uuspjno0750hQMIB5HEhbV63wCna2izKOHEGIg/X0bU="; </del> <ins> hash = "sha256-9Bu+mWfJuPaH5nV71JMrcGipiZWfcf19KfVauCW92+I="; </ins> } else fetchurl { url = "https://github.com/koreader/koreader/releases/download/v${version}/koreader-${version}-amd64.deb"; <del> sha256 = "sha256-tRUeRB1+UcWT49dchN0YDvd0L5n1YRdtMSFc8yy6m5o="; </del> <ins> hash = "sha256-EZ3iqp0A2BZwI343nvvp71RGQx6FPesUBy4Lha4Yz4U="; </ins> }; src_repo = fetchFromGitHub {
owner = "koreader"; rev = "v${version}"; fetchSubmodules = true; <del> sha256 = "sha256-c3j6hs0W0H2jDg6JVfU6ov7r7kucbqrQqf9PAvYBcJ0="; </del> <ins> sha256 = "sha256-gHn1xqBc7M9wkek1Ja1gry8TKIuUxQP8T45x3z2S4uc="; </ins> }; sourceRoot = ".";
githubId = 1162118; name = "Harald Gliebe"; }; <ins> hakan-demirli = { email = "ehdemirli@proton.me"; github = "hakan-demirli"; githubId = 78746991; name = "Emre Hakan Demirli"; }; </ins> hakuch = { email = "hakuch@gmail.com"; github = "hakuch";
<ins> { lib, fetchFromGitLab, rustPlatform, pkg-config, openssl, wayland, autoPatchelfHook, libxkbcommon, libGL, libX11, libXcursor, libXi, stdenv, makeWrapper, zenity, }: rustPlatform.buildRustPackage rec { pname = "surfer"; version = "0.2.0"; src = fetchFromGitLab { owner = "surfer-project"; repo = "surfer"; rev = "v${version}"; hash = "sha256-C5jyWLs7fdEn2oW5BORZYazQwjXNxf8ketYFwlVkHpA"; fetchSubmodules = true; }; nativeBuildInputs = [ pkg-config autoPatchelfHook makeWrapper ]; buildInputs = [ openssl stdenv.cc.cc.lib ]; # Wayland and X11 libs are required at runtime since winit uses dlopen runtimeDependencies = [ wayland libxkbcommon libGL libX11 libXcursor libXi ]; cargoLock = { lockFile = ./Cargo.lock; outputHashes = { "codespan-0.12.0" = "sha256-3F2006BR3hyhxcUTaQiOjzTEuRECKJKjIDyXonS/lrE="; "egui_skia-0.5.0" = "sha256-dpkcIMPW+v742Ov18vjycLDwnn1JMsvbX6qdnuKOBC4="; "tracing-tree-0.2.0" = "sha256-/JNeAKjAXmKPh0et8958yS7joORDbid9dhFB0VUAhZc="; }; }; # Avoid the network attempt from skia. See: https://github.com/cargo2nix/cargo2nix/issues/318 doCheck = false; postFixup = '' wrapProgram $out/bin/surfer  --prefix PATH : ${lib.makeBinPath [ zenity ]} ''; meta = { description = "Extensible and Snappy Waveform Viewer"; homepage = "https://surfer-project.org/"; changelog = "https://gitlab.com/surfer-project/surfer/-/releases/v${version}"; license = lib.licenses.eupl12; maintainers = with lib.maintainers; [ hakan-demirli ]; platforms = lib.platforms.linux; mainProgram = "surfer"; }; } </ins>
<ins> { lib , fetchFromGitHub , buildDotnetModule , dotnetCorePackages }: buildDotnetModule rec { pname = "dotnet-outdated"; version = "4.6.0"; src = fetchFromGitHub { owner = "dotnet-outdated"; repo = pname; rev = "v${version}"; hash = "sha256-U5qCM+Um8bRafrDpbI5TnSN1nQ8mQpZ5W8Jao2hdAPw="; }; dotnet-sdk = dotnetCorePackages.dotnet_8.sdk; dotnet-runtime = dotnetCorePackages.dotnet_8.runtime; useDotnetFromEnv = true; nugetDeps = ./deps.nix; projectFile = "src/DotNetOutdated/DotNetOutdated.csproj"; executables = "dotnet-outdated"; dotnetInstallFlags = [ "--framework" "net8.0" ]; meta = with lib; { description = "A .NET Core global tool to display and update outdated NuGet packages in a project"; homepage = "https://github.com/dotnet-outdated/dotnet-outdated"; sourceProvenance = with sourceTypes; [ fromSource # deps binaryBytecode binaryNativeCode ]; license = licenses.mit; maintainers = with maintainers; [ emilioziniades ]; mainProgram = "dotnet-outdated"; }; } </ins>
<del> { lib , stdenv , darwin , fetchFromGitHub , copyDesktopItems , makeDesktopItem , libxkbcommon , openssl , pkg-config , rustPlatform , vulkan-loader , wayland , xorg }: rustPlatform.buildRustPackage rec { pname = "halloy"; version = "2024.3"; src = fetchFromGitHub { owner = "squidowl"; repo = "halloy"; rev = "refs/tags/${version}"; hash = "sha256-9yEkM65c8R71oQ0C54xZqwRh609+HSaq4Hb8izNM52A="; }; cargoLock = { lockFile = ./Cargo.lock; outputHashes = { "iced-0.12.0" = "sha256-LtmAJDUMp42S4E+CjOM6Q7doAKOZkmJCN/49gsq3v/A="; "winit-0.29.10" = "sha256-YoXJEvEhMvk3pK5EbXceVFeJEJLL6KTjiw0kBJxgHIE="; }; }; nativeBuildInputs = [ copyDesktopItems pkg-config ]; buildInputs = [ libxkbcommon openssl vulkan-loader xorg.libX11 xorg.libXcursor xorg.libXi xorg.libXrandr ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit darwin.apple_sdk.frameworks.CoreFoundation darwin.apple_sdk.frameworks.CoreGraphics darwin.apple_sdk.frameworks.Cocoa darwin.apple_sdk.frameworks.Foundation darwin.apple_sdk.frameworks.Metal darwin.apple_sdk.frameworks.QuartzCore darwin.apple_sdk.frameworks.Security ] ++ lib.optionals stdenv.isLinux [ wayland ]; desktopItems = [ (makeDesktopItem { name = "org.squidowl.halloy"; desktopName = "Halloy"; comment = "IRC client written in Rust"; icon = "org.squidowl.halloy"; exec = pname; terminal = false; mimeTypes = [ "x-scheme-handler/irc" "x-scheme-handler/ircs" ]; categories = [ "Network" "IRCClient" ]; keywords = [ "IM" "Chat" ]; startupWMClass = "org.squidowl.halloy"; }) ]; postFixup = lib.optional stdenv.isLinux ( let rpathWayland = lib.makeLibraryPath [ wayland vulkan-loader libxkbcommon ]; in '' rpath=$(patchelf --print-rpath $out/bin/halloy) patchelf --set-rpath "$rpath:${rpathWayland}" $out/bin/halloy ''); postInstall = '' install -Dm644 assets/linux/org.squidowl.halloy.png $out/share/icons/hicolor/128x128/apps/org.squidowl.halloy.png ''; meta = with lib; { description = "IRC application"; homepage = "https://github.com/squidowl/halloy"; changelog = "https://github.com/squidowl/halloy/blob/${version}/CHANGELOG.md"; license = licenses.gpl3Only; maintainers = with maintainers; [ fab ]; mainProgram = "halloy"; }; } </del>
<ins> { lib , stdenv , darwin , fetchFromGitHub , copyDesktopItems , makeDesktopItem , libxkbcommon , openssl , pkg-config , rustPlatform , vulkan-loader , wayland , xorg }: rustPlatform.buildRustPackage rec { pname = "halloy"; version = "2024.5"; src = fetchFromGitHub { owner = "squidowl"; repo = "halloy"; rev = "refs/tags/${version}"; hash = "sha256-F/yQYLYrq3MZFV6igQe4sQi84ChIKCCPdS5151nD6hs="; }; cargoLock = { lockFile = ./Cargo.lock; outputHashes = { "iced-0.13.0-dev" = "sha256-8L0AoHPwRUeCiJK/N0NTs1Nl4BX0wbM7SLgundhvra0="; "winit-0.29.10" = "sha256-YoXJEvEhMvk3pK5EbXceVFeJEJLL6KTjiw0kBJxgHIE="; }; }; nativeBuildInputs = [ copyDesktopItems pkg-config ]; buildInputs = [ libxkbcommon openssl vulkan-loader xorg.libX11 xorg.libXcursor xorg.libXi xorg.libXrandr ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit darwin.apple_sdk.frameworks.CoreFoundation darwin.apple_sdk.frameworks.CoreGraphics darwin.apple_sdk.frameworks.Cocoa darwin.apple_sdk.frameworks.Foundation darwin.apple_sdk.frameworks.Metal darwin.apple_sdk.frameworks.QuartzCore darwin.apple_sdk.frameworks.Security ] ++ lib.optionals stdenv.isLinux [ wayland ]; desktopItems = [ (makeDesktopItem { name = "org.squidowl.halloy"; desktopName = "Halloy"; comment = "IRC client written in Rust"; icon = "org.squidowl.halloy"; exec = pname; terminal = false; mimeTypes = [ "x-scheme-handler/irc" "x-scheme-handler/ircs" ]; categories = [ "Network" "IRCClient" ]; keywords = [ "IM" "Chat" ]; startupWMClass = "org.squidowl.halloy"; }) ]; postFixup = lib.optional stdenv.isLinux ( let rpathWayland = lib.makeLibraryPath [ wayland vulkan-loader libxkbcommon ]; in '' rpath=$(patchelf --print-rpath $out/bin/halloy) patchelf --set-rpath "$rpath:${rpathWayland}" $out/bin/halloy ''); postInstall = '' install -Dm644 assets/linux/icons/hicolor/128x128/apps/org.squidowl.halloy.png  $out/share/icons/hicolor/128x128/apps/org.squidowl.halloy.png ''; meta = with lib; { description = "IRC application"; homepage = "https://github.com/squidowl/halloy"; changelog = "https://github.com/squidowl/halloy/blob/${version}/CHANGELOG.md"; license = licenses.gpl3Only; maintainers = with maintainers; [ fab ]; mainProgram = "halloy"; }; } </ins>
<del> { mkDerivation , lib , fetchFromGitLab , qmake , qtcharts , qtsvg , marble , qtwebengine , ldutils </del> <ins> { mkDerivation, lib, fetchFromGitLab, gitUpdater, wrapQtAppsHook, cmake, marble, libsForQt5, </ins> }: mkDerivation rec { pname = "zombietrackergps"; <del> version = "1.10"; </del> <ins> version = "1.15"; </ins> src = fetchFromGitLab { owner = "ldutils-projects"; repo = pname; <del> rev = "v_${version}"; sha256 = "sha256-qRhCAOVWyDLD3WDptPRQVq+VwyFu83XQNaL5TMsGs4Y="; </del> <ins> # latest revision is not tagged upstream, use commit sha in the meantime #rev = "v_${version}"; rev = "cc75d5744965cc6973323f5bb77f00b0b0153dce"; sha256 = "sha256-z/LFNRFdQQFxEWyAjcuGezRbTsv8z6Q6fK8NLjP4HNM="; </ins> }; <del> buildInputs = [ ldutils qtcharts qtsvg marble.dev qtwebengine ]; </del> <ins> buildInputs = [ marble.dev ] ++ (with libsForQt5; [ qtbase qtcharts qtsvg qtwebengine ldutils ]); </ins> nativeBuildInputs = [ <del> qmake </del> <ins> cmake wrapQtAppsHook </ins> ]; <del> prePatch = '' substituteInPlace ztgps.pro --replace "../libldutils" "libldutils" substituteInPlace tests.pro --replace "../libldutils" "libldutils" ln -s ${ldutils} libldutils ''; </del> preConfigure = '' export LANG=en_US.UTF-8 <del> export INSTALL_ROOT=$out </del> ''; <del> preInstall = '' substituteInPlace Makefile.ztgps --replace '$(INSTALL_ROOT)' "" substituteInPlace Makefile.art --replace '$(INSTALL_ROOT)' "" ''; postInstall = '' install -Dm644 build/rcc/*.rcc -t $out/share/zombietrackergps ''; </del> <ins> cmakeFlags = [ "-DLDUTILS_ROOT=${libsForQt5.ldutils}" ]; </ins> <del> qmakeFlags = [ "ZombieTrackerGPS.pro" ]; </del> <ins> passthru.updateScript = gitUpdater { rev-prefix = "v_"; }; </ins> meta = with lib; { description = "GPS track manager for Qt using KDE Marble maps"; homepage = "https://www.zombietrackergps.net/ztgps/"; changelog = "https://www.zombietrackergps.net/ztgps/history.html"; license = licenses.gpl3Plus; <del> maintainers = with maintainers; [ sohalt ]; </del> <ins> maintainers = with maintainers; [sohalt]; </ins> platforms = platforms.linux; <del> broken = true;  # doesn't build with latest Marble </del> }; }
<del> { mkDerivation , lib , fetchFromGitLab , qtcharts , qtsvg , qmake </del> <ins> { mkDerivation, lib, fetchFromGitLab, libsForQt5, cmake, </ins> }: mkDerivation rec { pname = "ldutils"; <del> version = "1.10"; </del> <ins> version = "1.15"; </ins> src = fetchFromGitLab { owner = "ldutils-projects"; repo = pname; <del> rev = "v_${version}"; sha256 = "sha256-fP+tZY+ayaeuxPvywO/639sNE+IwrxaEJ245q9HTOCU="; </del> <ins> rev = "4fc416f694ce888c5bd4c4432a7730bb6260475c"; #rev = "v_${version}"; sha256 = "sha256-UMDayvz9RlcR4HVJNn7tN4FKbiKAFRSPaK0osA6OGTI="; </ins> }; <del> buildInputs = [ </del> <ins> buildInputs = with libsForQt5.qt5; [ </ins> qtcharts qtsvg ]; nativeBuildInputs = [ <del> qmake </del> <ins> cmake </ins> ]; <del> qmakeFlags = [ "ldutils.pro" ]; </del> <ins> qmakeFlags = ["ldutils.pro"]; </ins> <del> LDUTILS_LIB=placeholder "out"; LDUTILS_INCLUDE=placeholder "out"; </del> <ins> LDUTILS_LIB = placeholder "out"; LDUTILS_INCLUDE = placeholder "out"; </ins> meta = with lib; { description = "Headers and link library for other ldutils projects"; homepage = "https://gitlab.com/ldutils-projects/ldutils"; license = licenses.gpl3Plus; <del> maintainers = with maintainers; [ sohalt ]; </del> <ins> maintainers = with maintainers; [sohalt]; </ins> platforms = platforms.linux; }; }
<del> { autoPatchelfHook , electron , fetchurl , lib , makeWrapper , squashfsTools , stdenv }: stdenv.mkDerivation rec { pname = "authy"; # curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/snaps/details/authy?channel=stable' | jq '.download_url,.version' version = "2.4.1"; rev = "21"; src = fetchurl { url = "https://api.snapcraft.io/api/v1/snaps/download/H8ZpNgIoPyvmkgxOWw5MSzsXK1wRZiHn_${rev}.snap"; hash = "sha256-a5z6Lwdgody88f7has/f2AMg9m9fGWsJSexZM6KUGOY="; }; nativeBuildInputs = [ autoPatchelfHook makeWrapper squashfsTools ]; unpackPhase = '' runHook preUnpack unsquashfs "$src" cd squashfs-root if ! grep -q '${version}' meta/snap.yaml; then echo "Package version differs from version found in snap metadata:" grep 'version: ' meta/snap.yaml echo "While the nix package specifies: ${version}." echo "You probably chose the wrong revision or forgot to update the nix version." exit 1 fi runHook postUnpack ''; installPhase = '' runHook preInstall mkdir -p $out/bin $out/share/applications $out/share/pixmaps/apps # Copy only what is needed cp -r resources* $out/ cp -r locales* $out/ cp meta/gui/authy.desktop $out/share/applications/ cp meta/gui/icon.png $out/share/pixmaps/authy.png # Replace icon name in Desktop file sed -i 's|''${SNAP}/meta/gui/icon.png|authy|g' "$out/share/applications/authy.desktop" runHook postInstall ''; postFixup = '' makeWrapper ${electron}/bin/electron $out/bin/${pname}  --add-flags $out/resources/app.asar ''; meta = with lib; { homepage = "https://www.authy.com"; description = "Twilio Authy two factor authentication desktop application"; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.unfree; maintainers = with maintainers; [ iammrinal0 ]; platforms = [ "x86_64-linux" ]; mainProgram = "authy"; }; } </del>
atomEnv = throw "'atomEnv' has been removed because 'atom' is discontinued and deprecated. Consider using 'pulsar', a maintained fork"; # Added 2023-10-01 atomPackages = throw "'atomPackages' has been removed because 'atom' is discontinued and deprecated. Consider using 'pulsar', a maintained fork"; # Added 2023-10-01 auditBlasHook = throw "'auditBlasHook' has been removed since it never worked"; # Added 2024-04-02 <ins> authy = throw "'authy' has been removed since it reached end of life"; # Added 2024-04-19 </ins> avldrums-lv2 = x42-avldrums; # Added 2020-03-29 awesome-4-0 = awesome; # Added 2022-05-05
let common = { name, npmBuildScript, installPhase }: buildNpmPackage rec { pname = name; <del> version = "2024.3.1"; </del> <ins> version = "2024.3.2"; </ins> nodejs = nodejs_18; src = fetchFromGitHub { owner = "bitwarden"; repo = "directory-connector"; rev = "v${version}"; <del> hash = "sha256-NbyjL6x/Ij5waYlIDNKrg7fDT+co/EcdCW4ZBJ6KV34="; </del> <ins> hash = "sha256-CB5HrT+p63zANg1SEoynk6hPPW5DcC9Qfo2+QDy2iwc="; </ins> }; postPatch = ''
<ins> { lib, stdenv, fetchhg, pkg-config, makeBinaryWrapper, SDL2, glew, gtk3, testers, }: stdenv.mkDerivation (finalAttrs: { pname = "blastem"; version = "0.6.2-unstable-2024-03-31"; src = fetchhg { url = "https://www.retrodev.com/repos/blastem"; rev = "48ab1e3e5df5"; hash = "sha256-UZl5fIE7LJqxwS8kFJ3xr8BJyHF60dnRNeA5k7lAuxg="; }; # will probably be fixed in https://github.com/NixOS/nixpkgs/pull/302481 postPatch = lib.optionalString stdenv.isDarwin '' substituteInPlace Makefile  --replace-fail "-flto" "" ''; nativeBuildInputs = [ pkg-config makeBinaryWrapper ]; buildInputs = [ gtk3 SDL2 glew ]; # Note: menu.bin cannot be generated yet, because it would # need the `vasmm68k_mot` executable (part of vbcc for amigaos68k # Luckily, menu.bin doesn't need to be present for the emulator to function makeFlags = [ "HOST_ZLIB=1" ]; env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2}/include/SDL2"; installPhase = '' runHook preInstall # not sure if any executable other than blastem is really needed here install -Dm755 blastem dis zdis termhelper -t $out/share/blastem install -Dm644 gamecontrollerdb.txt default.cfg rom.db -t $out/share/blastem cp -r shaders $out/share/blastem/shaders # wrapping instead of sym-linking makes sure argv0 stays at the original location makeWrapper $out/share/blastem/blastem $out/bin/blastem runHook postInstall ''; passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; command = "blastem -v"; version = "0.6.3-pre"; # remove line when moving to a stable version }; meta = { description = "The fast and accurate Genesis emulator"; homepage = "https://www.retrodev.com/blastem/"; license = lib.licenses.gpl3Plus; mainProgram = "blastem"; maintainers = with lib.maintainers; [ tomasajt ]; platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ]; }; }) </ins>
--prefix LD_LIBRARY_PATH : ${libPath} ''; <del> postInstall = '' </del> <ins> postInstall = lib.optionalString stdenv.isDarwin '' mkdir -p $out/Applications cp -r extra/osx/Neovide.app $out/Applications ln -s $out/bin $out/Applications/Neovide.app/Contents/MacOS '' + lib.optionalString stdenv.isLinux '' </ins> for n in 16x16 32x32 48x48 256x256; do install -m444 -D "assets/neovide-$n.png"  "$out/share/icons/hicolor/$n/apps/neovide.png"
;; switch|boot|test|build|edit|repl|dry-build|dry-run|dry-activate|build-vm|build-vm-with-bootloader|list-generations) if [ "$i" = dry-run ]; then i=dry-build; fi <ins> if [ "$i" = list-generations ]; then buildNix= fast=1 fi </ins> # exactly one action mandatory, bail out if multiple are given if [ -n "$action" ]; then showSyntax; fi action="$i"
###### implementation config = mkIf cfg.enable { <del> assertions = singleton { assertion = cfg.password == null || cfg.passwordFile == null; message = "Cannot use both password and passwordFile for shadowsocks-libev"; }; </del> <ins> assertions = [ { # xor, make sure either password or passwordFile be set. # shadowsocks-libev not support plain/none encryption method # which indicated that password must set. assertion = let noPasswd = cfg.password == null; noPasswdFile = cfg.passwordFile == null; in (noPasswd && !noPasswdFile) || (!noPasswd && noPasswdFile); message = "Option `password` or `passwordFile` must be set and cannot be set simultaneously"; } ]; </ins> systemd.services.shadowsocks-libev = { description = "shadowsocks-libev Daemon";
<ins> { lib, stdenv, fetchFromGitHub, fetchpatch, bluez, cmake, dbus, libftdi1, nix-update-script, pkg-config, useLibFTDI ? true, useOpenMP ? true, buildBluetooth ? true, buildBluetoothLowEnergy ? true, buildONNX ? true, }: stdenv.mkDerivation (finalAttrs: { pname = "brainflow"; version = "5.12.1"; src = fetchFromGitHub { owner = "brainflow-dev"; repo = "brainflow"; rev = "refs/tags/${finalAttrs.version}"; hash = "sha256-haQO03nkvLoXtFVe+C+yi+MwM0CFh6rLcLvU8fQ4k/w="; }; patches = [ # All of these are PRs that were merged into the upstream repository and will be included in the next release # These should be removed once the next version is released (fetchpatch { # Fixes a major issue that prevented the build from working at all (why was this not backported???) url = "https://github.com/brainflow-dev/brainflow/commit/883b0cd08acb99d7b6e241e92fba2e9a363d17b1.patch"; hash = "sha256-QQd+BI3I65gfaNS/SKLjCoqbCwPCiTh+nh0tJAZM6hQ="; }) (fetchpatch { # Bumps the version of a python dependency that had a backwards-incompatible change url = "https://github.com/brainflow-dev/brainflow/commit/ea23a6f0483ce4d6fdd7a82bace865356ee78d7f.patch"; hash = "sha256-dvMpxxRrnJQ9ADGagB1JhuoB9SNwn755wbHzW/3ECeo="; }) (fetchpatch { # Fixes an incorrect use of an environment variable during the build url = "https://github.com/brainflow-dev/brainflow/commit/053b8c1253b686cbec49ab4adb47c9ee02d3f99a.patch"; hash = "sha256-Pfhe1ZvMagfVAGZqeWn1uHXgwlTtkOm+gyWuvC5/Sro="; }) ]; cmakeFlags = with lib; [ (cmakeBool "USE_LIBFTDI" useLibFTDI) (cmakeBool "USE_OPENMP" useOpenMP) (cmakeBool "BUILD_OYMOTION_SDK" false) # Needs a "GFORCE_SDK" (cmakeBool "BUILD_BLUETOOTH" buildBluetooth) (cmakeBool "BUILD_BLE" buildBluetoothLowEnergy) (cmakeBool "BUILD_ONNX" buildONNX) ]; buildInputs = [ dbus ] ++ lib.optional (buildBluetooth || buildBluetoothLowEnergy) bluez ++ lib.optional useLibFTDI libftdi1; nativeBuildInputs = [ cmake pkg-config ]; postPatch = '' find . -type f -name 'build.cmake' -exec  sed -i 's/DESTINATION inc/DESTINATION include/g' {} ; ''; passthru.updateScript = nix-update-script { }; meta = { description = "A library to obtain, parse and analyze data (EEG, EMG, ECG) from biosensors"; homepage = "https://brainflow.org/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ pandapip1 ziguana ]; platforms = lib.platforms.all; }; }) </ins>
<ins> { buildPythonPackage, brainflow, nptyping, numpy, python, setuptools, }: buildPythonPackage { inherit (brainflow) pname version src patches meta ; pyproject = true; build-system = [ setuptools ]; dependencies = [ numpy nptyping ]; buildInputs = [ brainflow ]; postPatch = '' cd python_package ''; postInstall = '' mkdir -p "$out/${python.sitePackages}/brainflow/lib/" cp -Tr "${brainflow}/lib" "$out/${python.sitePackages}/brainflow/lib/" ''; pythonImportsCheck = [ "brainflow" ]; } </ins>
stdenvNoCC.mkDerivation (finalAttrs: { inherit pname version meta; <del> src = fetchurl { url = "https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-${finalAttrs.version}-MacOSX-universal.dmg"; sha256 = "0k72fdnx1zmyi9z5n3lazc7s70gcddxq0s73akp0al0y9hzq9prh"; </del> <ins> src = requireFile rec { name = "VNC-Viewer-${finalAttrs.version}-MacOSX-universal.dmg"; url = "https://downloads.realvnc.com/download/file/viewer.files/${name}"; sha256 = "0k72fdnx1zmyi9z5n3lazc7s70gcddxq0s73akp0al0y9hzq9prh"; message= '' vnc-viewer can be downloaded from ${url}, but the download link require captcha, thus if you wish to use this application, you need to download it manually and use follow command to add downloaded files into nix-store $ nix-prefetch-url --type sha256 file:///path/to/${name} ''; </ins> }; sourceRoot = ".";
inherit pname version; src = { <del> "x86_64-linux" = fetchurl { url = "https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-${finalAttrs.version}-Linux-x64.rpm"; </del> <ins> "x86_64-linux" = requireFile rec { name = "VNC-Viewer-${finalAttrs.version}-Linux-x64.rpm"; url = "https://downloads.realvnc.com/download/file/viewer.files/${name}"; </ins> sha256 = "sha256-Ull9iNi8NxB12YwEThWE0P9k1xOV2LZnebuRrVH/zwI="; <ins> message= '' vnc-viewer can be downloaded from ${url}, but the download link require captcha, thus if you wish to use this application, you need to download it manually and use follow command to add downloaded files into nix-store $ nix-prefetch-url --type sha256 file:///path/to/${name} ''; </ins> }; }.${stdenv.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
src = fetchurl { url = "mirror://gnome/sources/librsvg/${lib.versions.majorMinor finalAttrs.version}/librsvg-${finalAttrs.version}.tar.xz"; <del> hash = "sha256-Kiwwvqvzz91ApKbb7T+zPmd8ruXY8wR4gkm3Mee+OFI="; </del> <ins> hash = "sha256-18REqSZAa1l5C+DerhluGO0mBZ2lc/oaqeycp2WKVZw="; </ins> }; cargoDeps = rustPlatform.fetchCargoTarball { inherit (finalAttrs) src; name = "librsvg-deps-${finalAttrs.version}"; <del> hash = "sha256-yJf3V2dPwI+RcDH6Lh/AhUgaisdbTnzdAFt+SeNw9NY="; </del> <ins> hash = "sha256-ta+3KkDtqTLGoKknUn89c+3XHzvcZyPFPFpgLH5f5uw="; </ins> # TODO: move this to fetchCargoTarball dontConfigure = true; };