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: 12457c77f4e5
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: 8b7f33b4e35a
Choose a head ref
  • 14 commits
  • 11 files changed
  • 11 contributors

Commits on Dec 3, 2018

  1. bloop: 1.0.0 -> 1.1.0

    Tomahna committed Dec 3, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    57ec5d0 View commit details

Commits on Dec 4, 2018

  1. noto-fonts: update 2017-10-24 -> 2018-11-30

    Signed-off-by: Cole Mickens <cole.mickens@gmail.com>
    colemickens committed Dec 4, 2018
    Copy the full SHA
    d13f9de View commit details

Commits on Dec 6, 2018

  1. Verified

    This commit was signed with the committer’s verified signature.
    mrgrain Momo Kornher
    Copy the full SHA
    129502e View commit details
  2. octoprint: 1.3.8 -> 1.3.9

    At the same time, clean up how we handle dependencies (shamelessly stolen from
    home-assistant) and override version constraints.
    peterhoeg committed Dec 6, 2018
    Copy the full SHA
    547cd5b View commit details
  3. atom, atom-beta: Fixing Exec= line in app launcher

    Prior to this commit the application launchers of Atom and Atom Beta executed `/usr/bin/${pname}` instead of what it is meant to `$out/bin/${pname}`. This is because upstream changed the `Exec=` line from `Exec=/usr/share/${pname}/${pname}` to `Exec=/usr/bin/${pname}` and the `substituteInPlace` line that was in the default.nix file was not appropriately adjusted.
    fusion809 authored Dec 6, 2018
    Copy the full SHA
    d354f7c View commit details
  4. octoprint-mqtt: init at 0.8.0

    At the same time:
    
     - build plugins against python2 as that is what octoprint uses
     - do not run checks are there aren't any
     - use buildPythonPackage as these are not applications
    peterhoeg committed Dec 6, 2018
    Copy the full SHA
    f9fc51c View commit details
  5. Merge pull request #51440 from Tomahna/bloop

    bloop: 1.0.0 -> 1.1.0
    srhb authored Dec 6, 2018
    Copy the full SHA
    01389f1 View commit details
  6. Merge pull request #51610 from peterhoeg/u/octo

    octoprint: 1.3.8 -> 1.3.9
    dotlambda authored Dec 6, 2018
    Copy the full SHA
    b8c76cb View commit details
  7. pyflame: also install flame-chart-json

    This is useful to use chrome's flamechart viewer.
    Mic92 committed Dec 6, 2018
    Copy the full SHA
    6b9bcfe View commit details
  8. Merge pull request #51619 from Mic92/pyflame

    pyflame: also install flame-chart-json
    Mic92 authored Dec 6, 2018
    Copy the full SHA
    d74d9c0 View commit details
  9. Copy the full SHA
    0d649c8 View commit details
  10. Merge pull request #51605 from fusion809/patch-8

    atom, atom-beta: Fixing Exec= line in app launcher
    worldofpeace authored Dec 6, 2018
    Copy the full SHA
    dd345c8 View commit details
  11. assaultcube: correct version

    davidak authored and worldofpeace committed Dec 6, 2018
    Copy the full SHA
    bb0214c View commit details
  12. Merge pull request #51500 from colemickens/noto

    noto-fonts: update 2017-10-24 -> 2018-11-30
    worldofpeace authored Dec 6, 2018
    Copy the full SHA
    8b7f33b View commit details
