mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
Merge pull request #151552 from Stunkymonkey/libmwaw-refactor
libmwaw: refactor
This commit is contained in:
commit
9cbf096b3e
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -1,4 +0,0 @@
|
||||
url https://sourceforge.net/projects/libmwaw/files/libmwaw/
|
||||
SF_version_dir libmwaw-
|
||||
version_link '[.]tar.xz/download$'
|
||||
SF_redirect
|
Loading…
Reference in New Issue
Block a user