treewide: Add passthru.updateScript to gnome pkgs

`updateScript` lets us update packages automatically.
For packages that are hosted on the gnome mirror it's very easy to add
that. Inspired by https://github.com/NixOS/nixpkgs/issues/36150
This commit is contained in:
Daniel Schaefer
2019-05-12 22:23:48 +02:00
parent 5b9bb1b431
commit b85ccbac54
29 changed files with 205 additions and 113 deletions
@@ -1,9 +1,12 @@
{stdenv, fetchzip}:
{ stdenv, fetchzip }:
let
pname = "ttf-bitstream-vera";
version = "1.10";
in
fetchzip rec {
name = "${pname}-${version}";
fetchzip {
name = "ttf-bitstream-vera-1.10";
url = mirror://gnome/sources/ttf-bitstream-vera/1.10/ttf-bitstream-vera-1.10.tar.bz2;
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.bz2";
postFetch = ''
tar -xjf $downloadedFile --strip-components=1