Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 064ccfd19b68
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8fc1bd6ec352
Choose a head ref

Commits on Oct 20, 2019

  1. gir-rs: init at 2019-10-16

    Ekleog committed Oct 20, 2019
    Copy the full SHA
    0cc5248 View commit details

Commits on Oct 22, 2019

  1. deepin.deepin-wm: remove

    Upstream has deprecated this package. And it's currently broken.
    worldofpeace committed Oct 22, 2019
    Copy the full SHA
    05ebf34 View commit details
  2. deepin.deepin-metacity: remove

    Also obsolete.
    worldofpeace committed Oct 22, 2019
    Copy the full SHA
    a18702f View commit details
  3. deepin.deepin-mutter: remove

    Also obsolete.
    worldofpeace committed Oct 22, 2019
    Copy the full SHA
    d797361 View commit details
  4. Copy the full SHA
    69e90bd View commit details
  5. Copy the full SHA
    11a0602 View commit details

Commits on Oct 28, 2019

  1. dvc: init at 0.24.3

    CMCDragonkai committed Oct 28, 2019
    Copy the full SHA
    3c3ac19 View commit details

Commits on Oct 29, 2019

  1. Copy the full SHA
    5cfc0aa View commit details
  2. Copy the full SHA
    0cf598c View commit details
  3. Copy the full SHA
    3410525 View commit details
  4. Copy the full SHA
    81220cf View commit details
  5. Copy the full SHA
    cfaa8b8 View commit details
  6. Merge pull request #71614 from worldofpeace/deepin-kwin

    deepin.dde-kwin: init at 5.0.0
    worldofpeace authored Oct 29, 2019
    Copy the full SHA
    03ad61c View commit details
  7. vte: remove duplicated gnome3 argument

    This was added on accident in cfaa8b8,
    as the gnome3 parameter is already specified.
    
    This unbreaks Borg evaluation.
    
    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Oct 29, 2019
    Copy the full SHA
    a5a1b86 View commit details
  8. Merge pull request #54530 from MatrixAI/dvc

    dvc: init at 0.24.3
    worldofpeace authored Oct 29, 2019
    Copy the full SHA
    9121c91 View commit details
  9. firecracker: 0.18.0 -> 0.19.0, some cleanups

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Oct 29, 2019
    Copy the full SHA
    610a6fc View commit details
  10. firecracker: support on aarch64-linux

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Oct 29, 2019
    Copy the full SHA
    4be9fcd View commit details
  11. Merge pull request #71464 from Ekleog/gir-rs

    gir-rs: init at 2019-10-16
    Ekleog authored Oct 29, 2019
    Copy the full SHA
    5eb304c View commit details
  12. libnats-c: init at 2.1.0

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Oct 29, 2019
    Copy the full SHA
    daa2420 View commit details
  13. nats-streaming-server: 0.11.2 -> 0.16.2

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Oct 29, 2019
    Copy the full SHA
    291fb1e View commit details
  14. nats-server: rename (from gnatsd), 1.4.0 -> 2.1.0

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Oct 29, 2019
    Copy the full SHA
    21c0cc1 View commit details
  15. pythonPackages.html2text: freeze at 2018.1.9

    I was unable tp build calibre at the current git master as it relies on
    pytthon27Packages.html2text. Python 2.7 support was removed in the
    latest version. This PR downgrades html2text when using an unsupported
    Python version.
    
    This PR does not fix building python37Packages.html2text
    and python38Packages.html2text, which were broken at master due to what
    seems to be a problem in buildPythonPackage.
    artemist authored and Jon committed Oct 29, 2019
    Copy the full SHA
    8fc1bd6 View commit details
65 changes: 65 additions & 0 deletions pkgs/applications/version-management/dvc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{ 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 ];
};
}
21 changes: 21 additions & 0 deletions pkgs/applications/version-management/dvc/dvc-daemon.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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))

50 changes: 38 additions & 12 deletions pkgs/applications/virtualization/firecracker/default.nix
Original file line number Diff line number Diff line change
@@ -1,35 +1,61 @@
{ fetchurl, stdenv }:

let
version = "0.18.0";
baseurl = "https://github.com/firecracker-microvm/firecracker/releases/download";
version = "0.19.0";

suffix = {
x86_64-linux = "";
aarch64-linux = "-aarch64";
}."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");

baseurl = "https://github.com/firecracker-microvm/firecracker/releases/download";
fetchbin = name: sha256: fetchurl {
url = "${baseurl}/v${version}/${name}-v${version}";
inherit sha256;
url = "${baseurl}/v${version}/${name}-v${version}${suffix}";
sha256 = sha256."${stdenv.hostPlatform.system}";
};

