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: ebc9620c3f62
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: 61cc1f0dc07c
Choose a head ref
  • 10 commits
  • 10 files changed
  • 6 contributors

Commits on Mar 1, 2020

  1. smartmontools: 7.0 -> 7.1 and devicedb updated to latest

    (cherry picked from commit 38b0c55)
    Frostman committed Mar 1, 2020
    Copy the full SHA
    5d19f24 View commit details
  2. smartmontools: add Frostman to maintainers

    (cherry picked from commit e85f0a8)
    Frostman committed Mar 1, 2020
    Copy the full SHA
    c961031 View commit details
  3. nixos/pantheon: add docs

    (cherry picked from commit 3be0457)
    worldofpeace committed Mar 1, 2020
    Copy the full SHA
    ea4f8e8 View commit details
  4. pythonPackages.swagger-spec-validator 2.4.3 -> 2.5.0

    Includes various upstream fixes of the tests, see
    
    * Yelp/swagger_spec_validator#117
    * Yelp/swagger_spec_validator#121
    
    (cherry picked from commit efa2515)
    vanschelven authored and Jon committed Mar 1, 2020
    Copy the full SHA
    a8c2c1d View commit details
  5. doc/xfce: remove trailing code

    (cherry picked from commit b7b46d0)
    worldofpeace committed Mar 1, 2020
    Copy the full SHA
    ae0edff View commit details
  6. androidenv: add platform SDK 29

    (cherry picked from commit f5d8e5d92bd4edd2873d0c116ce8db372287a3cf)
    svanderburg committed Mar 1, 2020
    Copy the full SHA
    760dc68 View commit details
  7. titaniumenv: add Titanium SDK 8.3

    (cherry picked from commit c5a6a2ae5ead4249486c78d758c123ed8acfd8a9)
    svanderburg committed Mar 1, 2020
    Copy the full SHA
    698f5db View commit details
  8. Merge pull request #81423 from Frostman/20.03-smartmontools-7.1

    [20.03] smartmontools: 7.0 -> 7.1 and devicedb updated to latest
    worldofpeace authored Mar 1, 2020
    Copy the full SHA
    f0ad76b View commit details

Commits on Mar 2, 2020

  1. Copy the full SHA
    e1dd2c6 View commit details
  2. riot-web: mention incompatible config change in release notes

    Mention the changes introduced in commit c9e5cca.
    
    GitHub: closes #81416
    (cherry picked from commit 6d4fd13)
    pacien authored and rnhmjoj committed Mar 2, 2020
    Copy the full SHA
    61cc1f0 View commit details
1 change: 0 additions & 1 deletion nixos/doc/manual/configuration/xfce.xml
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@
<programlisting>
<xref linkend="opt-services.xserver.desktopManager.xfce.enable" /> = true;
<xref linkend="opt-services.xserver.displayManager.defaultSession" /> = "xfce";
};
</programlisting>
</para>
<para>
10 changes: 10 additions & 0 deletions nixos/doc/manual/release-notes/rl-2003.xml
Original file line number Diff line number Diff line change
@@ -881,6 +881,16 @@ auth required pam_succeed_if.so uid >= 1000 quiet
</citerefentry>-script now uses the python test-driver.
</para>
</listitem>
<listitem>
<para>
The <package>riot-web</package> package now accepts configuration overrides as an attribute set instead of a string.
A formerly used JSON configuration can be converted to an attribute set with <literal>builtins.fromJSON</literal>.
</para>
<para>
The new default configuration also disables automatic guest account registration and analytics to improve privacy.
The previous behavior can be restored by setting <literal>config.riot-web.conf = { disable_guests = false; piwik = true; }</literal>.
</para>
</listitem>
</itemizedlist>
</section>

5 changes: 4 additions & 1 deletion nixos/modules/services/x11/desktop-managers/pantheon.nix
Original file line number Diff line number Diff line change
@@ -16,7 +16,10 @@ in

