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: 6a69ce97506d
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: 39495404a3ee
Choose a head ref

Commits on Dec 3, 2018

  1. Copy the full SHA
    a70ab23 View commit details
  2. chroimum: Improve jumbo reproducibility

    A little patch to jumbo script, which should improve reproducibility
    by sorting source files before merge.
    avnik committed Dec 3, 2018
    Copy the full SHA
    254a16c View commit details
  3. chromium: avoid timestamp build

    Use $SOURCE_DATE_EPOCH instead
    avnik committed Dec 3, 2018
    Copy the full SHA
    7b49bd4 View commit details
  4. chromium: fail build, if SOURCE_DATE_EPOCH not set

    Also fix spacing style to conform google style
    avnik committed Dec 3, 2018
    Copy the full SHA
    d0351ad View commit details
  5. Copy the full SHA
    9ae406c View commit details

Commits on Feb 28, 2019

  1. Copy the full SHA
    7634357 View commit details
  2. Copy the full SHA
    82e7322 View commit details

Commits on Mar 1, 2019

  1. osinfo-db-tools: 1.2.0 -> 1.4.0

    add new dep json-glib
    dtzWill committed Mar 1, 2019
    Copy the full SHA
    38cc275 View commit details
  2. Copy the full SHA
    b5506c0 View commit details
  3. libosinfo: 1.2.0 -> 1.4.0

    dtzWill committed Mar 1, 2019
    Copy the full SHA
    1831d2c View commit details

Commits on Mar 4, 2019

  1. electron: version bumps

    dtzWill committed Mar 4, 2019
    Copy the full SHA
    423e3e5 View commit details
  2. Copy the full SHA
    505f2d3 View commit details
  3. Copy the full SHA
    79b321b View commit details
  4. shapelib: 1.4.1 -> 1.5.0

    https://lists.osgeo.org/pipermail/shapelib/2019-February/000647.html
    
    * s in 1.5.0 notes, no longer need 'proj' dep (so drop)
    dtzWill committed Mar 4, 2019
    Copy the full SHA
    bafff55 View commit details

