Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d690c20efd07
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d9b40f6397de
Choose a head ref

Commits on Feb 12, 2019

  1. nixos/qemu-vm: declarative drives

    Adds `virtualisation.qemu.drives` option to specify drives to be used by
    qemu.
    
    Also fix boot when `virtualisation.useBootLoader` is set to true. Since
    the boot disk is second qemu doesn't boot on it. Added `bootindex=1` to
    the boot disk device.
    eonpatapon committed Feb 12, 2019
    Copy the full SHA
    376b2ef View commit details

Commits on Nov 3, 2019

  1. sdrangel: 4.11.7 -> 4.11.12

    alkeryn committed Nov 3, 2019
    Copy the full SHA
    3f2bdec View commit details

Commits on Nov 4, 2019

  1. Merge pull request #55645 from eonpatapon/qemu-vm-drives

    nixos/qemu-vm: declarative drives
    wmertens authored Nov 4, 2019
    Copy the full SHA
    59e731b View commit details
  2. Copy the full SHA
    a2f7fc9 View commit details
  3. Copy the full SHA
    eb2aa00 View commit details
  4. Copy the full SHA
    8db9c3e View commit details
  5. Copy the full SHA
    d7a618a View commit details
  6. Copy the full SHA
    b076565 View commit details
  7. Merge pull request #72728 from Alkeryn/sdrangel

    sdrangel: 4.11.7 -> 4.11.12
    markuskowa authored Nov 4, 2019
    Copy the full SHA
    12a9a4a View commit details
  8. rabbitmq-server: 3.8.0 -> 3.8.1

    r-ryantm authored and Profpatsch committed Nov 4, 2019
    Copy the full SHA
    cdc5bcd View commit details
  9. vscode-extensions.ms-vscode.cpptools: 0.26.0 -> 0.26.1

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    e6bb218 View commit details
  10. srht: 0.54.3 -> 0.54.4

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    21529a9 View commit details
  11. buildsrht: 0.47.9 -> 0.48.0

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    9bc8540 View commit details
  12. dispatchsrht: 0.11.1 -> 0.12.3

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    257f5d6 View commit details
  13. gitsrht: 0.34.2 -> 0.35.6

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    7967cb0 View commit details
  14. hgsrht: 0.16.0 -> 0.16.2

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    2269781 View commit details
  15. metasrht: 0.35.3 -> 0.37.0

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    eb9b2ac View commit details
  16. pastesrht: 0.7.1 -> 0.7.3

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    0d487ae View commit details
  17. todosrht: 0.51.11 -> 0.51.13

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    09570b1 View commit details
  18. scmsrht: 0.15.3 -> 0.16.0

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    78bbf84 View commit details
  19. pythonPackages.sqlalchemy-utils: 0.34.2 -> 0.35.0

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    9e78d12 View commit details
  20. sourcehut.core: fix build

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    9051e28 View commit details
  21. sourcehut.gitsrht: build git-srht-shell

    eadwu authored and Jon committed Nov 4, 2019
    Copy the full SHA
    8fea620 View commit details
  22. cargo-geiger: init at 0.7.3

    evanjs authored and Jon committed Nov 4, 2019
    Copy the full SHA
    c49707f View commit details
  23. cargo-geiger: run tests; skip tests that require network connectivity

    - Add note on how we might be able to run all tests in the future
    evanjs authored and Jon committed Nov 4, 2019
    Copy the full SHA
    c6705f5 View commit details
  24. paperwork`: add missing dependency

    Jonathan Ringer committed Nov 4, 2019
    Copy the full SHA
    062a4d4 View commit details
  25. pythonPackages.pyglet: 1.3.2 -> 1.4.2

    c0deaddict authored and Jon committed Nov 4, 2019
    Copy the full SHA
    2d5aa98 View commit details
  26. pythonPackages.moderngl-window: init at 1.2.0

    c0deaddict authored and Jon committed Nov 4, 2019
    Copy the full SHA
    018f66f View commit details
  27. pythonPackages.py2bit: init at 0.3.0

    scalavision authored and Jon committed Nov 4, 2019
    Copy the full SHA
    e764c16 View commit details
  28. pythonPackages.pybigwig: init at 0.3.17

    scalavision authored and Jon committed Nov 4, 2019
    Copy the full SHA
    1994ed8 View commit details
  29. pythonPackages.deeptoolsIntervals: init at 0.1.9

    scalavision authored and Jon committed Nov 4, 2019
    Copy the full SHA
    f379992 View commit details
  30. deeptools: init at 3.3.1

    scalavision authored and Jon committed Nov 4, 2019
    Copy the full SHA
    d9b40f6 View commit details
Showing with 370 additions and 99 deletions.
  1. +99 −36 nixos/modules/virtualisation/qemu-vm.nix
  2. +1 −1 pkgs/applications/office/paperwork/default.nix
  3. +1 −1 pkgs/applications/radio/sdrangel/default.nix
  4. +42 −0 pkgs/applications/science/biology/deeptools/default.nix
  5. +2 −2 pkgs/applications/version-management/sourcehut/builds.nix
  6. +4 −2 pkgs/applications/version-management/sourcehut/core.nix
  7. +2 −2 pkgs/applications/version-management/sourcehut/dispatch.nix
  8. +12 −3 pkgs/applications/version-management/sourcehut/git.nix
  9. +2 −2 pkgs/applications/version-management/sourcehut/hg.nix
  10. +2 −2 pkgs/applications/version-management/sourcehut/meta.nix
  11. +2 −2 pkgs/applications/version-management/sourcehut/paste.nix
  12. +2 −2 pkgs/applications/version-management/sourcehut/scm.nix
  13. +2 −2 pkgs/applications/version-management/sourcehut/todo.nix
  14. +0 −29 pkgs/build-support/nix-prefetch-github/default.nix
  15. +2 −2 pkgs/data/fonts/liberation-sans-narrow/default.nix
  16. +28 −0 pkgs/development/python-modules/deeptoolsintervals/default.nix
  17. +38 −0 pkgs/development/python-modules/moderngl_window/default.nix
  18. +2 −2 pkgs/development/python-modules/nix-prefetch-github/default.nix
  19. +27 −0 pkgs/development/python-modules/py2bit/default.nix
  20. +3 −0 pkgs/development/python-modules/pyatmo/default.nix
  21. +33 −0 pkgs/development/python-modules/pybigwig/default.nix
  22. +2 −0 pkgs/development/python-modules/pyglet/default.nix
  23. +2 −2 pkgs/development/python-modules/sqlalchemy-utils/default.nix
  24. +2 −2 pkgs/development/tools/ocaml/ocp-indent/default.nix
  25. +39 −0 pkgs/development/tools/rust/cargo-geiger/default.nix
  26. +2 −2 pkgs/misc/vscode-extensions/cpptools/default.nix
  27. +2 −2 pkgs/servers/amqp/rabbitmq-server/default.nix
  28. +7 −1 pkgs/top-level/all-packages.nix
  29. +8 −0 pkgs/top-level/python-packages.nix
135 changes: 99 additions & 36 deletions nixos/modules/virtualisation/qemu-vm.nix
Original file line number Diff line number Diff line change
@@ -23,24 +23,56 @@ let

cfg = config.virtualisation;

qemuGraphics = lib.optionalString (!cfg.graphics) "-nographic";

consoles = lib.concatMapStringsSep " " (c: "console=${c}") cfg.qemu.consoles;

# XXX: This is very ugly and in the future we really should use attribute
# sets to build ALL of the QEMU flags instead of this mixed mess of Nix
# expressions and shell script stuff.
mkDiskIfaceDriveFlag = idx: driveArgs: let
inherit (cfg.qemu) diskInterface;
# The drive identifier created by incrementing the index by one using the
# shell.
drvId = "drive$((${idx} + 1))";
# NOTE: DO NOT shell escape, because this may contain shell variables.
commonArgs = "index=${idx},id=${drvId},${driveArgs}";
isSCSI = diskInterface == "scsi";
devArgs = "${diskInterface}-hd,drive=${drvId}";
args = "-drive ${commonArgs},if=none -device lsi53c895a -device ${devArgs}";
in if isSCSI then args else "-drive ${commonArgs},if=${diskInterface}";
driveOpts = { ... }: {

options = {

file = mkOption {
type = types.str;
description = "The file image used for this drive.";
};

driveExtraOpts = mkOption {
type = types.attrsOf types.str;
default = {};
description = "Extra options passed to drive flag.";
};

deviceExtraOpts = mkOption {
type = types.attrsOf types.str;
default = {};
description = "Extra options passed to device flag.";
};

};

};

driveCmdline = idx: { file, driveExtraOpts, deviceExtraOpts, ... }:
let
drvId = "drive${toString idx}";
mkKeyValue = generators.mkKeyValueDefault {} "=";
mkOpts = opts: concatStringsSep "," (mapAttrsToList mkKeyValue opts);
driveOpts = mkOpts (driveExtraOpts // {
index = idx;
id = drvId;
"if" = "none";
inherit file;
});
deviceOpts = mkOpts (deviceExtraOpts // {
drive = drvId;
});
device =
if cfg.qemu.diskInterface == "scsi" then
"-device lsi53c895a -device scsi-hd,${deviceOpts}"
else
"-device virtio-blk-pci,${deviceOpts}";
in
"-drive ${driveOpts} ${device}";

drivesCmdLine = drives: concatStringsSep " " (imap1 driveCmdline drives);

# Shell script to start the VM.
startVM =
@@ -77,13 +109,11 @@ let
''}
cd $TMPDIR
idx=2
extraDisks=""
idx=0
${flip concatMapStrings cfg.emptyDiskImages (size: ''
if ! test -e "empty$idx.qcow2"; then
${qemu}/bin/qemu-img create -f qcow2 "empty$idx.qcow2" "${toString size}M"
fi
extraDisks="$extraDisks ${mkDiskIfaceDriveFlag "$idx" "file=$(pwd)/empty$idx.qcow2,werror=report"}"
idx=$((idx + 1))
'')}
@@ -97,21 +127,7 @@ let
-virtfs local,path=/nix/store,security_model=none,mount_tag=store \
-virtfs local,path=$TMPDIR/xchg,security_model=none,mount_tag=xchg \
-virtfs local,path=''${SHARED_DIR:-$TMPDIR/xchg},security_model=none,mount_tag=shared \
${if cfg.useBootLoader then ''
${mkDiskIfaceDriveFlag "0" "file=$NIX_DISK_IMAGE,cache=writeback,werror=report"} \
${mkDiskIfaceDriveFlag "1" "file=$TMPDIR/disk.img,media=disk"} \
${if cfg.useEFIBoot then ''
-pflash $TMPDIR/bios.bin \
'' else ''
''}
'' else ''
${mkDiskIfaceDriveFlag "0" "file=$NIX_DISK_IMAGE,cache=writeback,werror=report"} \
-kernel ${config.system.build.toplevel}/kernel \
-initrd ${config.system.build.toplevel}/initrd \
-append "$(cat ${config.system.build.toplevel}/kernel-params) init=${config.system.build.toplevel}/init regInfo=${regInfo}/registration ${consoles} $QEMU_KERNEL_PARAMS" \
''} \
$extraDisks \
${qemuGraphics} \
${drivesCmdLine config.virtualisation.qemu.drives} \
${toString config.virtualisation.qemu.options} \
$QEMU_OPTS \
"$@"
@@ -367,6 +383,12 @@ in
'';
};

drives =
mkOption {
type = types.listOf (types.submodule driveOpts);
description = "Drives passed to qemu.";
};

diskInterface =
mkOption {
default = "virtio";
@@ -476,8 +498,49 @@ in

# FIXME: Consolidate this one day.
virtualisation.qemu.options = mkMerge [
(mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usb" "-device usb-tablet,bus=usb-bus.0" ])
(mkIf (pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64) [ "-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet" ])
(mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [
"-vga std" "-usb" "-device usb-tablet,bus=usb-bus.0"
])
(mkIf (pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64) [
"-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet"
])
(mkIf (!cfg.useBootLoader) [
"-kernel ${config.system.build.toplevel}/kernel"
"-initrd ${config.system.build.toplevel}/initrd"
''-append "$(cat ${config.system.build.toplevel}/kernel-params) init=${config.system.build.toplevel}/init regInfo=${regInfo}/registration ${consoles} $QEMU_KERNEL_PARAMS"''
])
(mkIf cfg.useEFIBoot [
"-pflash $TMPDIR/bios.bin"
])
(mkIf (!cfg.graphics) [
"-nographic"
])
];

virtualisation.qemu.drives = mkMerge [
(mkIf cfg.useBootLoader [
{
file = "$NIX_DISK_IMAGE";
driveExtraOpts.cache = "writeback";
driveExtraOpts.werror = "report";
}
{
file = "$TMPDIR/disk.img";
driveExtraOpts.media = "disk";
deviceExtraOpts.bootindex = "1";
}
])
(mkIf (!cfg.useBootLoader) [
{
file = "$NIX_DISK_IMAGE";
driveExtraOpts.cache = "writeback";
driveExtraOpts.werror = "report";
}
])
(imap0 (idx: _: {
file = "$(pwd)/empty${toString idx}.qcow2";
driveExtraOpts.werror = "report";
}) cfg.emptyDiskImages)
];

# Mount the host filesystem via 9P, and bind-mount the Nix store
2 changes: 1 addition & 1 deletion pkgs/applications/office/paperwork/default.nix
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ python3Packages.buildPythonApplication rec {
'';

propagatedBuildInputs = with python3Packages; [
paperwork-backend pypillowfight gtk3 cairo pyxdg dateutil setuptools
paperwork-backend pypillowfight gtk3 cairo pyxdg dateutil setuptools pandas
];

makeWrapperArgs = [
2 changes: 1 addition & 1 deletion pkgs/applications/radio/sdrangel/default.nix
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ let

in mkDerivation rec {
pname = "sdrangel";
version = "4.11.7";
version = "4.11.12";

src = fetchFromGitHub {
owner = "f4exb";
42 changes: 42 additions & 0 deletions pkgs/applications/science/biology/deeptools/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ lib
, python
}:
with python.pkgs;
buildPythonApplication rec {
pname = "deepTools";
version = "3.3.1";

src = fetchPypi {
inherit pname version;
sha256 = "08p36p9ncj5s8qf1r7h83x4rnmi63l3yk6mnr3wgpg2qgvwl0hji";
};

propagatedBuildInputs = [
numpy
numpydoc
scipy
py2bit
pybigwig
pysam
matplotlib
plotly
deeptoolsintervals
];

checkInputs = [ pytest ];

meta = with lib; {
homepage = "https://deeptools.readthedocs.io/en/develop";
description = "Tools for exploring deep DNA sequencing data";
longDescription = ''
deepTools contains useful modules to process the mapped reads data for multiple
quality checks, creating normalized coverage files in standard bedGraph and bigWig
file formats, that allow comparison between different files (for example, treatment and control).
Finally, using such normalized and standardized files, deepTools can create many
publication-ready visualizations to identify enrichments and for functional
annotations of the genome.
'';
license = licenses.gpl3;
maintainers = with maintainers; [ scalavision ];
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/sourcehut/builds.nix
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
, srht, redis, celery, pyyaml, markdown }:

let
version = "0.47.9";
version = "0.48.0";

buildWorker = src: buildGoModule {
inherit src version;
@@ -20,7 +20,7 @@ in buildPythonPackage rec {
src = fetchgit {
url = "https://git.sr.ht/~sircmpwn/builds.sr.ht";
rev = version;
sha256 = "1zgaba58svhksxb1pzz8bym9p0pm7fnxsj5k6jz86095xmfijp34";
sha256 = "1z5bxsn67cqffixqsrnska86mw0a6494650wbi6dbp10z03870bs";
};

patches = [
6 changes: 4 additions & 2 deletions pkgs/applications/version-management/sourcehut/core.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{ stdenv, fetchgit, fetchNodeModules, buildPythonPackage
, pgpy, flask, bleach, misaka, humanize, markdown, psycopg2, pygments, requests
, sqlalchemy, flask_login, beautifulsoup4, sqlalchemy-utils, celery, alembic
, importlib-metadata
, sassc, nodejs
, writeText }:

buildPythonPackage rec {
pname = "srht";
version = "0.54.3";
version = "0.54.4";

src = fetchgit {
url = "https://git.sr.ht/~sircmpwn/core.sr.ht";
rev = version;
sha256 = "1f4srhp5g6652anifs1vyijzi2v23l2rnfpf3x96j9r8rdap42rq";
sha256 = "0flxvn178hqd8ljz89ddis80zfnmzgimv4506w4dg2flbwzywy7z";
};

node_modules = fetchNodeModules {
@@ -47,6 +48,7 @@ buildPythonPackage rec {
# Unofficial runtime dependencies?
celery
alembic
importlib-metadata
];

PKGVER = version;
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/sourcehut/dispatch.nix
Original file line number Diff line number Diff line change
@@ -4,12 +4,12 @@

buildPythonPackage rec {
pname = "dispatchsrht";
version = "0.11.1";
version = "0.12.3";

src = fetchgit {
url = "https://git.sr.ht/~sircmpwn/dispatch.sr.ht";
rev = version;
sha256 = "1bi7vn0yr326mf2c63f2fahdlrx2c6a8d6p6bzy2ym2835qfcc0v";
sha256 = "0lpc8jpyz1rg3g98546wlhr27b15g32lds77hl42aixv5f5b8lc9";
};

patches = [
15 changes: 12 additions & 3 deletions pkgs/applications/version-management/sourcehut/git.nix
Original file line number Diff line number Diff line change
@@ -4,11 +4,19 @@
, srht, pygit2, scmsrht }:

let
version = "0.34.2";
version = "0.35.6";

buildShell = src: buildGoModule {
inherit src version;
pname = "git-srht-shell";
goPackagePath = "git.sr.ht/~sircmpwn/git.sr.ht/gitsrht-shell";

modSha256 = "1v4npijqgv09ssrxf1y1b3syb2fs7smy7k9rcj3ynsfrn9xgfd9y";
};

buildDispatcher = src: buildGoModule {
inherit src version;
pname = "git-sr-ht-dispatcher";
pname = "git-srht-dispatcher";
goPackagePath = "git.sr.ht/~sircmpwn/git.sr.ht/gitsrht-dispatch";

modSha256 = "1lmgmlin460g09dph2hw6yz25d4agqwjhrjv0qqsis7df9qpf3i1";
@@ -20,7 +28,7 @@ in buildPythonPackage rec {
src = fetchgit {
url = "https://git.sr.ht/~sircmpwn/git.sr.ht";
rev = version;
sha256 = "1z10r2d9x71n1n36g55j4cswh0dqnzmgj2qiy1h92wwgq8azpiyy";
sha256 = "0j8caqbzdqkgc1bdhzz4k5hgh8lhsghfgwf46d19ryf83d8ggxqc";
};

patches = [
@@ -42,6 +50,7 @@ in buildPythonPackage rec {

postInstall = ''
mkdir -p $out/bin
cp ${buildShell "${src}/gitsrht-shell"}/bin/gitsrht-shell $out/bin/gitsrht-shell
cp ${buildDispatcher "${src}/gitsrht-dispatch"}/bin/gitsrht-dispatch $out/bin/gitsrht-dispatch
'';

4 changes: 2 additions & 2 deletions pkgs/applications/version-management/sourcehut/hg.nix
Original file line number Diff line number Diff line change
@@ -4,12 +4,12 @@

buildPythonPackage rec {
pname = "hgsrht";
version = "0.16.0";
version = "0.16.2";

src = fetchhg {
url = "https://hg.sr.ht/~sircmpwn/hg.sr.ht";
rev = version;
sha256 = "0ncrj1cbls9ix2ig3qqwbzs6q6cmpqy3zs21p9fw3idfw703j3g0";
sha256 = "02bzy31zplnlqg8rcls5n65q1h920lhy6f51w89w1kskdw7r2mhy";
};

patches = [
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/sourcehut/meta.nix
Original file line number Diff line number Diff line change
@@ -5,12 +5,12 @@

buildPythonPackage rec {
pname = "metasrht";
version = "0.35.3";
version = "0.37.0";

src = fetchgit {
url = "https://git.sr.ht/~sircmpwn/meta.sr.ht";
rev = version;
sha256 = "1kcmlmdk9v59fr3r0g2q2gfkb735xza0wni9s942wh418dr66x2f";
sha256 = "1jf3h2v27cbam8bwiw3x35319pzp0r651p8mfhw150jvskyvmkmr";
};

nativeBuildInputs = srht.nativeBuildInputs;
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/sourcehut/paste.nix
Original file line number Diff line number Diff line change
@@ -4,12 +4,12 @@

buildPythonPackage rec {
pname = "pastesrht";
version = "0.7.1";
version = "0.7.3";

src = fetchgit {
url = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
rev = version;
sha256 = "19y9ghhi4llyg7kd3a888gbjc698vdamin4hb8dk1j6pd2f0qmjp";
sha256 = "15689gk37djcwdjb636d97k0il2zpdpksb95l9l4d43wipd7x5qi";
};

patches = [
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/sourcehut/scm.nix
Original file line number Diff line number Diff line change
@@ -4,12 +4,12 @@

buildPythonPackage rec {
pname = "scmsrht";
version = "0.15.3";
version = "0.16.0";

src = fetchgit {
url = "https://git.sr.ht/~sircmpwn/scm.sr.ht";
rev = version;
sha256 = "1rzm3r280211w51sjngm5a3pdlzg07c64324k99bqs1fkc2yrfy6";
sha256 = "0jny8ihn49n7bpw5nhdrfha78yzpxp277l50y1lj142r59kwmh22";
};

nativeBuildInputs = srht.nativeBuildInputs;
Loading