Merge pull request #126338 from nagy/libharu-style

libharu: use fetchFromGitHub and switch to pname
This commit is contained in:
Sandro 2021-06-10 20:22:32 +02:00 committed by GitHub
commit d08311487e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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";
};