{

meta.maintainers = pkgs.pantheon.maintainers;
meta = {
doc = ./pantheon.xml;
maintainers = pkgs.pantheon.maintainers;
};

options = {

130 changes: 130 additions & 0 deletions nixos/modules/services/x11/desktop-managers/pantheon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:id="chap-pantheon">
<title>Pantheon Destkop</title>
<para>
Pantheon is the desktop environment created for the elementary OS distribution. It is written from scratch in Vala, utilizing GNOME technologies with GTK 3 and Granite.
</para>
<section xml:id="sec-pantheon-enable">
<title>Enabling Pantheon</title>

<para>
All of Pantheon is working in NixOS and the applications should be available, aside from a few <link xlink:href="https://github.com/NixOS/nixpkgs/issues/58161">exceptions</link>. To enable Pantheon, set
<programlisting>
<xref linkend="opt-services.xserver.desktopManager.pantheon.enable"/> = true;
</programlisting>
This automatically enables LightDM and Pantheon's LightDM greeter. If you'd like to disable this, set
<programlisting>
<xref linkend="opt-services.xserver.displayManager.lightdm.greeters.pantheon.enable"/> = false;
<xref linkend="opt-services.xserver.displayManager.lightdm.enable"/> = false;
</programlisting>
but please be aware using Pantheon without LightDM as a display manager will break screenlocking from the UI. The NixOS module for Pantheon installs all of Pantheon's default applications. If you'd like to not install Pantheon's apps, set
<programlisting>
<xref linkend="opt-services.pantheon.apps.enable"/> = false;
</programlisting>
You can also use <xref linkend="opt-environment.pantheon.excludePackages"/> to remove any other app (like <package>geary</package>).
</para>
</section>
<section xml:id="sec-pantheon-wingpanel-switchboard">
<title>Wingpanel and Switchboard plugins</title>

<para>
Wingpanel and Switchboard work differently than they do in other distributions, as far as using plugins. You cannot install a plugin globally (like with <option>environment.systemPackages</option>) to start using it. You should instead be using the following options:
<itemizedlist>
<listitem>
<para>
<xref linkend="opt-services.xserver.desktopManager.pantheon.extraWingpanelIndicators"/>
</para>
</listitem>
<listitem>
<para>
<xref linkend="opt-services.xserver.desktopManager.pantheon.extraSwitchboardPlugs"/>
</para>
</listitem>
</itemizedlist>
to configure the programs with plugs or indicators.
</para>

<para>
The difference in NixOS is both these programs are patched to load plugins from a directory that is the value of an environment variable. All of which is controlled in Nix. If you need to configure the particular packages manually you can override the packages like:
<programlisting>
wingpanel-with-indicators.override {
indicators = [
pkgs.some-special-indicator
];
};

switchboard-with-plugs.override {
plugs = [
pkgs.some-special-plug
];
};
</programlisting>
please note that, like how the NixOS options describe these as extra plugins, this would only add to the default plugins included with the programs. If for some reason you'd like to configure which plugins to use exactly, both packages have an argument for this:
<programlisting>
wingpanel-with-indicators.override {
useDefaultIndicators = false;
indicators = specialListOfIndicators;
};

switchboard-with-plugs.override {
useDefaultPlugs = false;
plugs = specialListOfPlugs;
};
</programlisting>
this could be most useful for testing a particular plug-in in isolation.
</para>
</section>
<section xml:id="sec-pantheon-faq">
<title>FAQ</title>

<variablelist>
<varlistentry xml:id="sec-pantheon-faq-messed-up-theme">
<term>
I have switched from a different desktop and Pantheon’s theming looks messed up.
</term>
<listitem>
<para>
Open Switchboard and go to: <guilabel>Administration</guilabel> → <guilabel>About</guilabel> → <guilabel>Restore Default Settings</guilabel> → <guibutton>Restore Settings</guibutton>. This will reset any dconf settings to their Pantheon defaults. Note this could reset certain GNOME specific preferences if that desktop was used prior.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="sec-pantheon-faq-slow-shutdown">
<term>
Using Pantheon sometimes makes my shutdown take a long time.
</term>
<listitem>
<para>
We have not yet determined what processes fight with systemd during shutdown, there are many reports. In elementary OS the default system timeout is lowered to lessen the impact of the issue. If you'd like to do this in NixOS, set
<programlisting>
<xref linkend="opt-systemd.extraConfig"/> = ''
DefaultTimeoutStopSec=10s
DefaultTimeoutStartSec=10s
'';
</programlisting>
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="sec-pantheon-faq-gnome3-and-pantheon">
<term>
I cannot enable both GNOME 3 and Pantheon.
</term>
<listitem>
<para>
This is a known <link xlink:href="https://github.com/NixOS/nixpkgs/issues/64611">issue</link> and there is no known workaround.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="sec-pantheon-faq-appcenter">
<term>
Does AppCenter work, or is it available?
</term>
<listitem>
<para>
AppCenter has been available since 20.03, but it is of little use. This is because there is no functioning PackageKit backend for Nix 2.0. In the near future you will be able to install Flatpak applications from AppCenter on NixOS. See this <link xlink:href="https://github.com/NixOS/nixpkgs/issues/70214">issue</link>.
</para>
</listitem>
</varlistentry>
</variablelist>
</section>
</chapter>
17 changes: 17 additions & 0 deletions pkgs/development/mobile/androidenv/generated/packages.nix
Original file line number Diff line number Diff line change
@@ -1504,6 +1504,23 @@
};
};

