diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2019-02-20 09:38:45 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2019-02-20 09:38:45 +0100 |
commit | 32767d139f28fd3c00d687c04ec406258f7341e7 (patch) | |
tree | b049aa5d798a9fa2555882c788592a0640928ba2 /pkgs/desktops/pantheon/update.nix | |
parent | 28d983fe25bcf853dfd38663f333d4c522f613cc (diff) | |
parent | e20188f181ca51882984daaee237a95f2fc5e7c9 (diff) | |
download | nixlib-32767d139f28fd3c00d687c04ec406258f7341e7.tar nixlib-32767d139f28fd3c00d687c04ec406258f7341e7.tar.gz nixlib-32767d139f28fd3c00d687c04ec406258f7341e7.tar.bz2 nixlib-32767d139f28fd3c00d687c04ec406258f7341e7.tar.lz nixlib-32767d139f28fd3c00d687c04ec406258f7341e7.tar.xz nixlib-32767d139f28fd3c00d687c04ec406258f7341e7.tar.zst nixlib-32767d139f28fd3c00d687c04ec406258f7341e7.zip |
Merge branch 'staging-next'
This round is without the systemd CVE, as we don't have binaries for that yet. BTW, I just ignore darwin binaries these days, as I'd have to wait for weeks for them.
Diffstat (limited to 'pkgs/desktops/pantheon/update.nix')
-rw-r--r-- | pkgs/desktops/pantheon/update.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/desktops/pantheon/update.nix b/pkgs/desktops/pantheon/update.nix new file mode 100644 index 000000000000..48fd2f2bf858 --- /dev/null +++ b/pkgs/desktops/pantheon/update.nix @@ -0,0 +1,18 @@ +{ stdenv, writeScript, runCommand, nix, bash, git, jq, nix-prefetch-scripts, coreutils, common-updater-scripts, gnugrep, gnused, curl }: +{ repoName, attrPath ? repoName, versionPolicy ? "release" }: +let + script = ./update.sh; + + updateScript = runCommand "update.sh" { + inherit bash git jq nix coreutils gnugrep gnused curl; + # These weren't being substituted + nix_prefetch_scripts = nix-prefetch-scripts; + common_updater_scripts = common-updater-scripts; + } '' + substituteAll ${script} $out + chmod +x $out + ''; + + versionFlag = { "release" = "-r"; "master" = "-m"; }.${versionPolicy}; + +in [ updateScript versionFlag repoName attrPath ] |