Commits on Mar 7, 2019

  1. rustup: 1.16.0 -> 1.17.0

    dywedir committed Mar 7, 2019
    Copy the full SHA
    2a4a90f View commit details
  2. swift: 4.2.2 -> 4.2.3

    mroi committed Mar 7, 2019
    Copy the full SHA
    6a4d2ee View commit details
  3. nixos/youtrack: add hostname to path

    Christian Höppner authored and yorickvP committed Mar 7, 2019
    Copy the full SHA
    c568dad View commit details
  4. Merge pull request #56578 from serokell/youtrack-hostname

    youtrack: add hostname to path
    infinisil authored Mar 7, 2019
    Copy the full SHA
    34e67f3 View commit details
  5. openafs: Add support for Linux 5.0 to openafs_1_8 (#56859)

    OpenAFS 1.8.2 does has not yet merged support for Linux 4.20 or 5.0
    This patch cherry-picks commits from the git repository, and includes
    them in the patches/ directory. This also replaces the amalgamated Linux 4.20
    patches I added earlier with the original outputs from `git show`.
    
    This has been tested to build on Linux 4.4, 4.14, 4.20, and 5.0.
    
    This does not change the derivations of openafs_1_8, only
    linuxPackages_*.openafs_1_8.
    artemist authored and veprbl committed Mar 7, 2019
    Copy the full SHA
    357f51b View commit details
  6. superTuxKart: fix broken build

    (cherry picked from commit a593753)
    aanderse authored and markuskowa committed Mar 7, 2019
    Copy the full SHA
    198b7ea View commit details
  7. yoda: fix sha hash of the tarball

    Tarball was replaced upstream. The files are the same, changes are meta
    only (appear to be timestamps).
    veprbl committed Mar 7, 2019
    Copy the full SHA
    cf1de3c View commit details
  8. module system: revert "remove types.optionSet", just deprecate (#56857)

    The explicit remove helped to uncover some hidden uses of `optionSet`
    in NixOps. However it makes life harder for end-users of NixOps - it will
    be impossible to deploy 19.03 systems with old NixOps, but there is no
    new release of NixOps with `optionSet` fixes.
    
    Also, "deprecation" process isn't well defined. Even that `optionSet` was
    declared "deprecated" for many years, it was never announced. Hence, I
    leave "deprecation" announce. Then, 3 releases after announce,
    we can announce removal of this feature.
    
    This type has to be removed, not `throw`-ed in runtime, because it makes
    some perfectly fine code to fail. For example:
    ```
    $ nix-instantiate --eval -E '(import <nixpkgs/lib>).types' --strict
    trace: `types.list` is deprecated; use `types.listOf` instead
    error: types.optionSet is deprecated; use types.submodule instead
    (use '--show-trace' to show detailed location information)
    ```
    danbst authored Mar 7, 2019
    Copy the full SHA
    60e8fcf View commit details
  9. Merge pull request #57019 from dywedir/rustup

    rustup: 1.16.0 -> 1.17.0
    Mic92 authored Mar 7, 2019
    Copy the full SHA
    f161478 View commit details
  10. Merge commit '9ae406c0749bbc7373d7422edeaf6b1b6caa0dae' of github.com…

    …:NixOS/nixpkgs into fix-chromium
    
    fixes NixOS/nixpkgs#49797
    bendlas committed Mar 7, 2019
    Copy the full SHA
    4901dc4 View commit details
  11. Merge pull request #56799 from dtzWill/update/electron-2019-02

    electron{,_3}: updates (fixes, security?)
    dtzWill authored Mar 7, 2019
    Copy the full SHA
    6aa04f0 View commit details
  12. Merge pull request #56598 from dtzWill/update/osinfo-1.4.0

    libosinfo: 1.2.0 -> 1.4.0
    dtzWill authored Mar 7, 2019
    Copy the full SHA
    2f29fdb View commit details
  13. Merge pull request #56529 from dtzWill/update/libplist-2019-01-20

    libplist: 2018-07-25 -> 2019-01-20
    dtzWill authored Mar 7, 2019
    Copy the full SHA
    094a204 View commit details
  14. Merge pull request #56803 from dtzWill/update/shapelib-1.5.0

    shapelib: 1.4.1 -> 1.5.0
    dtzWill authored Mar 7, 2019
    Copy the full SHA
    c42b570 View commit details
  15. Merge pull request #56548 from dtzWill/update/clipgrab-3.8.2-qt5

    clipgrab: 3.7.2 -> 3.8.2, qt4 -> qt5
    dtzWill authored Mar 7, 2019
    Copy the full SHA
    f835c66 View commit details
  16. Merge pull request #57024 from mroi/patch-1

    swift: 4.2.2 -> 4.2.3
    dtzWill authored Mar 7, 2019
    Copy the full SHA
    fe04378 View commit details
  17. Copy the full SHA
    3949540 View commit details
18 changes: 16 additions & 2 deletions lib/modules.nix
Original file line number Diff line number Diff line change
@@ -476,8 +476,22 @@ rec {
optionSet to options of type submodule. FIXME: remove
eventually. */
fixupOptionType = loc: opt:
if opt.type.getSubModules or null == null
then opt // { type = opt.type or types.unspecified; }
let
options = opt.options or
(throw "Option `${showOption loc'}' has type optionSet but has no option attribute, in ${showFiles opt.declarations}.");
f = tp:
let optionSetIn = type: (tp.name == type) && (tp.functor.wrapped.name == "optionSet");
in
if tp.name == "option set" || tp.name == "submodule" then
throw "The option ${showOption loc} uses submodules without a wrapping type, in ${showFiles opt.declarations}."
else if optionSetIn "attrsOf" then types.attrsOf (types.submodule options)
else if optionSetIn "loaOf" then types.loaOf (types.submodule options)
else if optionSetIn "listOf" then types.listOf (types.submodule options)
else if optionSetIn "nullOr" then types.nullOr (types.submodule options)
else tp;
in
if opt.type.getSubModules or null == null
then opt // { type = f (opt.type or types.unspecified); }
else opt // { type = opt.type.substSubModules opt.options; options = []; };


2 changes: 2 additions & 0 deletions lib/options.nix
Original file line number Diff line number Diff line change
@@ -48,6 +48,8 @@ rec {
visible ? null,
# Whether the option can be set only once
readOnly ? null,
# Deprecated, used by types.optionSet.
options ? null
} @ attrs:
attrs // { _type = "option"; };

6 changes: 4 additions & 2 deletions lib/types.nix
Original file line number Diff line number Diff line change
@@ -469,8 +469,10 @@ rec {
# Obsolete alternative to configOf. It takes its option
# declarations from the ‘options’ attribute of containing option
# declaration.
optionSet = builtins.throw "types.optionSet is deprecated; use types.submodule instead" "optionSet";

optionSet = mkOptionType {
name = builtins.trace "types.optionSet is deprecated; use types.submodule instead" "optionSet";
description = "option set";
};
# Augment the given type with an additional type check function.
addCheck = elemType: check: elemType // { check = x: elemType.check x && check x; };

4 changes: 2 additions & 2 deletions nixos/doc/manual/release-notes/rl-1903.xml
Original file line number Diff line number Diff line change
@@ -456,8 +456,8 @@
</listitem>
<listitem>
<para>
Support for NixOS module system type <literal>types.optionSet</literal> and
<literal>lib.mkOption</literal> argument <literal>options</literal> is removed.
NixOS module system type <literal>types.optionSet</literal> and
<literal>lib.mkOption</literal> argument <literal>options</literal> are deprecated.
Use <literal>types.submodule</literal> instead.
(<link xlink:href="https://github.com/NixOS/nixpkgs/pull/54637">#54637</link>)
</para>
1 change: 1 addition & 0 deletions nixos/modules/services/web-apps/youtrack.nix
Original file line number Diff line number Diff line change
@@ -121,6 +121,7 @@ in
environment.YOUTRACK_JVM_OPTS = "${extraAttr}";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
path = with pkgs; [ unixtools.hostname ];
serviceConfig = {
Type = "simple";
User = "youtrack";
8 changes: 5 additions & 3 deletions pkgs/applications/networking/browsers/chromium/common.nix
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
, nspr, systemd, kerberos
, utillinux, alsaLib
, bison, gperf
, glib, gtk2, gtk3, dbus-glib
, glib, gtk3, dbus-glib
, glibc
, libXScrnSaver, libXcursor, libXtst, libGLU_combined
, protobuf, speechd, libXdamage, cups
@@ -104,7 +104,7 @@ let
else result;

base = rec {
name = "${packageName}-${version}";
name = "${packageName}-unwrapped-${version}";
inherit (upstream-info) version;
inherit packageName buildType buildPath;

@@ -120,7 +120,7 @@ let
nspr nss systemd
utillinux alsaLib
bison gperf kerberos
glib gtk2 gtk3 dbus-glib
glib gtk3 dbus-glib
libXScrnSaver libXcursor libXtst libGLU_combined
pciutils protobuf speechd libXdamage at-spi2-core
] ++ optional gnomeKeyringSupport libgnome-keyring3
@@ -132,6 +132,8 @@ let
patches = optional enableWideVine ./patches/widevine.patch ++ [
./patches/nix_plugin_paths_68.patch
./patches/remove-webp-include-69.patch
./patches/jumbo-sorted.patch
./patches/no-build-timestamps.patch

# Unfortunately, chromium regularly breaks on major updates and
# then needs various patches backported in order to be compiled with GCC.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- chromium-70.0.3538.67/build/config/merge_for_jumbo.py.old 2018-10-25 19:15:54.578222230 +0300
+++ chromium-70.0.3538.67/build/config/merge_for_jumbo.py 2018-10-25 19:20:44.397613032 +0300
@@ -132,6 +132,8 @@
assert not inputs
continue

+ inputs.sort()
+ outputs.sort()
write_jumbo_files(inputs, outputs, written_input_set, written_output_set)

assert set(args.outputs) == written_output_set, "Did not fill all outputs"
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- chromium-70.0.3538.67/build/compute_build_timestamp.py.orig 2018-11-02 16:00:34.368933077 +0200
+++ chromium-70.0.3538.67/build/compute_build_timestamp.py 2018-11-08 04:06:21.658105129 +0200
@@ -94,6 +94,14 @@
'build_type', help='The type of build', choices=('official', 'default'))
args = argument_parser.parse_args()

+ # I don't trust LASTCHANGE magic, and I definelly want something deterministic here
+ SOURCE_DATE_EPOCH = os.getenv("SOURCE_DATE_EPOCH", None)
+ if SOURCE_DATE_EPOCH is not None:
+ print SOURCE_DATE_EPOCH
+ return 0
+ else:
+ raise RuntimeError("SOURCE_DATE_EPOCH not set")
+
# The mtime of the revision in build/util/LASTCHANGE is stored in a file
# next to it. Read it, to get a deterministic time close to "now".
# That date is then modified as described at the top of the file so that
13 changes: 8 additions & 5 deletions pkgs/applications/video/clipgrab/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{ stdenv, fetchurl, makeDesktopItem, ffmpeg, qt4, qmake4Hook }:
{ stdenv, fetchurl, makeDesktopItem, ffmpeg
, qmake, qttools
, qtbase, qtdeclarative, qtlocation, qtquickcontrols2, qtwebchannel, qtwebengine
}:

stdenv.mkDerivation rec {
name = "clipgrab-${version}";
version = "3.7.2";
version = "3.8.2";

src = fetchurl {
sha256 = "1xkap4zgx8k0h0qfcqfwi3lj7s3mqsj0dp1cddiqmxbibbmg3rcc";
sha256 = "0dhiv1mldp5f555im6mkjxdh6iivn1hnx2xdaqa6wxzsrwrvv5dd";
# The .tar.bz2 "Download" link is a binary blob, the source is the .tar.gz!
url = "https://download.clipgrab.org/${name}.tar.gz";
};

buildInputs = [ ffmpeg qt4 ];
nativeBuildInputs = [ qmake4Hook ];
buildInputs = [ ffmpeg qtbase qtdeclarative qtlocation qtquickcontrols2 qtwebchannel qtwebengine ];
nativeBuildInputs = [ qmake qttools ];

postPatch = stdenv.lib.optionalString (ffmpeg != null) ''
substituteInPlace converter_ffmpeg.cpp \
7 changes: 4 additions & 3 deletions pkgs/data/misc/osinfo-db/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{ stdenv, fetchurl, osinfo-db-tools, intltool, libxml2 }:

stdenv.mkDerivation rec {
name = "osinfo-db-20181214";
pname = "osinfo-db";
version = "20190301";

src = fetchurl {
url = "https://releases.pagure.org/libosinfo/${name}.tar.xz";
sha256 = "18ym54wvhvjk66fqpsfvfd5b7d7743dvfqrcq91w1n71r20fkhcd";
url = "https://releases.pagure.org/libosinfo/${pname}-${version}.tar.xz";
sha256 = "1rjqizsglgdcjxi7kpbwm26krdkrlxacinjp9684sfzhqwdqi4as";
};

nativeBuildInputs = [ osinfo-db-tools intltool libxml2 ];
8 changes: 4 additions & 4 deletions pkgs/development/compilers/swift/default.nix
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@
}:

let
v_base = "4.2.2";
v_base = "4.2.3";
version = "${v_base}-RELEASE";
version_friendly = "${v_base}";

@@ -84,16 +84,16 @@ let
};
foundation = fetch {
repo = "swift-corelibs-foundation";
sha256 = "1ki9vc723r13zgm6bcmif43aypavb2hz299gbhp93qkndz8hqkx5";
sha256 = "11kwc5pcq4ibxkyglmqs7h7gka3xkzl9j856x1rq2xdvq756wq2s";
};
libdispatch = fetch {
repo = "swift-corelibs-libdispatch";
sha256 = "0fibrx54nbaawhsgd7cbr356ji9qvf8y8ahd5bdx28fpj6q0cnwc";
sha256 = "09c15mn9s5lf2akzfhik70zk91h97nnm8pq1ppfqry2nn3vmib2i";
fetchSubmodules = true;
};
swift = fetch {
repo = "swift";
sha256 = "1hwi6hi9ss1kj1s65v5q8v8d872c0914qfy1018xijd029lwq694";
sha256 = "09wksqad0w6pk3xdxc278w4mj300h48rvbvx0m4an7npkj6i7n9q";
};
};

14 changes: 2 additions & 12 deletions pkgs/development/libraries/libosinfo/default.nix
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@
}:

stdenv.mkDerivation rec {
name = "libosinfo-1.2.0";
name = "libosinfo-1.4.0";

src = fetchurl {
url = "https://releases.pagure.org/libosinfo/${name}.tar.gz";
sha256 = "0y2skfrcg38y212qqd26vs3sg566j3qnsgvvm23pfi4j7z7ly9gf";
sha256 = "0ra1p2rnnwkq0181ayn0l0rs1pvk4a0i8fa08nqjfmqs5fl637m2";
};

outputs = [ "out" "dev" "devdoc" ];
@@ -20,16 +20,6 @@ stdenv.mkDerivation rec {

patches = [
./osinfo-db-data-dir.patch
# Fix bug causing tests to fail (and presumably the real scenarios they're representative of)
# using upstream commits:
(fetchpatch {
url = "https://gitlab.com/libosinfo/libosinfo/commit/b9cb227842948b1b2289cdd3e9b8d925664c2ee7.patch";
sha256 = "0nj0wmibq52j8qbzmxfzj76fpkqjs18kssbb9lmfhz16s30darbw";
})
(fetchpatch {
url = "https://gitlab.com/libosinfo/libosinfo/commit/e6168463f4fc659b9827b5c8694dc1c6d7d5239a.patch";
sha256 = "135yfhjm2wxip5dnng3r9k9igfhdi1083ys4a4f3ipjxfskcs9rv";
})
];

postPatch = ''
6 changes: 3 additions & 3 deletions pkgs/development/libraries/libplist/default.nix
Original file line number Diff line number Diff line change
@@ -5,15 +5,15 @@ let
in
stdenv.mkDerivation rec {
pname = "libplist";
version = "2018-07-25";
version = "2019-01-20";

name = "${pname}-${version}";

src = fetchFromGitHub {
owner = "libimobiledevice";
repo = pname;
rev = "db68a9d1070b363eee93147f072f46526064acbc";
sha256 = "0lxyb35jjg31m8dxhsv1jr2ccy5s19fsqzisy7lfjk46w7brs4h5";
rev = "bec850fe399639f3b8582a39386216970dea15ed";
sha256 = "197yw8xz8x2xld8b6975scgnl30j4ibm9llmzljyqngs0zsdwnin";
};

outputs = ["bin" "dev" "out" "py"];
2 changes: 1 addition & 1 deletion pkgs/development/libraries/physics/yoda/default.nix
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ stdenv.mkDerivation rec {

src = fetchurl {
url = "https://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2";
sha256 = "0fl9y1mh48xkjmqc76rfhvr3vs4v4lzybh06bwxyflzy82ylwi71";
sha256 = "0w9s3qv87hrmpq4dkrxcrl2hn2vcsbvy8ml99w85404wksw1dwrx";
};

pythonPath = []; # python wrapper support
8 changes: 3 additions & 5 deletions pkgs/development/libraries/shapelib/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{ stdenv, fetchurl, proj }:
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
name = "shapelib-1.4.1";
name = "shapelib-1.5.0";

src = fetchurl {
url = "https://download.osgeo.org/shapelib/${name}.tar.gz";
sha256 = "1cr3b5jfglwisbyzj7fnxp9xysqad0fcmcqvqaja6qap6qblijd4";
sha256 = "1qfsgb8b3yiqwvr6h9m81g6k9fjhfys70c22p7kzkbick20a9h0z";
};

buildInputs = [ proj ];

meta = with stdenv.lib; {
description = "C Library for reading, writing and updating ESRI Shapefiles";
homepage = http://shapelib.maptools.org/;
12 changes: 6 additions & 6 deletions pkgs/development/tools/electron/3.x.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv, gtk2, at-spi2-atk }:

let
version = "3.1.0";
version = "3.1.4";
name = "electron-${version}";

throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
@@ -19,19 +19,19 @@ let
src = {
i686-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-ia32.zip";
sha256 = "09llladfj8l1vnk8fl8ad66qq4czr755fhrp5ciivpbh38zi6d3d";
sha256 = "1llwpd10cz5nfwqimib7xkc3xxj3z4y19l97wxma3bciizmmgq3k";
};
x86_64-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-x64.zip";
sha256 = "0g0af1z598f8k2i5sbkzpbga49hbgzl98qgk1n4iagk08iivyfwy";
sha256 = "0mb7q82r9ndvz181lnkplmvwkijzc2msrpfwpghrhsc4j3zbh0bf";
};
armv7l-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-armv7l.zip";
sha256 = "04yj58v1sqnw64csazpfcchv2498ppxs2izadpnirawk09azl3bl";
sha256 = "0cf4jqq3n66dm11cy96q3nj1jxajv49yamhvn5g8a85nq4s5cx6f";
};
aarch64-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-arm64.zip";
sha256 = "0cjf4i24qpgkmzb4nm89kgl07bwrncpz66xs5jjvi94pmr6wx6jm";
sha256 = "0lxp7fpccwk6qdw79dgjlm9hywfwl3aj932qg2aff18vs077skrg";
};
}.${stdenv.hostPlatform.system} or throwSystem;

@@ -59,7 +59,7 @@ let

src = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-darwin-x64.zip";
sha256 = "1cd1ashrcbdjlrr6yijyh2ppk8x8jdw5cm9qnx4lzk7sj9lwjbgb";
sha256 = "1indim895a58ds09z91c8jfqmdp7ba85rx6bhq6dabgnvkykwmz0";
};

buildInputs = [ unzip ];
12 changes: 6 additions & 6 deletions pkgs/development/tools/electron/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv, libuuid, at-spi2-atk }:

let
version = "4.0.0";
version = "4.0.6";
name = "electron-${version}";

throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
@@ -20,19 +20,19 @@ let
src = {
i686-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-ia32.zip";
sha256 = "0yv2f7yf6ingjysswpnpnvqsjkdkp2rd4laawhziifzbfjda4yws";
sha256 = "1ffv4wlj827wyq7y2hfaz2d0fapqr2r9likb90ayzh91vmkc8c2y";
};
x86_64-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-x64.zip";
sha256 = "1kh2jds7jra9f1vcn2z1193cxcyvfxkldim4b9ij7chj9xzxwgln";
sha256 = "01b063jabx7fglh63dk7nh21xxadwxrrvavcwznpw6jhid48g2yz";
};
armv7l-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-armv7l.zip";
sha256 = "1v492qfdgnj3fks2hrfc9lmsx5a5xk957rvismlpc2mjkjrwx2dq";
sha256 = "18dsb3pyj9gfn8xyzhblx7nidgp39pfqs1ml07nxfkf1bjdh4c4w";
};
aarch64-linux = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-arm64.zip";
sha256 = "18vpqif5grvhrkx6h64yzw1pf9013811gzq2qxaj8pzr6lck3irf";
sha256 = "0dx6bzj0laygqkyl8ngbh0yfzyc5mxr3fxlqb867cza9sz5hh95l";
};
}.${stdenv.hostPlatform.system} or throwSystem;

