libmwaw: refactor

This commit is contained in:
Felix Buehler 2021-12-21 12:41:33 +01:00
parent 459f9fe2be
commit 5be38cc1e4
2 changed files with 20 additions and 27 deletions

View file

@ -1,32 +1,29 @@
{lib, stdenv, fetchurl, boost, pkg-config, cppunit, zlib, libwpg, libwpd, librevenge}:
let
s = # Generated upstream information
rec {
baseName="libmwaw";
version="0.3.21";
name="${baseName}-${version}";
hash="sha256-6HUBI6eNYblDzveLdzbIp/ILsKZJqhEkAhJPunlPwhw=";
url="mirror://sourceforge/libmwaw/libmwaw/libmwaw-0.3.21/libmwaw-0.3.21.tar.xz";
sha256="sha256-6HUBI6eNYblDzveLdzbIp/ILsKZJqhEkAhJPunlPwhw=";
{ lib, stdenv, fetchurl, boost, pkg-config, cppunit, zlib, libwpg, libwpd, librevenge }:
stdenv.mkDerivation rec {
pname = "libmwaw";
version = "0.3.21";
src = fetchurl {
url = "mirror://sourceforge/libmwaw/libmwaw/libmwaw-${version}/libmwaw-${version}.tar.xz";
sha256 = "sha256-6HUBI6eNYblDzveLdzbIp/ILsKZJqhEkAhJPunlPwhw=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
boost cppunit zlib libwpg libwpd librevenge
boost
cppunit
zlib
libwpg
libwpd
librevenge
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit nativeBuildInputs buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
enableParallelBuilding = true;
meta = {
inherit (s) version;
meta = with lib; {
description = "Import library for some old mac text documents";
license = lib.licenses.mpl20 ;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.unix;
license = licenses.mpl20;
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
};
}

View file

@ -1,4 +0,0 @@
url https://sourceforge.net/projects/libmwaw/files/libmwaw/
SF_version_dir libmwaw-
version_link '[.]tar.xz/download$'
SF_redirect