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: 3a4aab967b33
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: cb8f4b05523f
Choose a head ref

Commits on Jun 10, 2019

  1. doc/nixos-rebuild(8): add Nix options to summary

    It seems as the sentence at the bottom of the option summary about
    Nix-specific options isn't enough, it's probably more helpful to list
    those options in the synopsis as well.
    Ma27 committed Jun 10, 2019
    Copy the full SHA
    eacd1b7 View commit details

Commits on Jun 24, 2019

  1. Copy the full SHA
    bab2a01 View commit details

Commits on Jul 26, 2019

  1. Copy the full SHA
    5596b69 View commit details

Commits on Jul 29, 2019

  1. Copy the full SHA
    cdee3b7 View commit details

Commits on Aug 6, 2019

  1. wolfssl: 4.0.0 -> 4.1.0

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/wolfssl/versions
    r-ryantm committed Aug 6, 2019
    Copy the full SHA
    ef8e758 View commit details
  2. Copy the full SHA
    9a44f44 View commit details

Commits on Aug 7, 2019

  1. Copy the full SHA
    d55fb31 View commit details
  2. arrow-cpp: 0.13.0 -> 0.14.1

    pythonPackages.pyarrow: 0.13.0 -> 0.14.1
    
    Replace *-test with *test because of misnamed test executable
    "arrow-dataset-file_test".
    veprbl committed Aug 7, 2019
    Copy the full SHA
    188fe90 View commit details
  3. Copy the full SHA
    8266d51 View commit details

Commits on Aug 8, 2019

  1. Copy the full SHA
    88bb9fa View commit details

Commits on Aug 9, 2019

  1. notepadqq: use qt5's mkDerivation

    See #65399
    xaverdh committed Aug 9, 2019
    Copy the full SHA
    6b1d73f View commit details

Commits on Aug 11, 2019

  1. Copy the full SHA
    18a9543 View commit details

Commits on Aug 12, 2019

  1. Copy the full SHA
    4a31479 View commit details

Commits on Aug 13, 2019

  1. Copy the full SHA
    4756d39 View commit details
  2. gitAndTools.topgit: 0.9 -> 0.19.12

    Jonathan Ringer committed Aug 13, 2019
    Copy the full SHA
    4e19dfc View commit details
  3. go-ethereum: 1.9.1 -> 1.9.2

    xrelkd committed Aug 13, 2019
    Copy the full SHA
    196d4a6 View commit details
  4. Merge pull request #66563 from xrelkd/update/go-ethereum

    go-ethereum: 1.9.1 -> 1.9.2
    adisbladis authored Aug 13, 2019
    Copy the full SHA
    bafc5ed View commit details
  5. Copy the full SHA
    66d745f View commit details
  6. ell: run tests

    Also add multiple outputs and some other details
    jtojnar committed Aug 13, 2019
    Copy the full SHA
    4f7f970 View commit details
  7. ell: 0.20 -> 0.21

    jtojnar committed Aug 13, 2019
    Copy the full SHA
    bd3a54b View commit details
  8. ofono: init at 1.30

    jtojnar committed Aug 13, 2019
    Copy the full SHA
    590310b View commit details
  9. iwd: 0.18 → 0.19

    fix build with ell 0.21
    jtojnar committed Aug 13, 2019
    Copy the full SHA
    1dbc0be View commit details
  10. Merge pull request #62914 from Ma27/improve-nixos-rebuild-manpage

    doc/nixos-rebuild(8): add Nix options to summary
    WilliButz authored Aug 13, 2019
    Copy the full SHA
    bab5455 View commit details
  11. ofono: init at 1.30 (#66565)

    ofono: init at 1.30
    jtojnar authored Aug 13, 2019
    Copy the full SHA
    bb4a33e View commit details
  12. Merge pull request #66247 from veprbl/pr/arrow_1_14_1

    arrow-cpp: 0.13.0 -> 0.14.1
    veprbl authored Aug 13, 2019
    Copy the full SHA
    943c103 View commit details
  13. nixos/doc: document that services defined with systemd.users aren't…

    … restarted by nixos-rebuild
    Ma27 committed Aug 13, 2019
    Copy the full SHA
    551230b View commit details
  14. Merge pull request #66561 from Ma27/document-user-services-on-rebuild

    nixos/doc: document that services defined with `systemd.users` aren't restarted by nixos-rebuild
    WilliButz authored Aug 13, 2019
    Copy the full SHA
    7a29431 View commit details
  15. Merge pull request #63716 from peterhoeg/f/mosquitto

    nixos/mosquitto: make the tests run
    peterhoeg authored Aug 13, 2019
    Copy the full SHA
    16bd668 View commit details
  16. Merge pull request #66562 from jonringer/bump-topgit

    gitAndTools.topgit: 0.9 -> 0.19.12
    mmahut authored Aug 13, 2019
    Copy the full SHA
    2fc0ff3 View commit details
  17. Merge pull request #66305 from aanderse/kdevelop

    kdevelop, kdev-php, kdev-python: 5.3.3 -> 5.4.0
    aanderse authored Aug 13, 2019
    Copy the full SHA
    65bf9f4 View commit details
  18. Merge pull request #66475 from kirelagin/stack-native-build-inputs

    haskell.buildStackProject: Pass nativeBuildInputs
    matthewbauer authored Aug 13, 2019
    Copy the full SHA
    8a95dfd View commit details
  19. Merge pull request #65728 from Infinisil/types-eithers

    lib/types: Add oneOf, extension of either to a list of types
    aanderse authored Aug 13, 2019
    Copy the full SHA
    6f6468b View commit details
  20. Merge pull request #66397 from svalaskevicius/add-electron-6

    electron: add 6.x version
    worldofpeace authored Aug 13, 2019
    Copy the full SHA
    fe8364a View commit details
  21. Merge pull request #66324 from xaverdh/notepadqq-qt-fix

    notepadqq: use qt5's mkDerivation
    worldofpeace authored Aug 13, 2019
    Copy the full SHA
    d914581 View commit details
  22. Merge pull request #66191 from r-ryantm/auto-update/wolfssl

    wolfssl: 4.0.0 -> 4.1.0
    worldofpeace authored Aug 13, 2019
    Copy the full SHA
    bf1cf3d View commit details
  23. Merge pull request #65537 from Holo-Host/201907/extend-static

    pkgsStatic: override libunwind
    matthewbauer authored Aug 13, 2019
    Copy the full SHA
    554a789 View commit details
  24. Merge pull request #66395 from catern/simpfix

    pythonPackages.simplefix: init at 1.0.12
    worldofpeace authored Aug 13, 2019
    Copy the full SHA
    36e567f View commit details
  25. Merge pull request #65439 from aanderse/httpd-extra-modules

    nixos/httpd: remove duplicate module entries from httpd.conf
    mmahut authored Aug 13, 2019
    Copy the full SHA
    cb8f4b0 View commit details
Showing with 457 additions and 94 deletions.
  1. +9 −0 lib/tests/modules.sh
  2. +5 −0 lib/tests/modules/declare-either.nix
  3. +9 −0 lib/tests/modules/declare-oneOf.nix
  4. +7 −0 lib/types.nix
  5. +12 −0 nixos/doc/manual/development/option-types.xml
  6. +7 −0 nixos/doc/manual/installation/changing-config.xml
  7. +31 −1 nixos/doc/manual/man-nixos-rebuild.xml
  8. +1 −1 nixos/modules/services/backup/automysqlbackup.nix
  9. +1 −1 nixos/modules/services/games/minecraft-server.nix
  10. +1 −1 nixos/modules/services/mail/davmail.nix
  11. +1 −1 nixos/modules/services/mail/postfix.nix
  12. +1 −1 nixos/modules/services/mail/rspamd.nix
  13. +1 −1 nixos/modules/services/mail/rss2email.nix
  14. +2 −2 nixos/modules/services/networking/znc/default.nix
  15. +1 −1 nixos/modules/services/security/bitwarden_rs/default.nix
  16. +1 −1 nixos/modules/services/web-apps/limesurvey.nix
  17. +1 −1 nixos/modules/services/web-servers/apache-httpd/default.nix
  18. +1 −1 nixos/modules/services/x11/compton.nix
  19. +1 −1 nixos/modules/system/boot/systemd-unit-options.nix
  20. +1 −1 nixos/modules/system/boot/systemd.nix
  21. +26 −7 nixos/tests/mosquitto.nix
  22. +2 −2 pkgs/applications/altcoins/go-ethereum.nix
  23. +2 −2 pkgs/applications/editors/kdevelop5/kdev-php.nix
  24. +2 −2 pkgs/applications/editors/kdevelop5/kdev-python.nix
  25. +2 −12 pkgs/applications/editors/kdevelop5/kdevelop.nix
  26. +13 −8 pkgs/applications/editors/notepadqq/default.nix
  27. +18 −14 pkgs/applications/version-management/git-and-tools/topgit/default.nix
  28. +3 −1 pkgs/development/compilers/llvm/8/libunwind.nix
  29. +3 −1 pkgs/development/haskell-modules/generic-stack-builder.nix
  30. +13 −14 pkgs/development/libraries/arrow-cpp/default.nix
  31. +2 −2 pkgs/development/libraries/wolfssl/default.nix
  32. +2 −2 pkgs/development/python-modules/awkward/default.nix
  33. +2 −2 pkgs/development/python-modules/google-api-python-client/default.nix
  34. +25 −0 pkgs/development/python-modules/simplefix/default.nix
  35. +86 −0 pkgs/development/tools/electron/6.x.nix
  36. +32 −7 pkgs/os-specific/linux/ell/default.nix
  37. +65 −0 pkgs/os-specific/linux/ell/fix-dbus-tests.patch
  38. +2 −2 pkgs/os-specific/linux/iwd/default.nix
  39. +54 −0 pkgs/tools/networking/ofono/default.nix
  40. +4 −0 pkgs/top-level/all-packages.nix
  41. +2 −0 pkgs/top-level/python-packages.nix
  42. +3 −1 pkgs/top-level/static.nix
9 changes: 9 additions & 0 deletions lib/tests/modules.sh
Original file line number Diff line number Diff line change
@@ -71,6 +71,15 @@ checkConfigError 'The option value .* in .* is not of type.*positive integer.*'
checkConfigOutput "42" config.value ./declare-int-between-value.nix ./define-value-int-positive.nix
checkConfigError 'The option value .* in .* is not of type.*between.*-21 and 43.*inclusive.*' config.value ./declare-int-between-value.nix ./define-value-int-negative.nix

# Check either types
# types.either
checkConfigOutput "42" config.value ./declare-either.nix ./define-value-int-positive.nix
checkConfigOutput "\"24\"" config.value ./declare-either.nix ./define-value-string.nix
# types.oneOf
checkConfigOutput "42" config.value ./declare-oneOf.nix ./define-value-int-positive.nix
checkConfigOutput "[ ]" config.value ./declare-oneOf.nix ./define-value-list.nix
checkConfigOutput "\"24\"" config.value ./declare-oneOf.nix ./define-value-string.nix

# Check mkForce without submodules.
set -- config.enable ./declare-enable.nix ./define-enable.nix
checkConfigOutput "true" "$@"
5 changes: 5 additions & 0 deletions lib/tests/modules/declare-either.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ lib, ... }: {
options.value = lib.mkOption {
type = lib.types.either lib.types.int lib.types.str;
};
}
9 changes: 9 additions & 0 deletions lib/tests/modules/declare-oneOf.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ lib, ... }: {
options.value = lib.mkOption {
type = lib.types.oneOf [
lib.types.int
(lib.types.listOf lib.types.int)
lib.types.str
];
};
}
7 changes: 7 additions & 0 deletions lib/types.nix
Original file line number Diff line number Diff line change
@@ -443,6 +443,13 @@ rec {
functor = (defaultFunctor name) // { wrapped = [ t1 t2 ]; };
};

# Any of the types in the given list
oneOf = ts:
let
head' = if ts == [] then throw "types.oneOf needs to get at least one type in its argument" else head ts;
tail' = tail ts;
in foldl' either head' tail';

# Either value of type `finalType` or `coercedType`, the latter is
# converted to `finalType` using `coerceFunc`.
coercedTo = coercedType: coerceFunc: finalType:
12 changes: 12 additions & 0 deletions nixos/doc/manual/development/option-types.xml
Original file line number Diff line number Diff line change
@@ -346,6 +346,18 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>types.oneOf</varname> [ <replaceable>t1</replaceable> <replaceable>t2</replaceable> ... ]
</term>
<listitem>
<para>
Type <replaceable>t1</replaceable> or type <replaceable>t2</replaceable> and so forth,
e.g. <literal>with types; oneOf [ int str bool ]</literal>. Multiple definitions
cannot be merged.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>types.coercedTo</varname> <replaceable>from</replaceable> <replaceable>f</replaceable> <replaceable>to</replaceable>
7 changes: 7 additions & 0 deletions nixos/doc/manual/installation/changing-config.xml
Original file line number Diff line number Diff line change
@@ -14,6 +14,13 @@
to build the new configuration, make it the default configuration for
booting, and try to realise the configuration in the running system (e.g., by
restarting system services).
<warning>
<para>
This command doesn't start/stop <link linkend="opt-systemd.user.services">user
services</link> automatically. <command>nixos-rebuild</command> only runs a
<literal>daemon-reload</literal> for each user with running user services.
</para>
</warning>
</para>
<warning>
<para>
32 changes: 31 additions & 1 deletion nixos/doc/manual/man-nixos-rebuild.xml
Original file line number Diff line number Diff line change
@@ -90,6 +90,35 @@
<arg>
<option>--show-trace</option>
</arg>
<arg>
<option>-I</option>
<replaceable>path</replaceable>
</arg>
<arg>
<group choice='req'>
<arg choice='plain'><option>--verbose</option></arg>
<arg choice='plain'><option>-v</option></arg>
</group>
</arg>
<arg>
<group choice='req'>
<arg choice='plain'><option>--max-jobs</option></arg>
<arg choice='plain'><option>-j</option></arg>
</group>
<replaceable>number</replaceable>
</arg>
<arg>
<group choice='req'>
<arg choice='plain'><option>--keep-failed</option></arg>
<arg choice='plain'><option>-K</option></arg>
</group>
</arg>
<arg>
<group choice='req'>
<arg choice='plain'><option>--keep-going</option></arg>
<arg choice='plain'><option>-k</option></arg>
</group>
</arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsection>
@@ -101,7 +130,8 @@
NixOS module, you must run <command>nixos-rebuild</command> to make the
changes take effect. It builds the new system in
<filename>/nix/store</filename>, runs its activation script, and stop and
(re)starts any system services if needed.
(re)starts any system services if needed. Please note that user services need
to be started manually as they aren't detected by the activation script at the moment.
</para>
<para>
This command has one required argument, which specifies the desired
2 changes: 1 addition & 1 deletion nixos/modules/services/backup/automysqlbackup.nix
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ in
};