"platforms"."29" = {

name = "platforms";
path = "platforms/android-29";
revision = "29";
displayName = "Android SDK Platform 29";
archives = {

all = fetchurl {
url = https://dl.google.com/android/repository/platform-29_r03.zip;
sha1 = "670e2e104333dae90e16ea3b615f0b63da5883ae";
};

};
};


"platforms"."3" = {

name = "platforms";
3 changes: 2 additions & 1 deletion pkgs/development/mobile/titaniumenv/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{pkgs, androidenv, xcodeenv, tiVersion ? "8.2.1.GA"}:
{pkgs, androidenv, xcodeenv, tiVersion ? "8.3.2.GA"}:

rec {
titaniumsdk = let
titaniumSdkFile = if tiVersion == "8.2.1.GA" then ./titaniumsdk-8.2.nix
else if tiVersion == "7.5.1.GA" then ./titaniumsdk-7.5.nix
else if tiVersion == "8.3.2.GA" then ./titaniumsdk-8.3.nix
else throw "Titanium version not supported: "+tiVersion;
in
import titaniumSdkFile {
97 changes: 97 additions & 0 deletions pkgs/development/mobile/titaniumenv/titaniumsdk-8.3.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{stdenv, fetchurl, unzip, makeWrapper}:

let
# Gradle is a build system that bootstraps itself. This is what it actually
# downloads in the bootstrap phase.
gradleAllZip = fetchurl {
url = http://services.gradle.org/distributions/gradle-4.1-all.zip;
sha256 = "1rcrh263vq7a0is800y5z36jj97p67c6zpqzzfcbr7r0qaxb61sw";
};

# A Titanium-Android build requires proguard plugins. We create a fake
# repository so that Gradle does not attempt to download them in the builder.
# Since there are only 3 plugins required, this is still (sort of) manageable
# without a generator.
proguardVersion = "5.3.3";

proguardGradlePOM = fetchurl {
url = "https://repo1.maven.org/maven2/net/sf/proguard/proguard-gradle/${proguardVersion}/proguard-gradle-${proguardVersion}.pom";
sha256 = "03v9zm3ykfkyb5cs5ald07ph103fh68d5c33rv070r29p71dwszj";
};
proguardGradleJAR = fetchurl {
url = "https://repo1.maven.org/maven2/net/sf/proguard/proguard-gradle/${proguardVersion}/proguard-gradle-${proguardVersion}.jar";
sha256 = "0shhpsjfc5gam15jnv1hk718v5c7vi7dwdc3gvmnid6dc85kljzk";
};
proguardParentPOM = fetchurl {
url = "https://repo1.maven.org/maven2/net/sf/proguard/proguard-parent/${proguardVersion}/proguard-parent-${proguardVersion}.pom";
sha256 = "0mv0zbwyw8xa4mkc5kw69y5xqashkz9gp123akfvh9f6152l3202";
};
proguardBasePOM = fetchurl {
url = "https://repo1.maven.org/maven2/net/sf/proguard/proguard-base/${proguardVersion}/proguard-base-${proguardVersion}.pom";
sha256 = "1jnr6zsxfimb8wglqlwa6rrdc3g3nqf1dyw0k2dq9cj0q4pgn7p5";
};
proguardBaseJAR = fetchurl {
url = "https://repo1.maven.org/maven2/net/sf/proguard/proguard-base/${proguardVersion}/proguard-base-${proguardVersion}.jar";
sha256 = "11nwdb9y84cghcx319nsjjf9m035s4s1184zrhzpvaxq2wvqhbhx";
};

# Put the downloaded plugins in a fake Maven repository
fakeMavenRepo = stdenv.mkDerivation {
name = "fake-maven-repo";
buildCommand = ''
mkdir -p $out
cd $out
mkdir -p net/sf/proguard/proguard-gradle/${proguardVersion}
cp ${proguardGradlePOM} net/sf/proguard/proguard-gradle/${proguardVersion}/proguard-gradle-${proguardVersion}.pom
cp ${proguardGradleJAR} net/sf/proguard/proguard-gradle/${proguardVersion}/proguard-gradle-${proguardVersion}.jar
mkdir -p net/sf/proguard/proguard-parent/${proguardVersion}
cp ${proguardParentPOM} net/sf/proguard/proguard-parent/${proguardVersion}/proguard-parent-${proguardVersion}.pom
mkdir -p net/sf/proguard/proguard-base/${proguardVersion}
cp ${proguardBasePOM} net/sf/proguard/proguard-base/${proguardVersion}/proguard-base-${proguardVersion}.pom
cp ${proguardBaseJAR} net/sf/proguard/proguard-base/${proguardVersion}/proguard-base-${proguardVersion}.jar
'';
};
in
stdenv.mkDerivation {
name = "mobilesdk-8.3.2.GA";
src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") then fetchurl {
url = https://builds.appcelerator.com/mobile/8_3_X/mobilesdk-8.3.2.v20200117111803-linux.zip;
sha256 = "04pfw21jrx9w259lphynwykqjk4c9hm0zix4d40s7mf8mmh3xdx9";
}
else if stdenv.system == "x86_64-darwin" then fetchurl {
url = https://builds.appcelerator.com/mobile/8_3_X/mobilesdk-8.3.2.v20200117111803-osx.zip;
sha256 = "1zflq5hc96lrriw71ya623kkskkisi9yayg8qs03zimi0gksizxw";
}
else throw "Platform: ${stdenv.system} not supported!";

buildInputs = [ unzip makeWrapper ];

buildCommand = ''
mkdir -p $out
cd $out
unzip $src
# Rename ugly version number
cd mobilesdk/*
mv * 8.3.2.GA
cd *
# Patch bundled gradle build infrastructure to make shebangs work
patchShebangs android/templates/gradle
# Substitute the gradle-all zip URL by a local file to prevent downloads from happening while building an Android app
sed -i -e "s|distributionUrl=|#distributionUrl=|" android/templates/gradle/gradle/wrapper/gradle-wrapper.properties
cp ${gradleAllZip} android/templates/gradle/gradle/wrapper/gradle-4.1-all.zip
echo "distributionUrl=gradle-4.1-all.zip" >> android/templates/gradle/gradle/wrapper/gradle-wrapper.properties
# Patch maven central repository with our own local directory. This prevents the builder from downloading Maven artifacts
sed -i -e 's|mavenCentral()|maven { url "${fakeMavenRepo}" }|' android/templates/build/proguard.gradle
${stdenv.lib.optionalString (stdenv.system == "x86_64-darwin") ''
# Patch the strip frameworks script in the iPhone build template to not let
# it skip the strip phase. This is caused by an assumption on the file
# permissions in which Nix deviates from the standard.
sed -i -e "s|-perm +111|-perm /111|" iphone/templates/build/strip-frameworks.sh
''}
'';
}
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

buildPythonPackage rec {
pname = "swagger-spec-validator";
version = "2.4.3";
version = "2.5.0";

src = fetchFromGitHub {
owner = "Yelp";
repo = "swagger_spec_validator";
rev = "v" + version;
sha256 = "02f8amc6iq2clxxmrz8hirbb57sizaxijp0higqy16shk63ibalw";
sha256 = "0qlkiyncdh7cdyjvnwjpv9i7y75ghwnpyqkkpfaa8hg698na13pw";
};

checkInputs = [
7 changes: 3 additions & 4 deletions pkgs/tools/misc/youtube-dl/default.nix
Original file line number Diff line number Diff line change
@@ -18,11 +18,11 @@ buildPythonPackage rec {
# The websites youtube-dl deals with are a very moving target. That means that
# downloads break constantly. Because of that, updates should always be backported
# to the latest stable release.
version = "2020.02.16";
version = "2020.03.01";

src = fetchurl {
url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
sha256 = "1ip0p7gifwmkls8ppfvz89j1lh82dg60zmvabj8njnhj170ikkdb";
sha256 = "01hk00nbxxa81yajkbv65nv5amwyavhjs127xkyqqcrq6ws3z92w";
};

nativeBuildInputs = [ makeWrapper ];
@@ -54,8 +54,7 @@ buildPythonPackage rec {
doCheck = false;

meta = with lib; {
homepage = https://rg3.github.io/youtube-dl/;
repositories.git = https://github.com/rg3/youtube-dl.git;
homepage = "https://rg3.github.io/youtube-dl/";
description = "Command-line tool to download videos from YouTube.com and other sites";
longDescription = ''
youtube-dl is a small, Python-based command-line program
12 changes: 6 additions & 6 deletions pkgs/tools/system/smartmontools/default.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@
, IOKit ? null , ApplicationServices ? null }:

let
version = "7.0";
version = "7.1";

dbrev = "4883";
drivedbBranch = "RELEASE_${builtins.replaceStrings ["."] ["_"] version}_DRIVEDB";
dbrev = "5033";
drivedbBranch = "RELEASE_7_0_DRIVEDB";
driverdb = fetchurl {
url = "https://sourceforge.net/p/smartmontools/code/${dbrev}/tree/branches/${drivedbBranch}/smartmontools/drivedb.h?format=raw";
sha256 = "07x3haz65jyhj579h4z17v6jkw6bbyid34442gl4qddmgv2qzvwx";
sha256 = "029j118lwiazn56vg6d3i7ayv73wrpv1fypw3ff4nd4hgs2mlcrg";
name = "smartmontools-drivedb.h";
};

@@ -18,7 +18,7 @@ in stdenv.mkDerivation rec {

src = fetchurl {
url = "mirror://sourceforge/smartmontools/${pname}-${version}.tar.gz";
sha256 = "077nx2rn9szrg6isdh0938zbp7vr3dsyxl4jdyyzv1xwhqksrqg5";
sha256 = "0imqb7ka4ia5573w8rnpck571pjjc9698pdjcapy9cfyk4n4swrz";
};

patches = [ ./smartmontools.patch ];
@@ -32,7 +32,7 @@ in stdenv.mkDerivation rec {
description = "Tools for monitoring the health of hard drives";
homepage = https://www.smartmontools.org/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ peti ];
maintainers = with maintainers; [ peti Frostman ];
platforms = with platforms; linux ++ darwin;
};
}