gsimplecal: switch to fetchFromGitHub

+6 -4
+6 -4
pkgs/applications/misc/gsimplecal/default.nix
··· 1 - { lib, stdenv, fetchurl, automake, autoconf, pkg-config, gtk3 }: 1 + { lib, stdenv, fetchFromGitHub, automake, autoconf, pkg-config, gtk3 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "gsimplecal"; 5 5 version = "2.2"; 6 6 7 - src = fetchurl { 8 - url = "https://github.com/dmedvinsky/gsimplecal/archive/v${version}.tar.gz"; 9 - sha256 = "sha256-f19cnTX83LZT2d01B1EdWSaHcfHqpFPTo5glYkAokq8="; 7 + src = fetchFromGitHub { 8 + owner = "dmedvinsky"; 9 + repo = "gsimplecal"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-r7OitN7WSY7vxpQCraLyokgUNgvaVFjE17ghBGgxzuM="; 10 12 }; 11 13 12 14 postPatch = ''