libharu: use fetchFromGitHub and switch to pname
This commit is contained in:
parent
e1a98c3434
commit
0b95a112a5
1 changed files with 8 additions and 5 deletions
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue