jiebi/CodeConvo huggingface dataset:
<ins> # GNOME Terminal. { config, pkgs, lib, ... }: with lib; let cfg = config.programs.gnome-terminal; in { # Added 2019-08-19 imports = [ (mkRenamedOptionModule [ "services" "gnome3" "gnome-terminal-server" "enable" ] [ "programs" "gnome-terminal" "enable" ]) ]; options = { programs.gnome-terminal.enable = mkEnableOption "GNOME Terminal"; }; config = mkIf cfg.enable { environment.systemPackages = [ pkgs.gnome3.gnome-terminal ]; services.dbus.packages = [ pkgs.gnome3.gnome-terminal ]; systemd.packages = [ pkgs.gnome3.gnome-terminal ]; programs.bash.vteIntegration = true; programs.zsh.vteIntegration = true; }; } </ins>
<del> # GNOME Documents daemon. { config, pkgs, lib, ... }: with lib; { ###### interface options = { services.gnome3.gnome-terminal-server = { enable = mkOption { type = types.bool; default = false; description = '' Whether to enable GNOME Terminal server service, needed for gnome-terminal. ''; }; }; }; ###### implementation config = mkIf config.services.gnome3.gnome-terminal-server.enable { environment.systemPackages = [ pkgs.gnome3.gnome-terminal ]; services.dbus.packages = [ pkgs.gnome3.gnome-terminal ]; systemd.packages = [ pkgs.gnome3.gnome-terminal ]; }; } </del>
services.gnome3.gnome-online-accounts.enable = mkDefault true; services.gnome3.gnome-remote-desktop.enable = mkDefault true; services.gnome3.gnome-settings-daemon.enable = true; <del> services.gnome3.gnome-terminal-server.enable = mkDefault true; </del> services.gnome3.gnome-user-share.enable = mkDefault true; services.gnome3.gvfs.enable = true; services.gnome3.rygel.enable = mkDefault true;
<del> { stdenv, fetchFromRepoOrCz, fetchurl, nasm, perl, python3, libuuid, mtools, makeWrapper }: </del> <ins> { stdenv, fetchgit, fetchurl, fetchpatch, nasm, perl, python3, libuuid, mtools, makeWrapper }: </ins> stdenv.mkDerivation { <del> name = "syslinux-2019-02-07"; </del> <ins> pname = "syslinux"; version = "unstable-20190207"; </ins> # This is syslinux-6.04-pre3^1; syslinux-6.04-pre3 fails to run. # Same issue here https://www.syslinux.org/archives/2019-February/026330.html <del> src = fetchFromRepoOrCz { repo = "syslinux"; </del> <ins> src = fetchgit { url = "https://repo.or.cz/syslinux"; </ins> rev = "b40487005223a78c3bb4c300ef6c436b3f6ec1f7"; <del> sha256 = "1qrxl1114sr2i2791z9rf8v53g200aq30f08808d7i8qnmgvxl2w"; </del> <ins> sha256 = "1acf6byx7i6vz8hq6mra526g8mf7fmfhid211y8nq0v6px7d3aqs"; fetchSubmodules = true; </ins> }; patches = let
url = mkURL "fa1349f1" "0002-gfxboot-menu-label.patch"; sha256 = "06ifgzbpjj4picpj17zgprsfi501zf4pp85qjjgn29i5rs291zni"; }) <del> (fetchurl { url = mkURL "477e56d2" "0005-gnu-efi-version-compatibility.patch"; sha256 = "041568b4abb79wynyps1n04lg4fr26rc3sbjncz99pp0mbz0ajlm"; </del> <ins> (fetchpatch { url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/0005-gnu-efi-version-compatibility.patch?h=packages/syslinux"; sha256 = "0fbqz56hj8az8ws26m39hyp3l5fvcbzvzdddqz3x6n56hzdpz1p6"; </ins> }) (fetchurl { # mbr.bin: too big (452 > 440)
# fix tests substituteInPlace tests/unittest/include/unittest/unittest.h  --replace /usr/include/ "" <ins> # Hack to get `gcc -m32' to work without having 32-bit Glibc headers. mkdir gnu-efi/inc/ia32/gnu touch gnu-efi/inc/ia32/gnu/stubs-32.h </ins> ''; nativeBuildInputs = [ nasm perl python3 ];
makeFlags = [ "BINDIR=$(out)/bin" "SBINDIR=$(out)/sbin" <del> "LIBDIR=$(out)/lib" "INCDIR=$(out)/include" </del> "DATADIR=$(out)/share" "MANDIR=$(out)/share/man" "PERL=perl" <del> "bios" </del> ]; doCheck = false; # fails. some fail in a sandbox, others require qemu
ghcCommand'    = if isGhcjs then "ghcjs" else "ghc"; ghcCommand = "${ghc.targetPrefix}${ghcCommand'}"; ghcCommandCaps= lib.toUpper ghcCommand'; <del> libDir        = if isHaLVM then "$out/lib/HaLVM-${ghc.version}" else "$out/lib/${ghcCommand}-${ghc.version}"; </del> <ins> libDir        = if isHaLVM then "$out/lib/HaLVM-${ghc.version}" else if isGhcjs then "$out/libexec" else "$out/lib/${ghcCommand}-${ghc.version}"; </ins> docDir        = "$out/share/doc/ghc/html"; packageCfgDir = "${libDir}/package.conf.d"; paths         = lib.filter (x: x ? isHaskellLibrary) (lib.closePropagation packages);
configureFlags = [ ( if sslSupport then "--with-ssl=${openssl.crossDrv}" else "--without-ssl" ) ( if gnutlsSupport then "--with-gnutls=${gnutls.crossDrv}" else "--without-gnutls" ) <del> "--with-random /dev/urandom" </del> <ins> "--with-random=/dev/urandom" </ins> ]; };
Xsetup = pkgs.writeScript "Xsetup" '' #!/bin/sh <del> # Prior to Qt 5.9.2, there is a QML cache invalidation bug which sometimes # strikes new Plasma 5 releases. If the QML cache is not invalidated, SDDM # will segfault without explanation. We really tore our hair out for awhile # before finding the bug: # https://bugreports.qt.io/browse/QTBUG-62302 # We work around the problem by deleting the QML cache before startup. It # will be regenerated, causing a small but perceptible delay when SDDM # starts. rm -fr /var/lib/sddm/.cache/sddm-greeter/qmlcache </del> ${cfg.setupScript} '';
# To enable user switching, allow sddm to allocate TTYs/displays dynamically. services.xserver.tty = null; services.xserver.display = null; <ins> systemd.tmpfiles.rules = [ # Prior to Qt 5.9.2, there is a QML cache invalidation bug which sometimes # strikes new Plasma 5 releases. If the QML cache is not invalidated, SDDM # will segfault without explanation. We really tore our hair out for awhile # before finding the bug: # https://bugreports.qt.io/browse/QTBUG-62302 # We work around the problem by deleting the QML cache before startup. # This was supposedly fixed in Qt 5.9.2 however it has been reported with # 5.10 and 5.11 as well. The initial workaround was to delete the directory # in the Xsetup script but that doesn't do anything. # Instead we use tmpfiles.d to ensure it gets wiped. # This causes a small but perceptible delay when SDDM starts. "e ${config.users.users.sddm.home}/.cache - - - 0" ]; </ins> }; }
"--enable-library-for-ghci" # TODO: Should this be configurable? ] ++ optionals (enableDeadCodeElimination && (stdenv.lib.versionOlder "8.0.1" ghc.version)) [ "--ghc-option=-split-sections" <ins> ] ++ optionals dontStrip [ "--disable-library-stripping" "--disable-executable-stripping" </ins> ] ++ optionals isGhcjs [ "--ghcjs" ] ++ optionals isCross ([
./hplip-3.20.11-nixos-cups-ppd-search-path.patch ]; <del> prePatch = '' </del> <ins> postPatch = '' # https://github.com/NixOS/nixpkgs/issues/44230 substituteInPlace createPPD.sh  --replace ppdc "${cups}/bin/ppdc"  --replace "gzip -c" "gzip -cn" </ins> # HPLIP hardcodes absolute paths everywhere. Nuke from orbit. find . -type f -exec sed -i  -e s,/etc/hp,$out/etc/hp,g
<ins> { lib, buildPythonPackage, fetchPypi, numpy, h5py }: buildPythonPackage rec { pname = "Keras_Applications"; version = "1.0.4"; src = fetchPypi { inherit pname version; sha256 = "8c95300328630ae74fb0828b6fa38269a25c0228a02f1e5181753bfd48961f49"; }; # Cyclic dependency: keras-applications requires keras, which requires keras-applications postPatch = '' sed -i "s/keras>=[^']*//" setup.py ''; # No tests in PyPI tarball doCheck = false; propagatedBuildInputs = [ numpy h5py ]; meta = with lib; { description = "Reference implementations of popular deep learning models"; homepage = https://github.com/keras-team/keras-applications; license = licenses.mit; }; } </ins>
<ins> { lib, buildPythonPackage, fetchPypi, numpy, scipy, six }: buildPythonPackage rec { pname = "Keras_Preprocessing"; version = "1.0.2"; src = fetchPypi { inherit pname version; sha256 = "f5306554d2b454d825b36f35e327744f5477bd2ae21017f1a93b2097bed6757e"; }; # Cyclic dependency: keras-preprocessing requires keras, which requires keras-preprocessing postPatch = '' sed -i "s/keras>=[^']*//" setup.py ''; # No tests in PyPI tarball doCheck = false; propagatedBuildInputs = [ numpy scipy six ]; meta = with lib; { description = "Easy data preprocessing and data augmentation for deep learning models"; homepage = https://github.com/keras-team/keras-preprocessing; license = licenses.mit; }; } </ins>
{ stdenv, buildPythonPackage, fetchPypi , pytest, pytestcov, pytestpep8, pytest_xdist , six, numpy, scipy, pyyaml, h5py <ins> , keras-applications, keras-preprocessing </ins> }: buildPythonPackage rec { pname = "Keras"; <del> version = "2.2.0"; </del> <ins> version = "2.2.2"; </ins> src = fetchPypi { inherit pname version; <del> sha256 = "5b8499d157af217f1a5ee33589e774127ebc3e266c833c22cb5afbb0ed1734bf"; </del> <ins> sha256 = "468d98da104ec5c3dbb10c2ef6bb345ab154f6ca2d722d4c250ef4d6105de17a"; </ins> }; checkInputs = [
type = types.listOf (types.submodule { options = { name = mkOption { <del> type = types.listOf types.str; </del> <ins> type = types.str; </ins> description = "name of the virtualhost"; <ins> }; webapps = mkOption { type = types.listOf types.path; description = '' List containing web application WAR files and/or directories containing web applications and configuration files for the virtual host. ''; </ins> default = []; }; };
, qtwebsockets , qtquickcontrols2 , qtgraphicaleffects <del> , libmlt </del> , qmake , qttools , genericUpdater , common-updater-scripts }: <del> assert stdenv.lib.versionAtLeast libmlt.version "6.22.1"; </del> assert stdenv.lib.versionAtLeast mlt.version "6.22.1"; mkDerivation rec {
qtgraphicaleffects ]; <del> NIX_CFLAGS_COMPILE = "-I${libmlt}/include/mlt++ -I${libmlt}/include/mlt"; </del> <ins> NIX_CFLAGS_COMPILE = "-I${mlt.dev}/include/mlt++ -I${mlt.dev}/include/mlt"; </ins> qmakeFlags = [ "QMAKE_LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease" "SHOTCUT_VERSION=${version}"
qtWrapperArgs = [ "--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1" <ins> "--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa" </ins> "--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ jack1 SDL2 ]}" "--prefix PATH : ${mlt}/bin" ];
<del> { stdenv, fetchFromGitHub, SDL, ffmpeg, frei0r, libjack2, libdv, libsamplerate , libvorbis, libxml2, makeWrapper, movit, pkgconfig, sox, qtbase, qtsvg , fftw, vid-stab, opencv3, ladspa-sdk, genericUpdater, common-updater-scripts </del> <ins> { stdenv , fetchFromGitHub , SDL , ffmpeg , frei0r , libjack2 , libdv , libsamplerate , libvorbis , libxml2 , movit , pkgconfig , sox , qtbase , qtsvg , fftw , vid-stab , opencv3 , ladspa-sdk , genericUpdater , common-updater-scripts , ladspaPlugins , mkDerivation , which </ins> }: let inherit (stdenv.lib) getDev; in <del> stdenv.mkDerivation rec { </del> <ins> mkDerivation rec { </ins> pname = "mlt"; version = "6.22.1";
}; buildInputs = [ <del> SDL ffmpeg frei0r libjack2 libdv libsamplerate libvorbis libxml2 makeWrapper movit pkgconfig qtbase qtsvg sox fftw vid-stab opencv3 </del> <ins> SDL ffmpeg frei0r libjack2 libdv libsamplerate libvorbis libxml2 movit pkgconfig qtbase qtsvg sox fftw vid-stab opencv3 </ins> ladspa-sdk <ins> ladspaPlugins </ins> ]; <ins> nativeBuildInputs = [ which ]; </ins> outputs = [ "out" "dev" ]; # Mostly taken from: # http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine configureFlags = [ <del> "--avformat-swscale" "--enable-gpl" "--enable-gpl" "--enable-gpl3" </del> <ins> "--avformat-swscale" "--enable-gpl" "--enable-gpl3" </ins> "--enable-opengl" ];
enableParallelBuilding = true; <del> postInstall = '' wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1 </del> <ins> qtWrapperArgs = [ "--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1" "--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa" ]; postInstall = '' </ins> # Remove an unnecessary reference to movit.dev. s=${movit.dev}/include t=$(for ((i = 0; i < ''${#s}; i++)); do echo -n X; done)
scudcloud = callPackage ../applications/networking/instant-messengers/scudcloud { }; <del> shotcut = libsForQt514.callPackage ../applications/video/shotcut { libmlt = mlt; }; </del> <ins> shotcut = libsForQt5.callPackage ../applications/video/shotcut { }; </ins> shogun = callPackage ../applications/science/machine-learning/shogun { stdenv = gcc8Stdenv;
, features          ? "huge" # One of tiny, small, normal, big or huge , wrapPythonDrv     ? false <del> , guiSupport        ? config.vim.gui or "gtk3" </del> <ins> , guiSupport        ? config.vim.gui or (if stdenv.isDarwin then "gtk2" else "gtk3") </ins> , luaSupport        ? config.vim.lua or true , perlSupport       ? config.vim.perl or false      # Perl interpreter , pythonSupport     ? config.vim.python or true     # Python interpreter
''; patches = [ <ins> # https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/55 (fetchpatch { url = "https://gitlab.freedesktop.org/accountsservice/accountsservice/-/merge_requests/58.patch"; sha256 = "1pnwq4ycnryb2kkgvnz44qzm71240ybqj6507wynlkdsw8180fdw"; }) </ins> (substituteAll { src = ./fix-paths.patch; inherit shadow coreutils;
sed -i 's/os_trace((.*)");$/printf(1n");/g' ./projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc substituteInPlace CMakeLists.txt  <del> --replace 'set(CMAKE_INSTALL_NAME_DIR "@rpath")' "set(CMAKE_INSTALL_NAME_DIR "$out/lib")"  </del> <ins> --replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)"  </ins> --replace 'set(CMAKE_INSTALL_RPATH "@executable_path/../lib")' "" '' + ''
--replace 'set(COMPILER_RT_HAS_TSAN TRUE)' 'set(COMPILER_RT_HAS_TSAN FALSE)' substituteInPlace CMakeLists.txt  <del> --replace 'set(CMAKE_INSTALL_NAME_DIR "@rpath")' "set(CMAKE_INSTALL_NAME_DIR "$lib/lib")"  </del> <ins> --replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)"  </ins> --replace 'set(CMAKE_INSTALL_RPATH "@executable_path/../lib")' "" '' # Patch llvm-config to return correct library path based on --link-{shared,static}.
--replace 'set(COMPILER_RT_HAS_TSAN TRUE)' 'set(COMPILER_RT_HAS_TSAN FALSE)' substituteInPlace cmake/modules/AddLLVM.cmake  <del> --replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir INSTALL_NAME_DIR "$lib/lib")"  </del> <ins> --replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)"  </ins> --replace 'set(_install_rpath "@loader_path/../lib" ''${extra_libdir})' "" '' # Patch llvm-config to return correct library path based on --link-{shared,static}.
postPatch = stdenv.lib.optionalString stdenv.isDarwin '' substituteInPlace cmake/modules/AddLLVM.cmake  <del> --replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir INSTALL_NAME_DIR "$lib/lib")"  </del> <ins> --replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)"  </ins> --replace 'set(_install_rpath "@loader_path/../lib" ''${extra_libdir})' "" '' # Patch llvm-config to return correct library path based on --link-{shared,static}.
nativeBuildInputs = [ cmake python which swig ]; buildInputs = [ ncurses zlib libedit libxml2 llvm ] <del> ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ]; </del> <ins> ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa darwin.cf-private ]; </ins> CXXFLAGS = "-fno-rtti"; hardeningDisable = [ "format" ];
postPatch = optionalString stdenv.isDarwin '' substituteInPlace cmake/modules/AddLLVM.cmake  <del> --replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir INSTALL_NAME_DIR "$lib/lib")"  </del> <ins> --replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)"  </ins> --replace 'set(_install_rpath "@loader_path/../lib" ''${extra_libdir})' "" '' # Patch llvm-config to return correct library path based on --link-{shared,static}.
<del> { stdenv, fetchgit, unzip, firefox-esr, makeWrapper }: </del> <ins> { stdenv, fetchgit, unzip, firefox-esr-52, makeWrapper }: </ins> stdenv.mkDerivation rec { pkgname = "conkeror"; version = "1.0.4"; name = "${pkgname}-${version}"; src = fetchgit { url = git://repo.or.cz/conkeror.git; rev = "refs/tags/${version}";
mkdir -p $out/libexec/conkeror cp -r * $out/libexec/conkeror <del> makeWrapper ${firefox-esr}/bin/firefox $out/bin/conkeror  </del> <ins> makeWrapper ${firefox-esr-52}/bin/firefox $out/bin/conkeror  </ins> --add-flags "-app $out/libexec/conkeror/application.ini" '';
(mkRemovedOptionModule [ "services" "openvpn" "enable" ]) (mkRemovedOptionModule [ "services" "printing" "cupsFilesConf" ]) (mkRemovedOptionModule [ "services" "printing" "cupsdConf" ]) <ins> (mkRemovedOptionModule [ "services" "xserver" "startGnuPGAgent" ]) </ins> ]; }
fi ''} <del> ${optionalString cfg.startGnuPGAgent '' if test -z "$SSH_AUTH_SOCK"; then # Restart this script as a child of the GnuPG agent. exec "${pkgs.gnupg}/bin/gpg-agent"                          --enable-ssh-support --daemon                              --pinentry-program "${pkgs.pinentry}/bin/pinentry-gtk-2"   --write-env-file "$HOME/.gpg-agent-info"                   "$0" "$sessionType" fi ''} </del> # Handle being called by kdm. if test "''${1:0:1}" = /; then eval exec "$1"; fi
''; }; <del> startGnuPGAgent = mkOption { type = types.bool; default = false; description = '' Whether to start the GnuPG agent when you log in.  The GnuPG agent remembers private keys for you so that you don't have to type in passphrases every time you make an SSH connection or sign/encrypt data.  Use <command>ssh-add</command> to add a key to the agent. ''; }; </del> startDbusSession = mkOption { type = types.bool; default = true;
in optional (driver != null) ({ inherit name; driverName = name; } // driver)); assertions = <del> [ { assertion = !(config.programs.ssh.startAgent && cfg.startGnuPGAgent); message = '' The OpenSSH agent and GnuPG agent cannot be started both. Please choose between ‘programs.ssh.startAgent’ and ‘services.xserver.startGnuPGAgent’. ''; } { assertion = config.security.polkit.enable; </del> <ins> [ { assertion = config.security.polkit.enable; </ins> message = "X11 requires Polkit to be enabled (‘security.polkit.enable = true’)."; } ];
gnupatch = callPackage ../tools/text/gnupatch { }; gnupg1orig = callPackage ../tools/security/gnupg/1.nix { }; gnupg1compat = callPackage ../tools/security/gnupg/1compat.nix { }; <del> # use config.packageOverrides if you prefer original gnupg1 gnupg1 = gnupg1compat; </del> <ins> gnupg1 = gnupg1compat;    # use config.packageOverrides if you prefer original gnupg1 </ins> gnupg20 = callPackage ../tools/security/gnupg/20.nix { }; <del> gnupg21 = lowPrio (callPackage ../tools/security/gnupg/21.nix { }); gnupg = gnupg20; </del> <ins> gnupg21 = callPackage ../tools/security/gnupg/21.nix { }; gnupg = gnupg21; </ins> gnuplot = callPackage ../tools/graphics/gnuplot { qt = qt4; };
ln -sv "$(realpath $s)" "$out/bin/$tName" # wrapped below done ) <ins> '' + # A hacky way to provide repstopdf #  * Copy is done to have a correct "$0" so that epstopdf enables the restricted mode #  * ./bin/repstopdf needs to be a symlink to be processed by wrapBin '' if [[ -e ./bin/epstopdf ]]; then cp $(realpath ./bin/epstopdf) ./share/texmf/scripts/repstopdf ln -s "$out"/share/texmf/scripts/repstopdf ./bin/repstopdf fi '' + # finish up the wrappers '' </ins> rm "$out"/bin/*-sys wrapBin '' + <ins> # Perform a small test to verify that the restricted mode get enabled when # needed (detected by checking if it disallows --gscmd) '' if [[ -e ./bin/epstopdf ]]; then echo "Testing restricted mode for {,r}epstopdf" ! (epstopdf --gscmd echo /dev/null 2>&1 || true) | grep forbidden (repstopdf --gscmd echo /dev/null 2>&1 || true) | grep forbidden fi '' + </ins> # TODO: a context trigger https://www.preining.info/blog/2015/06/debian-tex-live-2015-the-new-layout/ # http://wiki.contextgarden.net/ConTeXt_Standalone#Unix-like_platforms_.28Linux.2FMacOS_X.2FFreeBSD.2FSolaris.29
<ins> { lib , python3Packages , fetchFromGitHub , enableGoogle ? false , enableAWS ? false , enableAzure ? false , enableSSH ? false }: with python3Packages; buildPythonApplication rec { pname = "dvc"; version = "0.24.3"; # PyPi only has wheel src = fetchFromGitHub { owner = "iterative"; repo = "dvc"; rev = version; sha256 = "1wqq4i23hppilp20fx5a5nj93xwf3wwwr2f8aasvn6jkv2l22vpl"; }; propagatedBuildInputs = [ ply configparser zc_lockfile future colorama configobj networkx pyyaml GitPython setuptools nanotime pyasn1 schema jsonpath_rw requests grandalf asciimatics distro appdirs ] ++ lib.optional enableGoogle google_cloud_storage ++ lib.optional enableAWS boto3 ++ lib.optional enableAzure azure-storage-blob ++ lib.optional enableSSH paramiko; # tests require access to real cloud services # nix build tests have to be isolated and run locally doCheck = false; patches = [ ./dvc-daemon.patch ]; postPatch = '' substituteInPlace dvc/daemon.py --subst-var-by dvc "$out/bin/dcv" ''; meta = with lib; { description = "Version Control System for Machine Learning Projects"; license = licenses.asl20; homepage = https://dvc.org; maintainers = with maintainers; [ cmcdragonkai ]; }; } </ins>
<ins> diff --git a/dvc/daemon.py b/dvc/daemon.py index 1d67a37..7ce6fde 100644 --- a/dvc/daemon.py +++ b/dvc/daemon.py @@ -67,14 +67,8 @@ def daemon(args): Args: args (list): list of arguments to append to `dvc daemon` command. """ -    cmd = [sys.executable] -    if not is_binary(): -        cmd += ['-m', 'dvc'] -    cmd += ['daemon', '-q'] + args - -    env = fix_env() -    file_path = os.path.abspath(inspect.stack()[0][1]) -    env['PYTHONPATH'] = os.path.dirname(os.path.dirname(file_path)) +    cmd = [ "@dvc@" , "daemon", "-q"] + args +    env = None logger.debug("Trying to spawn '{}' with env '{}'".format(cmd, env)) </ins>
duperemove = callPackage ../tools/filesystems/duperemove { }; <ins> dvc = callPackage ../applications/version-management/dvc { }; dvc-with-remotes = callPackage ../applications/version-management/dvc { enableGoogle = true; enableAWS = true; enableAzure = true; enableSSH = true; }; </ins> dylibbundler = callPackage ../tools/misc/dylibbundler { }; dynamic-colors = callPackage ../tools/misc/dynamic-colors { };