Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index e1171082..c3d3002f 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -3592,8 +3592,15 @@ void DerivationGoal::registerOutputs()
if (buildMode == bmRepair)
replaceValidPath(path, actualPath);
else
- if (buildMode != bmCheck && rename(actualPath.c_str(), worker.store.toRealPath(path).c_str()) == -1)
- throw SysError(format("moving build output '%1%' from the sandbox to the Nix store") % path);
@yorickvP
yorickvP / cache.nix
Last active December 7, 2019 13:22
# usage: cache = import ./cache.nix { pkgs, stackYaml = ./stack.yaml; }
let sources = import ../nix/sources.nix;
in { pkgs ? import sources.nixpkgs { }, stackYaml ? ./stack.yaml }:
let
s2n = import "${sources.stack-to-nix}/lib.nix" pkgs;
deps = (s2n.importYAML stackYaml).extra-deps or [ ];
hashPath = path: pkgs.runCommand "hash-path" {
preferLocalBuild = true;
} ''
echo -n \'\'$(${pkgs.nix}/bin/nix-hash --type sha256 --base32 ${path})\'\' > $out
73658 Vulnerability roundup 77: libpcap-1.9.0: 6 advisories
73656 Vulnerability roundup 77: jquery-1.11.3.min.js: 2 advisories
73655 Vulnerability roundup 77: jquery-1.11.3: 1 advisory
73652 Vulnerability roundup 77: imagemagick-6.9.10-69: 48 advisories
73650 Vulnerability roundup 77: http-client-0.6.4: 1 advisory
73633 Vulnerability roundup 77: gcc-7.4.0: 2 advisories
73632 Vulnerability roundup 77: gcc-6.5.0: 2 advisories
73623 Vulnerability roundup 77: dbus-1: 1 advisory
73621 Vulnerability roundup 77: cookie-0.4.4: 1 advisory
70117 Vulnerability roundup 76: opencv-3.4.7: 1 advisory
{
stackProjectCross = {crossPkgs, pkgs, ...}@args: with crossPkgs.haskell-nix;
let stack = importAndFilterProject (pkgs.haskell-nix.callStackToNix args);
pkg-set = mkStackPkgSet
{ stack-pkgs = stack.pkgs;
pkg-def-extras = (args.pkg-def-extras or []);
modules = (args.modules or [])
++ pkgs.lib.optional (args ? ghc) { ghc.package = args.ghc; }
++ pkgs.lib.optional (args ? cache) (mkCacheModule args.cache);
};
{ pkgs ? import <nixpkgs> { } }:
let
oca = pkgs.ocaml-ng.ocamlPackages_4_07.overrideScope' (self: super: {
# tezosPackage = self.callPackage ({ buildDunePackage, fetchgit }: (args:
# buildDunePackage ({
# version = "0.0.1";
# minimumOCamlVersion = "4.07";
# #src = ./.;
let
haskell-nix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz);
pkgs-native = import <nixpkgs> haskell-nix;
pkgs-musl = import <nixpkgs> (haskell-nix // { crossSystem = pkgs-native.lib.systems.examples.musl64; });
stackProjectCross = {crossPkgs, pkgs, ...}@args: with crossPkgs.haskell-nix;
let stack = importAndFilterProject (pkgs.haskell-nix.callStackToNix args);
pkg-set = mkStackPkgSet
{ stack-pkgs = stack.pkgs;
pkg-def-extras = (args.pkg-def-extras or []);
modules = (args.modules or [])
Thread 23 (Thread 0x7fb039ffb700 (LWP 8292)):
#0 0x00007fb08407e256 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /nix/store/qb6k4hp7gk331x9fydw0w7qj4dv09bwz-glibc-2.27/lib/libpthread.so.0
No symbol table info available.
#1 0x0000000000440c49 in std::_Function_handler<void (), waybar::modules::Clock::Clock(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Json::Value const&)::{lambda()#1}>::_M_invoke(std::_Any_data const&) ()
No symbol table info available.
#2 0x000000000043a949 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}> > >::_M_run() ()
No symbol table info available.
#3 0x00007fb084502b0f in ?? () from /nix/store/1220kf6lvlswh677wvizp9p51c6rcp3x-gcc-8.3.0-lib/lib/libstdc++.so.6
No symbol table info available.
Bus 003 Device 022: ID 054c:0cd3 Sony Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x054c Sony Corp.
# vim: et:sta:bs=2:sw=4:
import logging
import time
from concurrent import futures
import grpc
import sdnotify
import ctypes, socket, os
from select import select