mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
Merge pull request #126338 from nagy/libharu-style
libharu: use fetchFromGitHub and switch to pname
This commit is contained in:
commit
d08311487e
@ -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 New Issue
Block a user