config = mkOption {
type = with types; attrsOf (either (either str (either int bool)) (listOf str));
type = with types; attrsOf (oneOf [ str int bool (listOf str) ]);
default = {};
description = ''
automysqlbackup configuration. Refer to
2 changes: 1 addition & 1 deletion nixos/modules/services/games/minecraft-server.nix
Original file line number Diff line number Diff line change
@@ -118,7 +118,7 @@ in {
};

serverProperties = mkOption {
type = with types; attrsOf (either bool (either int str));
type = with types; attrsOf (oneOf [ bool int str ]);
default = {};
example = literalExample ''
{
2 changes: 1 addition & 1 deletion nixos/modules/services/mail/davmail.nix
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ let
cfg = config.services.davmail;

configType = with types;
either (either (attrsOf configType) str) (either int bool) // {
oneOf [ (attrsOf configType) str int bool ] // {
description = "davmail config type (str, int, bool or attribute set thereof)";
};

2 changes: 1 addition & 1 deletion nixos/modules/services/mail/postfix.nix
Original file line number Diff line number Diff line change
@@ -447,7 +447,7 @@ in
};

config = mkOption {
type = with types; attrsOf (either bool (either str (listOf str)));
type = with types; attrsOf (oneOf [ bool str (listOf str) ]);
description = ''
The main.cf configuration file as key value set.
'';
2 changes: 1 addition & 1 deletion nixos/modules/services/mail/rspamd.nix
Original file line number Diff line number Diff line change
@@ -331,7 +331,7 @@ in
};

config = mkOption {
type = with types; attrsOf (either bool (either str (listOf str)));
type = with types; attrsOf (oneOf [ bool str (listOf str) ]);
description = ''
Addon to postfix configuration
'';
2 changes: 1 addition & 1 deletion nixos/modules/services/mail/rss2email.nix
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ in {
};

config = mkOption {
type = with types; attrsOf (either str (either int bool));
type = with types; attrsOf (oneOf [ str int bool ]);
default = {};
description = ''
The configuration to give rss2email.
4 changes: 2 additions & 2 deletions nixos/modules/services/networking/znc/default.nix
Original file line number Diff line number Diff line change
@@ -62,9 +62,9 @@ let
concatStringsSep "\n" (toLines cfg.config);

semanticTypes = with types; rec {
zncAtom = nullOr (either (either int bool) str);
zncAtom = nullOr (oneOf [ int bool str ]);
zncAttr = attrsOf (nullOr zncConf);
zncAll = either (either zncAtom (listOf zncAtom)) zncAttr;
zncAll = oneOf [ zncAtom (listOf zncAtom) zncAttr ];
zncConf = attrsOf (zncAll // {
# Since this is a recursive type and the description by default contains
# the description of its subtypes, infinite recursion would occur without
2 changes: 1 addition & 1 deletion nixos/modules/services/security/bitwarden_rs/default.nix
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ in {
};

config = mkOption {
type = attrsOf (nullOr (either (either bool int) str));
type = attrsOf (nullOr (oneOf [ bool int str ]));
default = {};
example = literalExample ''
{
2 changes: 1 addition & 1 deletion nixos/modules/services/web-apps/limesurvey.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ let

pkg = pkgs.limesurvey;

configType = with types; either (either (attrsOf configType) str) (either int bool) // {
configType = with types; oneOf [ (attrsOf configType) str int bool ] // {
description = "limesurvey config type (str, int, bool or attribute set thereof)";
};

Original file line number Diff line number Diff line change
@@ -336,7 +336,7 @@ let
++ optional enablePerl { name = "perl"; path = "${mod_perl}/modules/mod_perl.so"; }
++ concatMap (svc: svc.extraModules) allSubservices
++ extraForeignModules;
in concatMapStrings load allModules
in concatMapStrings load (unique allModules)
}
AddHandler type-map var
2 changes: 1 addition & 1 deletion nixos/modules/services/x11/compton.nix
Original file line number Diff line number Diff line change
@@ -215,7 +215,7 @@ in {
};

settings = let
configTypes = with types; either bool (either int (either float str));
configTypes = with types; oneOf [ bool int float str ];
# types.loaOf converts lists to sets
loaOf = t: with types; either (listOf t) (attrsOf t);
in mkOption {
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/systemd-unit-options.nix
Original file line number Diff line number Diff line change
@@ -226,7 +226,7 @@ in rec {

environment = mkOption {
default = {};
type = with types; attrsOf (nullOr (either str (either path package)));
type = with types; attrsOf (nullOr (oneOf [ str path package ]));
example = { PATH = "/foo/bar/bin"; LANG = "nl_NL.UTF-8"; };
description = "Environment variables passed to the service's processes.";
};
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/systemd.nix
Original file line number Diff line number Diff line change
@@ -520,7 +520,7 @@ in
};

systemd.globalEnvironment = mkOption {
type = with types; attrsOf (nullOr (either str (either path package)));
type = with types; attrsOf (nullOr (oneOf [ str path package ]));
default = {};
example = { TZ = "CET"; };
description = ''
33 changes: 26 additions & 7 deletions nixos/tests/mosquitto.nix
Original file line number Diff line number Diff line change
@@ -49,21 +49,40 @@ in rec {

testScript = let
file = "/tmp/msg";
payload = "wootWOOT";
sub = args:
"(${cmd "sub"} -C 1 ${args} | tee ${file} &)";
in ''
startAll;
$server->waitForUnit("mosquitto.service");
$server->fail("test -f ${file}");
$server->execute("(${cmd "sub"} -C 1 | tee ${file} &)");
$client1->fail("test -f ${file}");
$client1->execute("(${cmd "sub"} -C 1 | tee ${file} &)");
$client2->fail("test -f ${file}");
# QoS = 0, so only one subscribers should get it
$server->execute("${sub "-q 0"}");
# we need to give the subscribers some time to connect
$client2->execute("sleep 5");
$client2->succeed("${cmd "pub"} -m FOO -q 0");
$server->waitUntilSucceeds("grep -q FOO ${file}");
$server->execute("rm ${file}");
# QoS = 1, so both subscribers should get it
$server->execute("${sub "-q 1"}");
$client1->execute("${sub "-q 1"}");
$client2->succeed("${cmd "pub"} -m ${payload}");
# we need to give the subscribers some time to connect
$client2->execute("sleep 5");
$client2->succeed("${cmd "pub"} -m BAR -q 1");
$server->succeed("grep -q ${payload} ${file}");
$server->waitUntilSucceeds("grep -q BAR ${file}");
$server->execute("rm ${file}");
$client1->succeed("grep -q ${payload} ${file}");
$client1->waitUntilSucceeds("grep -q BAR ${file}");
$client1->execute("rm ${file}");
'';
})
4 changes: 2 additions & 2 deletions pkgs/applications/altcoins/go-ethereum.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

buildGoPackage rec {
pname = "go-ethereum";
version = "1.9.1";
version = "1.9.2";

goPackagePath = "github.com/ethereum/go-ethereum";

@@ -17,7 +17,7 @@ buildGoPackage rec {
owner = "ethereum";
repo = pname;
rev = "v${version}";
sha256 = "05vnjdjwahdp2j7c6g81jchpdhxmdpbr20mjzpszylp9824v4cba";
sha256 = "0lymwylh4j63fzj9jy7mcw676a2ksgpsj9mazif1r3d2q73h9m88";
};

meta = with stdenv.lib; {
4 changes: 2 additions & 2 deletions pkgs/applications/editors/kdevelop5/kdev-php.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
pname = "kdev-php";
version = "5.3.3";
version = "5.4.0";

src = fetchurl {
url = "https://github.com/KDE/${pname}/archive/v${version}.tar.gz";
sha256 = "0nn3yfbi60h7p7p1w2pvgg098qplbds79rk2iadyvhvl3sjd77wf";
sha256 = "1lfl8y1nmai7kp7jil8cykalw2ib0f3n47jvnz7302qsrs3lvhf2";
};

nativeBuildInputs = [ cmake extra-cmake-modules ];
4 changes: 2 additions & 2 deletions pkgs/applications/editors/kdevelop5/kdev-python.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
pname = "kdev-python";
version = "5.3.3";
version = "5.4.0";

src = fetchurl {
url = "https://github.com/KDE/${pname}/archive/v${version}.tar.gz";
sha256 = "0bqsny2jgi6wi1cz65i2j9r1hiwna2x10mzy7vdk8bz7b4z766yg";
sha256 = "1bsls5gf8jcb5zmswz82x8whfqadpgcapfc8sxvpjv5yhnjknk8c";
};

cmakeFlags = [
14 changes: 2 additions & 12 deletions pkgs/applications/editors/kdevelop5/kdevelop.nix
Original file line number Diff line number Diff line change
@@ -7,16 +7,13 @@
, libksysguard, konsole, llvmPackages, makeWrapper, kpurpose, boost
}:

let
qtVersion = "5.${lib.versions.minor qtbase.version}";
in
mkDerivation rec {
pname = "kdevelop";
version = "5.3.3";
version = "5.4.0";

src = fetchurl {
url = "mirror://kde/stable/${pname}/${version}/src/${pname}-${version}.tar.xz";
sha256 = "0778587qvi268ab2fgggfl40cv2swgr8q891q1paflp3m1xirpff";
sha256 = "0zi59xlw6facak1jfzlyviwmpjn98dmircmjyqiv3ac5xr30f0ll";
};

nativeBuildInputs = [
@@ -44,13 +41,6 @@ mkDerivation rec {

dontWrapQtApps = true;

postPatch = ''
# FIXME: temporary until https://invent.kde.org/kde/kdevelop/merge_requests/8 is merged
substituteInPlace kdevplatform/language/backgroundparser/parsejob.cpp --replace \
'if (internalFilePath.startsWith(dataPath.canonicalPath() + QStringLiteral("/kdev"))) {' \
'if (internalFilePath.startsWith(dataPath.canonicalPath() + QStringLiteral("/kdev")) || localFile.startsWith(path + QStringLiteral("/kdev"))) {'
'';

postInstall = ''
# The kdevelop! script (shell environment) needs qdbus and kioclient5 in PATH.
wrapProgram "$out/bin/kdevelop!" \
Loading