firecracker-bin = fetchbin "firecracker" {
x86_64-linux = "0yjhw77xc2nc96p36jhf0va95gf6hwi9n270g4iiwakycdy048mx";
aarch64-linux = "165yca7pcwpqw3x6dihcjz1xcwjh37sdi9qrrjk9zasxx7xcniym";
};

jailer-bin = fetchbin "jailer" {
x86_64-linux = "1q792b4bl1q3ach8nc8l0fbcil44knv3wa542xrskndzdz28lhsp";
aarch64-linux = "1cnwlpy5bswjprk7fcjgf6lxidhp7z00qx691nkwhzjkby80j490";
};

firecracker-bin = fetchbin "firecracker" "140g93z0k8yd9lr049ps4dj0psb9ac1v7g5zs7lzpws9rj8shmgh";
jailer-bin = fetchbin "jailer" "0sk1zm1fx0zdy5il8vyygzads72ni2lcil42wv59j8b2bg8p7fwd";
in
stdenv.mkDerivation {
name = "firecracker-${version}";
pname = "firecracker";
inherit version;

srcs = [ firecracker-bin jailer-bin ];
phases = [ "installPhase" ];

unpackPhase = ":";
configurePhase = ":";

buildPhase = ''
cp ${firecracker-bin} firecracker
cp ${jailer-bin} jailer
chmod +x firecracker jailer
'';

doCheck = true;
checkPhase = ''
./firecracker --version
./jailer --version
'';

installPhase = ''
mkdir -p $out/bin
install -D ${firecracker-bin} $out/bin/firecracker
install -D ${jailer-bin} $out/bin/jailer
install -D firecracker $out/bin/firecracker
install -D jailer $out/bin/jailer
'';

meta = with stdenv.lib; {
description = "Secure, fast, minimal micro-container virtualization";
homepage = http://firecracker-microvm.io;
license = licenses.asl20;
platforms = [ "x86_64-linux" ];
platforms = [ "x86_64-linux" "aarch64-linux" ];
maintainers = with maintainers; [ thoughtpolice ];
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
From c4edb65554f90a5abfc2ecbf63587b8c6ef2653d Mon Sep 17 00:00:00 2001
From: worldofpeace <worldofpeace@protonmail.ch>
Date: Tue, 22 Oct 2019 17:20:24 -0400
Subject: [PATCH] dde-kwin.pc: make paths relative

Values like libdir should be relative to the literal ${prefix}.
We also use @ONLY so we don't substitute values like ${prefix}
with CMake resulting in an unintentional replacement.
---
plugins/kwin-xcb/lib/CMakeLists.txt | 2 +-
plugins/kwin-xcb/lib/dde-kwin.pc.in | 18 +++++++++---------
2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/plugins/kwin-xcb/lib/CMakeLists.txt b/plugins/kwin-xcb/lib/CMakeLists.txt
index 0189b74..62e5553 100644
--- a/plugins/kwin-xcb/lib/CMakeLists.txt
+++ b/plugins/kwin-xcb/lib/CMakeLists.txt
@@ -61,7 +61,7 @@ install_files(
kwinutils.h
)

-configure_file(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc)
+configure_file(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
if (CMAKE_INSTALL_LIBDIR)
install_files("/${CMAKE_INSTALL_LIBDIR}/pkgconfig" FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc)
elseif (CMAKE_LIBRARY_OUTPUT_DIRECTORY)
diff --git a/plugins/kwin-xcb/lib/dde-kwin.pc.in b/plugins/kwin-xcb/lib/dde-kwin.pc.in
index 9b1d813..1179761 100644
--- a/plugins/kwin-xcb/lib/dde-kwin.pc.in
+++ b/plugins/kwin-xcb/lib/dde-kwin.pc.in
@@ -1,13 +1,13 @@
-prefix=${CMAKE_INSTALL_PREFIX}
-exec_prefix=${CMAKE_INSTALL_PREFIX}
-libdir=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}
-includedir=${INCLUDE_OUTPUT_PATH}
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=@INCLUDE_OUTPUT_PATH@


-Name: ${PROJECT_NAME}
+Name: @PROJECT_NAME@
Description: DDE KWin plugin library
-Version: ${PROJECT_VERSION}
-Libs: -l${PROJECT_NAME}
-Libs.private: -L/usr/X11R6/lib64 -lQt5X11Extras -lKF5WindowSystem -lQt5Widgets -lQt5Gui -lKF5ConfigCore -lKF5CoreAddons -lQt5Core -lGL -lpthread
-Cflags: -I${INCLUDE_OUTPUT_PATH}
+Version: @PROJECT_VERSION@
+Libs: -l$@PROJECT_NAME@
+Libs.private: -L/usr/X11R6/lib64 -lQt5X11Extras -lKF5WindowSystem -lQt5Widgets -lQt5Gui -lKF5ConfigCore -lKF5CoreAddons -lQt5Core -lGL -lpthread
+Cflags: -I@INCLUDE_OUTPUT_PATH@

--
2.23.0

140 changes: 140 additions & 0 deletions pkgs/desktops/deepin/dde-kwin/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{ stdenv
, mkDerivation
, pkgconfig
, fetchFromGitHub
, deepin
, cmake
, extra-cmake-modules
, qtbase
, libxcb
, kglobalaccel
, kwindowsystem
, kcoreaddons
, kwin
, dtkcore
, gsettings-qt
, fontconfig
, deepin-desktop-schemas
, glib
, libXrender
, mtdev
, qttools
, deepin-gettext-tools
, kwayland
, qtx11extras
, qtquickcontrols2
, epoxy
, qt5integration
, dde-session-ui
, dbus
, wrapGAppsHook
}:

mkDerivation rec {
pname = "dde-kwin";
version = "5.0.0";

src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "0bvkx9h5ygj46a0j76kfyq3gvk6zn4fx6clhrmcr40hbi2k33cbl";
};

nativeBuildInputs = [
cmake
deepin-gettext-tools
deepin.setupHook
extra-cmake-modules
pkgconfig
wrapGAppsHook
];

buildInputs = [
deepin-desktop-schemas
dtkcore
epoxy
fontconfig
glib
gsettings-qt
kcoreaddons
kglobalaccel
kwayland
kwin
kwindowsystem
libXrender
libxcb
mtdev
qtbase
qtquickcontrols2
qttools
qtx11extras
qt5integration
];

# Need to add kwayland around:
# * https://github.com/linuxdeepin/dde-kwin/blob/5226bb984c844129f9fa589da56e77decb7b39a1/plugins/kwineffects/blur/CMakeLists.txt#L14
NIX_CFLAGS_COMPILE = "-I${kwayland.dev}/include/KF5";

cmakeFlags = [
"-DKWIN_VERSION=${(builtins.parseDrvName kwin.name).version}"
];

patches = [
./0001-dde-kwin.pc-make-paths-relative.patch
./fix-paths.patch
];

postPatch = ''
searchHardCodedPaths
patchShebangs translate_ts2desktop.sh \
translate_generation.sh \
translate_desktop2ts.sh \
plugins/kwin-xcb/plugin/translate_generation.sh
fixPath ${deepin-gettext-tools} /usr/bin/deepin-desktop-ts-convert translate_desktop2ts.sh translate_ts2desktop.sh
fixPath $out /etc/xdg configures/CMakeLists.txt deepin-wm-dbus/deepinwmfaker.cpp
# TODO: Need environmental patch
fixPath /run/current-system/sw /usr/lib plugins/kwin-xcb/plugin/main.cpp
substituteInPlace configures/kwin-wm-multitaskingview.desktop \
--replace "dbus-send" "${dbus}/bin/dbus-send"
fixPath ${dde-session-ui} /usr/lib/deepin-daemon/dde-warning-dialog deepin-wm-dbus/deepinwmfaker.cpp
# Correct qt plugin installation path to be within dde-kwin prefix.
substituteInPlace CMakeLists.txt \
--subst-var-by plugin_path "$out/$qtPluginPrefix"
'';

postInstall = ''
# Correct invalid path in .pc
substituteInPlace $out/lib/pkgconfig/dde-kwin.pc \
--replace "-L/usr/X11R6/lib64" ""
chmod +x $out/bin/kwin_no_scale
'';

dontWrapQtApps = true;

preFixup = ''
gappsWrapperArgs+=(
"''${qtWrapperArgs[@]}"
)
'';

enableParallelBuilding = true;

passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };

meta = with stdenv.lib; {
description = "KWin configuration for Deepin Desktop Environment";
homepage = "https://github.com/linuxdeepin/dde-kwin";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo worldofpeace ];
};
}
16 changes: 16 additions & 0 deletions pkgs/desktops/deepin/dde-kwin/fix-paths.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index feef49d..ecb7ed2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,9 +26,9 @@ macro(query_qmake args output)
endif()
endmacro()

-query_qmake("QT_INSTALL_PLUGINS" QT_INSTALL_PLUGINS)
+set(QT_INSTALL_PLUGINS @plugin_path@)

-set(PLUGIN_INSTALL_PATH ${QT_INSTALL_PLUGINS}/platforms)
+set(PLUGIN_INSTALL_PATH @plugin_path@/platforms)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed
Loading