wv: move to finalAttrs

Use the github mirror
Add link to github homepage
This commit is contained in:
John Titor 2024-04-27 18:37:04 +05:30
parent 71d9d20dc9
commit 07fcb5e223
No known key found for this signature in database
GPG key ID: 29B0514F4E3C1CC0

View file

@ -1,16 +1,18 @@
{ lib, stdenv, fetchurl, zlib, imagemagick, libpng, glib, pkg-config, libgsf
{ lib, stdenv, fetchFromGitHub, zlib, imagemagick, libpng, glib, pkg-config, libgsf
, libxml2, bzip2
, autoreconfHook
, buildPackages
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "wv";
version = "1.2.9";
src = fetchurl {
url = "http://www.abisource.com/downloads/${pname}/${version}/${pname}-${version}.tar.gz";
sha256 = "17f16lkdv1c3amaz2hagiicih59ynpp4786k1m2qa1sw68xhswsc";
src = fetchFromGitHub {
owner = "AbiWord";
repo = "wv";
rev = "wv-${builtins.replaceStrings ["."] ["-"] finalAttrs.version}";
hash = "sha256-xcC+/M1EzFqQFeF5Dw9qd8VIy7r8JdKMp2X/GHkFiPA=";
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
@ -30,8 +32,9 @@ stdenv.mkDerivation rec {
'';
meta = {
homepage = "https://github.com/AbiWord/wv";
description = "Converter from Microsoft Word formats to human-editable ones";
platforms = lib.platforms.unix;
license = lib.licenses.gpl2;
};
}
})