gnome3.updateScript: clean up PATH

grep was not actually properly included by common-updater-scripts before
0105058698 but I am not sure why would we ever
need to add coreutils to PATH.
This commit is contained in:
Jan Tojnar 2019-06-02 09:40:55 +02:00
parent 5751988b55
commit 9f6a9ce368
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,4 +1,4 @@
{ stdenv, lib, writeScript, python3, common-updater-scripts, coreutils, gnugrep, gnused }:
{ stdenv, lib, writeScript, python3, common-updater-scripts }:
{ packageName, attrPath ? packageName, versionPolicy ? "odd-unstable" }:
let
@ -9,7 +9,7 @@ let
package_name="$1"
attr_path="$2"
version_policy="$3"
PATH=${lib.makeBinPath [ common-updater-scripts coreutils gnugrep gnused python ]}
PATH=${lib.makeBinPath [ common-updater-scripts python ]}
latest_tag=$(python "${./find-latest-version.py}" "$package_name" "$version_policy" "stable")
update-source-version "$attr_path" "$latest_tag"
'';