Skip to content

Commit

Permalink
matio: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Dec 16, 2024
1 parent 50a4df3 commit 509652f
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions pkgs/by-name/ma/matio/package.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
{
fetchurl,
lib,
stdenv,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "matio";
version = "1.5.28";

src = fetchurl {
url = "mirror://sourceforge/matio/${pname}-${version}.tar.gz";
sha256 = "sha256-naaYk0ohVprwWOY0hWRmb0UCnmwrCHjKDY+WCb93uNg=";
url = "mirror://sourceforge/matio/matio-${finalAttrs.version}.tar.gz";
hash = "sha256-naaYk0ohVprwWOY0hWRmb0UCnmwrCHjKDY+WCb93uNg=";
};

meta = with lib; {
meta = {
changelog = "https://sourceforge.net/p/matio/news/";
description = "C library for reading and writing Matlab MAT files";
homepage = "http://matio.sourceforge.net/";
license = licenses.bsd2;
license = lib.licenses.bsd2;
maintainers = [ ];
mainProgram = "matdump";
platforms = platforms.all;
platforms = lib.platforms.all;
};
}
})

0 comments on commit 509652f

Please sign in to comment.