@@ -60,7 +60,7 @@ let

src = fetchurl {
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-darwin-x64.zip";
sha256 = "08n3xzgncb2hf645zn8b0rb1izq9pqh3726hf2g4nvrgfllivlg1";
sha256 = "0r1yn5lz808xdwp29g4kmlm5v0i1fsdxd4ph537gyz3sfn30dgq9";
};

buildInputs = [ unzip ];
12 changes: 8 additions & 4 deletions pkgs/development/tools/rust/rustup/default.nix
Original file line number Diff line number Diff line change
@@ -4,16 +4,16 @@

rustPlatform.buildRustPackage rec {
name = "rustup-${version}";
version = "1.16.0";
version = "1.17.0";

src = fetchFromGitHub {
owner = "rust-lang";
repo = "rustup.rs";
rev = version;
sha256 = "1z9358y01jlpx7xlj56ba1d05dxb98j1wd2agrlhwmidmwp8qbz5";
sha256 = "1mf92z89wqqaj3cg2cqf6basvcz47krldmy8ianfkzp323fimqmn";
};

cargoSha256 = "0syp53s285ixshp6yswly0mwkcl0y2ddj5hc110irqsrvwgss32r";
cargoSha256 = "0y7kbihdrpd35dw24qqqzmccvjdy6arka10p5rnv38d420f1bpzd";

nativeBuildInputs = [ pkgconfig ];

@@ -37,7 +37,11 @@ rustPlatform.buildRustPackage rec {
postInstall = ''
pushd $out/bin
mv rustup-init rustup
for link in cargo rustc rustdoc rust-gdb rust-lldb rls rustfmt cargo-fmt cargo-clippy; do
binlinks=(
cargo rustc rustdoc rust-gdb rust-lldb rls rustfmt cargo-fmt
cargo-clippy clippy-driver cargo-miri
)
for link in ''${binlinks[@]}; do
ln -s rustup $link
done
popd
Loading