Skip to content

Commit 509652f

Browse files
committed
matio: refactor
1 parent 50a4df3 commit 509652f

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

pkgs/by-name/ma/matio/package.nix

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
{ lib, stdenv, fetchurl }:
2-
stdenv.mkDerivation rec {
1+
{
2+
fetchurl,
3+
lib,
4+
stdenv,
5+
}:
6+
7+
stdenv.mkDerivation (finalAttrs: {
38
pname = "matio";
49
version = "1.5.28";
10+
511
src = fetchurl {
6-
url = "mirror://sourceforge/matio/${pname}-${version}.tar.gz";
7-
sha256 = "sha256-naaYk0ohVprwWOY0hWRmb0UCnmwrCHjKDY+WCb93uNg=";
12+
url = "mirror://sourceforge/matio/matio-${finalAttrs.version}.tar.gz";
13+
hash = "sha256-naaYk0ohVprwWOY0hWRmb0UCnmwrCHjKDY+WCb93uNg=";
814
};
915

10-
meta = with lib; {
16+
meta = {
17+
changelog = "https://sourceforge.net/p/matio/news/";
1118
description = "C library for reading and writing Matlab MAT files";
1219
homepage = "http://matio.sourceforge.net/";
13-
license = licenses.bsd2;
20+
license = lib.licenses.bsd2;
1421
maintainers = [ ];
1522
mainProgram = "matdump";
16-
platforms = platforms.all;
23+
platforms = lib.platforms.all;
1724
};
18-
}
25+
})

0 commit comments

Comments
 (0)