libharu: use fetchFromGitHub and switch to pname

This commit is contained in:
Daniel Nagy 2021-06-09 11:26:18 +02:00
parent e1a98c3434
commit 0b95a112a5
No known key found for this signature in database
GPG key ID: 1B8E8DCB576FB671

View file

@ -1,10 +1,13 @@
{ lib, stdenv, fetchzip, cmake, zlib, libpng }:
{ lib, stdenv, fetchFromGitHub, cmake, zlib, libpng }:
stdenv.mkDerivation {
name = "libharu-2.3.0";
stdenv.mkDerivation rec {
pname = "libharu";
version = "2.3.0";
src = fetchzip {
url = "https://github.com/libharu/libharu/archive/RELEASE_2_3_0.tar.gz";
src = fetchFromGitHub {
owner = "libharu";
repo = pname;
rev = "RELEASE_${lib.replaceStrings ["."] ["_"] version}";
sha256 = "15s9hswnl3qqi7yh29jyrg0hma2n99haxznvcywmsp8kjqlyg75q";
};