3 changes: 1 addition & 2 deletions pkgs/applications/editors/atom/default.nix
Original file line number Diff line number Diff line change
@@ -44,8 +44,7 @@ let
buildCommand = ''
mkdir -p $out/usr/
ar p $src data.tar.xz | tar -C $out -xJ ./usr
substituteInPlace $out/usr/share/applications/${pname}.desktop \
--replace /usr/share/${pname} $out/bin
sed -i -e "s|Exec=.*$|Exec=$out/bin/${pname}|" $out/usr/share/applications/${pname}.desktop
mv $out/usr/* $out/
rm -r $out/share/lintian
rm -r $out/usr/
149 changes: 51 additions & 98 deletions pkgs/applications/misc/octoprint/default.nix
Original file line number Diff line number Diff line change
@@ -1,91 +1,62 @@
{ stdenv, fetchFromGitHub, python2 }:
{ stdenv, lib, fetchFromGitHub, python2 }:

let

pythonPackages = python2.pkgs.override {
overrides = self: super: with self; {
backports_ssl_match_hostname = super.backports_ssl_match_hostname.overridePythonAttrs (oldAttrs: rec {
version = "3.4.0.2";
src = oldAttrs.src.override {
inherit version;
sha256 = "07410e7fb09aab7bdaf5e618de66c3dac84e2e3d628352814dc4c37de321d6ae";
};
});

flask = super.flask.overridePythonAttrs (oldAttrs: rec {
version = "0.12.4";
src = oldAttrs.src.override {
inherit version;
sha256 = "2ea22336f6d388b4b242bc3abf8a01244a8aa3e236e7407469ef78c16ba355dd";
};
});

tornado = buildPythonPackage rec {
pname = "tornado";
version = "4.0.2";

propagatedBuildInputs = [ backports_ssl_match_hostname certifi ];

src = fetchPypi {
inherit pname version;
sha256 = "1yhvn8i05lp3b1953majg48i8pqsyj45h34aiv59hrfvxcj5234h";
};
};

flask_login = buildPythonPackage rec {
pname = "Flask-Login";
version = "0.2.2";

src = fetchPypi {
inherit pname version;
sha256 = "09ygn0r3i3jz065a5psng6bhlsqm78msnly4z6x39bs48r5ww17p";
};

propagatedBuildInputs = [ flask ];
checkInputs = [ nose ];

# No tests included
doCheck = false;
};

jinja2 = buildPythonPackage rec {
pname = "Jinja2";
version = "2.8.1";

src = fetchPypi {
inherit pname version;
sha256 = "14aqmhkc9rw5w0v311jhixdm6ym8vsm29dhyxyrjfqxljwx1yd1m";
};

propagatedBuildInputs = [ markupsafe ];

# No tests included
doCheck = false;
};

pylru = super.pylru.overridePythonAttrs (oldAttrs: rec {
version = "1.0.9";
mkOverride = attrname: version: sha256:
self: super: {
${attrname} = super.${attrname}.overridePythonAttrs (oldAttrs: {
inherit version;
src = oldAttrs.src.override {
inherit version;
sha256 = "71376192671f0ad1690b2a7427d39a29b1df994c8469a9b46b03ed7e28c0172c";
inherit version sha256;
};
});
};

py = python2.override {
packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) ([
(mkOverride "flask" "0.10.1" "0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc")
(mkOverride "flask_login" "0.2.11" "1rg3rsjs1gwi2pw6vr9jmhaqm9b3vc9c4hfcsvp4y8agbh7g3mc3")
(mkOverride "jinja2" "2.8.1" "14aqmhkc9rw5w0v311jhixdm6ym8vsm29dhyxyrjfqxljwx1yd1m")
(mkOverride "pylru" "1.0.9" "0b0pq0l7xv83dfsajsc49jcxzc99kb9jfx1a1dlx22hzcy962dvi")
(mkOverride "sarge" "0.1.4" "08s8896973bz1gg0pkr592w6g4p6v47bkfvws5i91p9xf8b35yar")
(mkOverride "tornado" "4.5.3" "02jzd23l4r6fswmwxaica9ldlyc2p6q8dk6dyff7j58fmdzf853d")
]);
};

in pythonPackages.buildPythonApplication rec {
ignoreVersionConstraints = [
"Click"
"Flask-Assets"
"Flask-Babel"
"Flask-Principal"
"PyYAML"
"emoji"
"flask"
"future"
"futures"
"pkginfo"
"psutil"
"pyserial"
"python-dateutil"
"requests"
"rsa"
"scandir"
"semantic_version"
"websocket-client"
"werkzeug"
"wrapt"
];

in py.pkgs.buildPythonApplication rec {
pname = "OctoPrint";
version = "1.3.8";
version = "1.3.9";

src = fetchFromGitHub {
owner = "foosel";
repo = "OctoPrint";
rev = version;
sha256 = "00zd5yrlihwfd3ly0mxibr77ffa8r8vkm6jhml2ml43dqb99caa3";
owner = "foosel";
repo = "OctoPrint";
rev = version;
sha256 = "1yqbsfmkx4wiykjrh66a05lhn15qhpc9ay67l37kv8bhdqf2xkj4";
};

# We need old Tornado
propagatedBuildInputs = with pythonPackages; [
propagatedBuildInputs = with py.pkgs; [
awesome-slugify flask_assets rsa requests pkginfo watchdog
semantic-version flask_principal werkzeug flaskbabel tornado
psutil pyserial flask_login netaddr markdown sockjs-tornado
@@ -94,31 +65,13 @@ in pythonPackages.buildPythonApplication rec {
frozendict
];

checkInputs = with pythonPackages; [ nose mock ddt ];
checkInputs = with py.pkgs; [ nose mock ddt ];

# Jailbreak dependencies.
postPatch = ''
sed -i \
-e 's,pkginfo>=[^"]*,pkginfo,g' \
-e 's,Flask-Principal>=[^"]*,Flask-Principal,g' \
-e 's,websocket-client>=[^"]*,websocket-client,g' \
-e 's,Click>=[^"]*,Click,g' \
-e 's,rsa>=[^"]*,rsa,g' \
-e 's,flask>=[^"]*,flask,g' \
-e 's,Flask-Babel>=[^"]*,Flask-Babel,g' \
-e 's,Flask-Assets>=[^"]*,Flask-Assets,g' \
-e 's,PyYAML>=[^"]*,PyYAML,g' \
-e 's,scandir>=[^"]*,scandir,g' \
-e 's,werkzeug>=[^"]*,werkzeug,g' \
-e 's,psutil==[^"]*,psutil,g' \
-e 's,requests>=[^"]*,requests,g' \
-e 's,future>=[^"]*,future,g' \
-e 's,pyserial>=[^"]*,pyserial,g' \
-e 's,semantic_version>=[^"]*,semantic_version,g' \
-e 's,wrapt>=[^"]*,wrapt,g' \
-e 's,python-dateutil>=[^"]*,python-dateutil,g' \
-e 's,emoji>=[^"]*,emoji,g' \
-e 's,futures>=[^"]*,futures,g' \
sed -r -i \
${lib.concatStringsSep "\n" (map (e:
''-e 's@${e}[<>=]+.*@${e}",@g' \''
) ignoreVersionConstraints)}
setup.py
'';

30 changes: 27 additions & 3 deletions pkgs/applications/misc/octoprint/plugins.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{ stdenv, fetchFromGitHub, octoprint, pythonPackages }:
{ stdenv, fetchFromGitHub, octoprint, python2Packages }:

let
buildPlugin = args: pythonPackages.buildPythonApplication (args // {
buildInputs = (args.buildInputs or []) ++ [ octoprint ];
buildPlugin = args: python2Packages.buildPythonPackage (args // {
propagatedBuildInputs = (args.propagatedBuildInputs or []) ++ [ octoprint ];
# none of the following have tests
doCheck = false;
});

self = {
@@ -42,6 +44,28 @@ let
};
};

mqtt = buildPlugin rec {
name = "OctoPrint-MQTT-${version}";
version = "0.8.0";

src = fetchFromGitHub {
owner = "OctoPrint";
repo = "OctoPrint-MQTT";
rev = version;
sha256 = "1318pgwy39gkdqgll3q5lwm7avslgdwyiwb5v8m23cgyh5w8cjq7";
};

propagatedBuildInputs = with python2Packages; [ paho-mqtt ];

meta = with stdenv.lib; {
homepage = https://github.com/OctoPrint/OctoPrint-MQTT;
description = "Publish printer status MQTT";
platforms = platforms.all;
license = licenses.agpl3;
maintainers = with maintainers; [ peterhoeg ];
};
};

titlestatus = buildPlugin rec {
name = "OctoPrint-TitleStatus-${version}";
version = "0.0.4";
11 changes: 7 additions & 4 deletions pkgs/data/fonts/noto-fonts/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,14 @@

let
mkNoto = { name, weights, sha256, }:
let version = "2017-10-24-phase3-second-cleanup"; in
let
version = "2018-11-30";
ref = "85e78f831469323c85847e23f95026c894159135";
in
fetchzip {
name = "${name}-${version}";
inherit sha256;
url = "https://github.com/googlei18n/noto-fonts/archive/v${version}.zip";
url = "https://github.com/googlei18n/noto-fonts/archive/${ref}.zip";
postFetch = ''
unzip $downloadedFile
mkdir -p $out/share/fonts/noto
@@ -47,12 +50,12 @@ rec {
noto-fonts = mkNoto {
name = "noto-fonts";
weights = "{Regular,Bold,Light,Italic,BoldItalic,LightItalic}";
sha256 = "1dmarbsfank6xzzx31h5jdv6n99rzblqyb1iqjkpll6dl3627pnb";
sha256 = "0kvq5ldip2ra2njlxg9fxj46nfqzq5l3n359d3kwfbsld7hixm2d";
};
noto-fonts-extra = mkNoto {
name = "noto-fonts-extra";
weights = "{Black,Condensed,Extra,Medium,Semi,Thin}*";
sha256 = "1lih49bqmsmblczvbl7qb1bhn0bq8v5xkr991b3gjghpdkx584bc";
sha256 = "0l94aiy1b3qirg2mmbagbr0014vqk32za79pzck1acy2hgy716kq";
};
noto-fonts-cjk = let version = "1.004"; in fetchzip {
name = "noto-fonts-cjk-${version}";
10 changes: 4 additions & 6 deletions pkgs/development/python-modules/flask-login/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonAtLeast
{ stdenv, buildPythonPackage, fetchPypi, pythonAtLeast
, flask, blinker, nose, mock, semantic-version }:

buildPythonPackage rec {
pname = "Flask-Login";
version = "0.4.1";

src = fetchFromGitHub {
owner = "maxcountryman";
repo = "flask-login";
rev = version;
sha256 = "1rj0qwyxapxnp84fi4lhmvh3d91fdiwz7hibw77x3d5i72knqaa9";
src = fetchPypi {
inherit pname version;
sha256 = "1v2j8zd558xfmgn3rfbw0xz4vizjcnk8kqw52q4f4d9ygfnc25f8";
};

checkInputs = [ nose mock semantic-version ];
4 changes: 2 additions & 2 deletions pkgs/development/tools/build-managers/bloop/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

let
baseName = "bloop";
version = "1.0.0";
version = "1.1.0";
deps = stdenv.mkDerivation {
name = "${baseName}-deps-${version}";
buildCommand = ''
@@ -16,7 +16,7 @@ let
'';
outputHashMode = "recursive";
outputHashAlgo = "sha256";
outputHash = "0dgllwv9rjvpzvlbwwiynmfp15j2x48al7cb5rlmhq0an3q81hbh";
outputHash = "090ig5k1bd3pv4i8x6byyf9wda1430xysnbcllflcz6cf2ccjy2k";
};
in
stdenv.mkDerivation rec {
14 changes: 11 additions & 3 deletions pkgs/development/tools/profiling/pyflame/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{ stdenv, fetchFromGitHub, autoreconfHook, coreutils, pkgconfig
# pyflame needs one python version per ABI
# are currently supported
# are currently supported
# * 2.6 or 2.7 for 2.x ABI
# * 3.4 or 3.5 for 3.{4,5} ABI
# * 3.6 for 3.6+ ABI
# if you want to disable support for some ABI, make the corresponding argument null
, python2, python35, python36
, python2, python35, python36, python3
}:
stdenv.mkDerivation rec {
pname = "pyflame";
version = "1.6.7";
version = "1.6.7";
src = fetchFromGitHub {
owner = "uber";
repo = "pyflame";
@@ -25,6 +25,14 @@ stdenv.mkDerivation rec {
# some tests will fail in the sandbox
substituteInPlace tests/test_end_to_end.py \
--replace 'skipif(IS_DOCKER' 'skipif(True'
# don't use patchShebangs here to be explicit about the python version
substituteInPlace utils/flame-chart-json \
--replace '#!usr/bin/env python' '#!${python3.interpreter}'
'';

postInstall = ''
install -D utils/flame-chart-json $out/bin/flame-chart-json
'';

doCheck = true;
3 changes: 1 addition & 2 deletions pkgs/games/assaultcube/default.nix
Original file line number Diff line number Diff line change
@@ -8,8 +8,7 @@ stdenv.mkDerivation rec {

# master branch has legacy (1.2.0.2) protocol 1201 and gcc 6 fix.
pname = "assaultcube";
version = "01052017";
name = "${pname}-${version}";
version = "unstable-2017-05-01";

meta = {
description = "Fast and fun first-person-shooter based on the Cube fps";
30 changes: 30 additions & 0 deletions pkgs/tools/networking/qr-filetransfer/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
name = "qr-filetransfer-unstable-${version}";
version = "2018-10-22";

goPackagePath = "github.com/claudiodangelis/qr-filetransfer";

src = fetchFromGitHub {
rev = "b1e5b91aa2aa469f870c62074e879d46e353edae";
owner = "claudiodangelis";
repo = "qr-filetransfer";
sha256 = "04cl3v6bzpaxp1scpsa42xxa1c1brbplq408bb7nixa98bacj4x1";
};

goDeps = ./deps.nix;

meta = with stdenv.lib; {
homepage = https://github.com/claudiodangelis/qr-filetransfer;
description = "Transfer files over wifi by scanning a QR code from your terminal";
longDescription = ''
qr-filetransfer binds a web server to the address of your Wi-Fi network
interface on a random port and creates a handler for it. The default
handler serves the content and exits the program when the transfer is
complete.
'';
license = licenses.mit;
maintainers = with maintainers; [ fgaz ];
};
}
Loading