From b8dcdcc45aa39a1e5587b80930cd17ef15f3424b Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sat, 2 Sep 2023 21:56:06 +0200 Subject: [PATCH] gretl: reformat files using `nixpkgs-fmt` --- .../science/math/gretl/default.nix | 35 ++++++++++++++----- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/science/math/gretl/default.nix b/pkgs/applications/science/math/gretl/default.nix index 23abe67354e..16a4d71e051 100644 --- a/pkgs/applications/science/math/gretl/default.nix +++ b/pkgs/applications/science/math/gretl/default.nix @@ -1,5 +1,20 @@ -{ lib, stdenv, fetchurl, curl, fftw, gmp, gnuplot, gtk3, gtksourceview3, json-glib -, lapack, libxml2, mpfr, openblas, pkg-config, readline }: +{ lib +, stdenv +, fetchurl +, curl +, fftw +, gmp +, gnuplot +, gtk3 +, gtksourceview3 +, json-glib +, lapack +, libxml2 +, mpfr +, openblas +, readline +, pkg-config +}: stdenv.mkDerivation rec { pname = "gretl"; @@ -7,7 +22,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://sourceforge/gretl/${pname}-${version}.tar.xz"; - sha256 = "sha256-Hf025JjFxde43TN/1m9PeA1uHqxKTZMI8+1qf3XJLGs="; + hash = "sha256-Hf025JjFxde43TN/1m9PeA1uHqxKTZMI8+1qf3XJLGs="; }; buildInputs = [ @@ -25,7 +40,9 @@ stdenv.mkDerivation rec { readline ]; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ + pkg-config + ]; enableParallelBuilding = true; # Missing install depends: @@ -33,15 +50,15 @@ stdenv.mkDerivation rec { # make[1]: *** [Makefile:73: install_datafiles] Error 1 enableParallelInstalling = false; - meta = with lib; { + meta = { description = "A software package for econometric analysis"; + homepage = "https://gretl.sourceforge.net"; + license = lib.licenses.gpl3; longDescription = '' gretl is a cross-platform software package for econometric analysis, written in the C programming language. ''; - homepage = "https://gretl.sourceforge.net"; - license = licenses.gpl3; - maintainers = with maintainers; [ dmrauh ]; - platforms = with platforms; all; + maintainers = with lib.maintainers; [ dmrauh ]; + platforms = lib.platforms.all; }; }