Skip to content

Instantly share code, notes, and snippets.

View linking failure
[info] Compiling to native code (3498 ms)
[error] clang-5.0: warning: -Wl,-lc++abi: 'linker' input unused [-Wunused-command-line-argument]
[error] clang-5.0: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
[error] clang-5.0: warning: -Wl,-lc++abi: 'linker' input unused [-Wunused-command-line-argument]
[error] clang-5.0: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
[error] clang-5.0: warning: -Wl,-lc++abi: 'linker' input unused [-Wunused-command-line-argument]
[error] clang-5.0: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
[error] clang-5.0: warning: -Wl,-lc++abi: 'linker' input unused [-Wunused-command-line-argument]
[error] clang-5.0: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
[error] target/scala-2.11/native/lib/optional/re2.cpp.o: In function `scalanative_cre2_find_named_capturing_groups':
View build.sbt
lazy val stage = taskKey[File]("stage")
val allProjectCompiles = ScopeFilter(inAnyProject, inConfigurations(Compile))
lazy val dev = crossProject(JVMPlatform, NativePlatform)
.crossType(CrossType.Full)
.withoutSuffixFor(JVMPlatform)
.settings(
scalaVersion := "2.11.12",
libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.5",
View gist:75256127c97c910c602d7146286d2ed3
~~~
[info] Linking (1414 ms)
[error] cannot link: @java.util.Calendar$::getInstance_java.util.Calendar
[error] cannot link: @java.util.Calendar::setTimeInMillis_i64_unit
[error] unable to link
[error] (devNative/compile:nativeLink) unable to link
[error] Total time: 3 s, completed Jun 19, 2018 10:42:42 AM
>
~~~
View fixed-sbt-with-scala-native.nix
self: super:
let
lib = self.lib;
in with lib;
let
inherit (self) boehmgc libunwind re2 llvmPackages zlib makeWrapper;
c-pkgs = [ re2 zlib boehmgc libunwind llvmPackages.libraries.libcxxabi ];
cplus-pkgs = [ llvmPackages.libraries.libcxx ];
CPATH = makeSearchPathOutput "dev" "include" c-pkgs;
View gist:f54dcc942e90656296ee7cc5ae56c07d
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11916 coconnor 39 19 0.251t 281912 20072 S 0.0 0.4 1:52.78 baloo_file
254861 coconnor 20 0 0.251t 15820 8488 S 0.0 0.0 0:05.15 baloorunner
View lots-of-parallel-builders.nix
with (import <nixpkgs> {});
with lib;
let
forceRebuild = "1";
dummy = index: stdenv.mkDerivation {
name = "dummy-${forceRebuild}-${toString index}";
builder = writeScript "sleeping-builder" ''
#!/bin/sh
echo "dummy ${toString index} is building" > $out
${coreutils}/bin/sleep 10
View gist:291f984c935b517c3af08a9a3238aabe
machine# [ 65.439496] xsession[844]: kf5.kservice.services: The desktop entry file "/run/current-system/sw/share/applications/org.kde.systemmonitor.desktop" has Type= "Application" but no Exec line
machine# [ 65.450639] xsession[844]: kf5.kservice.sycoca: Invalid Service : "/run/current-system/sw/share/applications/org.kde.systemmonitor.desktop"
View examples.nix
{config, pkgs, lib, ...}:
with lib;
{
systemd.services.update-freemyip =
{
description = "Updates FreeMyIP";
path = [ pkgs.curl ];
serviceConfig =
View no-pollute.diff
diff --git a/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix b/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
index 8dbf0e774e4..d005767a045 100644
--- a/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
+++ b/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
@@ -56,23 +56,22 @@ in
unpackPhase = "dpkg-deb -x $src .";
installPhase = ''
mkdir -p $out
- cp -R opt $out
+ mkdir -p $out/libexec
View kconfigwidgets-systemsettings.diff
diff --git a/pkgs/desktops/plasma-5/systemsettings.nix b/pkgs/desktops/plasma-5/systemsettings.nix
index a6199d9fbef..ee858cb70cc 100644
--- a/pkgs/desktops/plasma-5/systemsettings.nix
+++ b/pkgs/desktops/plasma-5/systemsettings.nix
@@ -1,6 +1,6 @@
{
mkDerivation, extra-cmake-modules, kdoctools,
- kcmutils, kconfig, kdbusaddons, khtml, ki18n, kiconthemes, kio, kitemviews,
+ kcmutils, kconfig, kconfigwidgets, kdbusaddons, khtml, ki18n, kiconthemes, kio, kitemviews,
kservice, kwindowsystem, kxmlgui, qtquickcontrols, qtquickcontrols2,
You can’t perform that action at this time.