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: bff22431b5b0
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: 616e52e21be3
Choose a head ref

Commits on Jun 8, 2019

  1. vulkan-loader: Always include /run/opengl-driver(-32)/share in search…

    … path.
    
    Even though FALLBACK_DATA_DIRS is set to include this, it only applies when XDG_DATA_DIRS is not defined, so the NixOS opengl.nix module still had to include these in the search path. Use a simple patch to force a default search path, consulted after all other search paths.
    
    Note that FALLBACK_DATA_DIRS is no longer set, and the default (/usr/local/share:/usr/share) applies.
    ambrop72 committed Jun 8, 2019
    Copy the full SHA
    bc96146 View commit details

Commits on Jun 18, 2019

  1. github-release: 0.6.2 -> 0.7.2

    Jonathan Ringer committed Jun 18, 2019
    Copy the full SHA
    ca3c1a3 View commit details

Commits on Jun 20, 2019

  1. dafny: 2.1.0 -> 2.3.0

    layus committed Jun 20, 2019
    Copy the full SHA
    514415d View commit details

Commits on Jun 25, 2019

  1. Copy the full SHA
    74ff20f View commit details
  2. kakoune: support for adding plugins

    Motivation: There is a thriving plugin ecosystem for Kakoune now,
    and it is nice to add these in our Nix configurations. This was modeled
    on neovim's plugins.
    
    parinfer-rust is useable both standalone and as a Kakoune plugin,
    so the plugin file inherits the same definition as pkgs.
    
    I'll make PRs for other plugins if this gets accepted.
    [Here](https://github.com/eraserhd/nixpkgs/tree/kak-ansi)'s a tested
    branch for the `kak-ansi` plugin.
    eraserhd committed Jun 25, 2019
    Copy the full SHA
    2a91145 View commit details

Commits on Jun 26, 2019

  1. Copy the full SHA
    356a347 View commit details
  2. Merge pull request #63459 from jonringer/bump_github_releases

    github-release: 0.6.2 -> 0.7.2
    nlewo authored Jun 26, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5954bf8 View commit details
  3. Merge pull request #63575 from layus/dafny-update2

    dafny: 2.1.0 -> 2.3.0
    nlewo authored Jun 26, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6e139a4 View commit details
  4. Merge pull request #62869 from ambrop72/vulkan-loader-search-path

    vulkan-loader: Always include /run/opengl-driver(-32)/share in search path.
    matthewbauer authored Jun 26, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    525f0b0 View commit details
  5. netdata: 1.11.1 -> 1.15.0

    Izorkin committed Jun 26, 2019
    Copy the full SHA
    02a0ae6 View commit details
  6. nixos/cgit: fix config example

    The order of the keys matters: scan-path must be the last key for other settings
    to be taken into account.
    pacien authored and bjornfor committed Jun 26, 2019
    Copy the full SHA
    b05870d View commit details
  7. Merge pull request #63797 from romildo/upd.deepin.deepin-calculator

    deepin.deepin-calculator: init at 1.0.11
    worldofpeace authored Jun 26, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7c5a514 View commit details
  8. kubecfg: 0.9.1 -> 0.12.0 (#63681)

    groodt authored and benley committed Jun 26, 2019
    Copy the full SHA
    6ea5cf3 View commit details
  9. Copy the full SHA
    a772b86 View commit details
  10. Copy the full SHA
    bfeaa8f View commit details
  11. Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    4ae9934 View commit details
  12. Merge pull request #61385 from eraserhd/kakoune-plugins

    kakoune: support for adding plugins
    alyssais authored Jun 26, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c9bd5b8 View commit details
  13. Merge pull request #63689 from svalaskevicius/add-rouge-to-asciidoctor

    asciidoctor: add rouge to dependencies
    danbst authored Jun 26, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b8796d6 View commit details
  14. netdata: 1.11.1 -> 1.15.0 (#63819)

    netdata: 1.11.1 -> 1.15.0
    Mic92 authored Jun 26, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b39f2ef View commit details
  15. timetable: init at 1.0.6

    xiorcale committed Jun 26, 2019
    Copy the full SHA
    0c739fd View commit details
  16. Merge pull request #63788 from Kjuvi/master

    timetable: init at 1.0.6
    worldofpeace authored Jun 26, 2019

    Verified

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

Commits on Jun 27, 2019

  1. Merge pull request #63622 from aanderse/zoneminder

    nixos/zoneminder: fix some issues with database.createLocally option
    aanderse authored Jun 27, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    616e52e View commit details
12 changes: 12 additions & 0 deletions doc/package-notes.xml
Original file line number Diff line number Diff line change
@@ -325,6 +325,18 @@ packageOverrides = pkgs: {
elm2nix</link>.
</para>
</section>
<section xml:id="sec-kakoune">
<title>Kakoune</title>

<para>
Kakoune can be built to autoload plugins:
<programlisting>(kakoune.override {
configure = {
plugins = with pkgs.kakounePlugins; [ parinfer-rust ];
};
})</programlisting>
</para>
</section>
<section xml:id="sec-shell-helpers">
<title>Interactive shell helpers</title>

23 changes: 17 additions & 6 deletions nixos/modules/services/misc/zoneminder.nix
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ let
ZM_DB_TYPE=mysql
ZM_DB_HOST=${cfg.database.host}
ZM_DB_NAME=${cfg.database.name}
ZM_DB_USER=${if cfg.database.createLocally then user else cfg.database.username}
ZM_DB_USER=${cfg.database.username}
ZM_DB_PASS=${cfg.database.password}
# Web
@@ -155,6 +155,7 @@ in {
default = "zmpass";
description = ''
Username for accessing the database.
Not used if <literal>createLocally</literal> is set.
'';
};
};
@@ -189,6 +190,12 @@ in {

config = lib.mkIf cfg.enable {

assertions = [
{ assertion = cfg.database.createLocally -> cfg.database.username == user;
message = "services.zoneminder.database.username must be set to ${user} if services.zoneminder.database.createLocally is set true";
}
];

environment.etc = {
"zoneminder/60-defaults.conf".source = defaultsFile;
"zoneminder/80-nixos.conf".source = configFile;
@@ -204,10 +211,9 @@ in {
};

mysql = lib.mkIf cfg.database.createLocally {
enable = true;
package = lib.mkDefault pkgs.mariadb;
ensureDatabases = [ cfg.database.name ];
initialDatabases = [{
inherit (cfg.database) name; schema = "${pkg}/share/zoneminder/db/zm_create.sql";
}];
ensureUsers = [{
name = cfg.database.username;
ensurePermissions = { "${cfg.database.name}.*" = "ALL PRIVILEGES"; };
@@ -315,11 +321,16 @@ in {
procps
psmisc
];
after = [ "mysql.service" "nginx.service" ];
after = [ "nginx.service" ] ++ lib.optional cfg.database.createLocally "mysql.service";
wantedBy = [ "multi-user.target" ];
restartTriggers = [ defaultsFile configFile ];
preStart = lib.mkIf useCustomDir ''
preStart = lib.optionalString useCustomDir ''
install -dm775 -o ${user} -g ${group} ${cfg.storageDir}/{${lib.concatStringsSep "," libDirs}}
'' + lib.optionalString cfg.database.createLocally ''
if ! test -e "/var/lib/${dirName}/db-created"; then
${config.services.mysql.package}/bin/mysql < ${pkg}/share/zoneminder/db/zm_create.sql
touch "/var/lib/${dirName}/db-created"
fi
'';
serviceConfig = {
User = user;
4 changes: 2 additions & 2 deletions nixos/modules/services/web-servers/lighttpd/cgit.nix
Original file line number Diff line number Diff line change
@@ -42,10 +42,10 @@ in
configText = mkOption {
default = "";
example = ''
cache-size=1000
scan-path=/srv/git
source-filter=''${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py
about-filter=''${pkgs.cgit}/lib/cgit/filters/about-formatting.sh
cache-size=1000
scan-path=/srv/git
'';
type = types.lines;
description = ''
2 changes: 1 addition & 1 deletion pkgs/applications/editors/kakoune/default.nix
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
with stdenv.lib;

stdenv.mkDerivation rec {
name = "kakoune-${version}";
pname = "kakoune-unwrapped";
version = "2019.01.20";
src = fetchFromGitHub {
repo = "kakoune";
5 changes: 5 additions & 0 deletions pkgs/applications/editors/kakoune/plugins.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ parinfer-rust }:

{
inherit parinfer-rust;
}
44 changes: 44 additions & 0 deletions pkgs/applications/editors/kakoune/wrapper.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{ stdenv, bash }:
with stdenv.lib;

kakoune:

let
getPlugins = { plugins ? [] }: plugins;

wrapper = { configure ? {} }:
stdenv.mkDerivation rec {
pname = "kakoune";
version = getVersion kakoune;

src = ./.;
buildCommand = ''
mkdir -p $out/share/kak
for plugin in ${strings.escapeShellArgs (getPlugins configure)}; do
if [[ -d $plugin/share/kak/autoload ]]; then
find "$plugin/share/kak/autoload" -type f -name '*.kak'| while read rcfile; do
printf 'source "%s"\n' "$rcfile"
done
fi
done >>$out/share/kak/plugins.kak
mkdir -p $out/bin
substitute ${src}/wrapper.sh $out/bin/kak \
--subst-var-by bash "${bash}" \
--subst-var-by kakoune "${kakoune}" \
--subst-var-by out "$out"
chmod +x $out/bin/kak
'';

preferLocalBuild = true;
buildInputs = [ bash kakoune ];
passthru = { unwrapped = kakoune; };

meta = kakoune.meta // {
# prefer wrapper over the package
priority = (kakoune.meta.priority or 0) - 1;
hydraPlatforms = [];
};
};
in
makeOverridable wrapper
30 changes: 30 additions & 0 deletions pkgs/applications/editors/kakoune/wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!@bash@/bin/bash

# We use the -E option to load plugins. This only makes sense when we are
# starting a new session, so we detect that. Also, Kakoune can only handle
# one -E option, so we prepend loading plugins to an existing one.
args=( "$@" )
loadPlugins=true
EValueOffset=-1
pluginScript='@out@/share/kak/plugins.kak'

for (( i = 0; i < ${#args[@]}; i++ )); do
case "${args[i]}" in
-n|-c|-l|-p|-clear|-version) loadPlugins=false;;
-E) EValueOffset=$(( i + 1 ));;
--) break;;
esac
case "${args[i]}" in
-E|-c|-e|-s|-p|-f|-i|-ui|-debug) i=$(( i + 1 ));;
esac
done

if [[ $loadPlugins = true ]]; then
if (( EValueOffset >= 0 )); then
args[EValueOffset]="source '$pluginScript'"$'\n'"${args[EValueOffset]}"
else
args=( "-E" "source '$pluginScript'" "${args[@]}" )
fi
fi

exec @kakoune@/bin/kak "${args[@]}"
10 changes: 5 additions & 5 deletions pkgs/applications/networking/cluster/kubecfg/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{ lib, buildGoPackage, fetchFromGitHub, ... }:

let version = "0.9.1"; in
let version = "0.12.0"; in

buildGoPackage {
name = "kubecfg-${version}";

src = fetchFromGitHub {
owner = "ksonnet";
owner = "bitnami";
repo = "kubecfg";
rev = "v${version}";
sha256 = "010k33arxa4spaq923iazsisxgsaj8c7w4z250y9yrch8xxd74bi";
sha256 = "118p1fy6cihswwz03vp62cz8395hgfqd82nmfkw88fx7av23rfhb";
};

goPackagePath = "github.com/ksonnet/kubecfg";
goPackagePath = "github.com/bitnami/kubecfg";

meta = {
description = "A tool for managing Kubernetes resources as code";
homepage = https://github.com/ksonnet/kubecfg;
homepage = https://github.com/bitnami/kubecfg;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ benley ];
platforms = lib.platforms.unix;
Original file line number Diff line number Diff line change
@@ -57,11 +57,11 @@ let

in stdenv.mkDerivation rec {
name = "signal-desktop-${version}";
version = "1.25.1";
version = "1.25.2";

src = fetchurl {
url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb";
sha256 = "1185psv93amqj0s7rgm8bhl3y4jcxc1945paslvjbmw01vi3p1lp";
sha256 = "0kbvanq5hvxbabs6p8qlsv3bcyh4cjb51n74nn0sa0qjyrp7lndq";
};

phases = [ "unpackPhase" "installPhase" ];
57 changes: 57 additions & 0 deletions pkgs/applications/office/timetable/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{ stdenv
, fetchFromGitHub
, glib
, gtk3
, hicolor-icon-theme
, json-glib
, libgee
, meson
, ninja
, pkgconfig
, pantheon
, python3
, wrapGAppsHook
}:


stdenv.mkDerivation rec {
pname = "timetable";
version = "1.0.6";

src = fetchFromGitHub {
owner = "lainsce";
repo = pname;
rev = version;
sha256 = "080xgp917v6j40qxy0y1iycz01yylbcr8pahx6zd6mpi022ccfv0";
};

nativeBuildInputs = [
meson
ninja
pkgconfig
pantheon.vala
python3
wrapGAppsHook
];

buildInputs = [
glib
gtk3
hicolor-icon-theme
json-glib
libgee
pantheon.granite
];

postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';

meta = with stdenv.lib; {
description = "Plot out your own timetable for the week and organize it";
homepage = "https://github.com/lainsce/timetable";
maintainers = [ maintainers.kjuvi ] ++ pantheon.maintainers;
license = licenses.gpl2Plus;
};
}
49 changes: 49 additions & 0 deletions pkgs/desktops/deepin/deepin-calculator/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg, dtkcore,
dtkwidget, deepin }:

stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "deepin-calculator";
version = "1.0.11";

src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "10bfq0h8v0a8i46gcbsy79l194g8sc0ysg289ndrra209fhwlidq";
};

nativeBuildInputs = [
qmake
pkgconfig
qttools
deepin.setupHook
];

buildInputs = [
dtkcore
dtkwidget
qtsvg
];

postPatch = ''
searchHardCodedPaths # debugging
patchShebangs translate_generation.sh
fixPath $out /usr deepin-calculator.pro
substituteInPlace deepin-calculator.desktop --replace "Exec=deepin-calculator" "Exec=$out/bin/deepin-calculator"
'';

postFixup = ''
searchHardCodedPaths $out # debugging
'';

passthru.updateScript = deepin.updateScript { inherit name; };

meta = with stdenv.lib; {
description = "Easy to use calculator for Deepin Desktop Environment";
homepage = https://github.com/linuxdeepin/deepin-calculator;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}
1 change: 1 addition & 0 deletions pkgs/desktops/deepin/default.nix
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ let
dde-qt-dbus-factory = callPackage ./dde-qt-dbus-factory { };
dde-session-ui = callPackage ./dde-session-ui { };
deepin-anything = callPackage ./deepin-anything { };
deepin-calculator = callPackage ./deepin-calculator { };
deepin-desktop-base = callPackage ./deepin-desktop-base { };
deepin-desktop-schemas = callPackage ./deepin-desktop-schemas { };
deepin-gettext-tools = callPackage ./deepin-gettext-tools { };
4 changes: 3 additions & 1 deletion pkgs/development/libraries/vulkan-loader/default.nix
Original file line number Diff line number Diff line change
@@ -21,8 +21,10 @@ stdenv.mkDerivation rec {
buildInputs = [ cmake python3 xlibsWrapper libxcb libXrandr libXext wayland ];
enableParallelBuilding = true;

patches = [ ./system-search-path.patch ];

cmakeFlags = [
"-DFALLBACK_DATA_DIRS=${addOpenGLRunpath.driverLink}/share:/usr/local/share:/usr/share"
"-DSYSTEM_SEARCH_PATH=${addOpenGLRunpath.driverLink}/share"
"-DVULKAN_HEADERS_INSTALL_DIR=${vulkan-headers}"
];

Loading