rs: modernize

- replace `rec` with `finalAttrs`
- remove `with lib;` from `meta`
This commit is contained in:
ghpzin
2025-03-30 20:01:15 +03:00
committed by Matthieu Coudron
parent d27c6262e6
commit efa1f97317

View File

@@ -6,12 +6,12 @@
libbsd,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "rs";
version = "20200313";
src = fetchurl {
url = "https://www.mirbsd.org/MirOS/dist/mir/rs/rs-${version}.tar.gz";
url = "https://www.mirbsd.org/MirOS/dist/mir/rs/rs-${finalAttrs.version}.tar.gz";
hash = "sha256-kZIV3J/oWiejC/Y9VkBs+1A/n8mCAyPEvTv+daajvD8=";
};
@@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
meta = with lib; {
meta = {
homepage = "http://www.mirbsd.org/htman/i386/man1/rs.htm";
description = "Reshape a data array from standard input";
mainProgram = "rs";
@@ -66,8 +66,8 @@ stdenv.mkDerivation rec {
to control presentation of the output columns, including transposition of
the rows and columns.
'';
license = licenses.bsd3;
maintainers = with maintainers; [ ];
platforms = platforms.unix;
license = lib.licenses.bsd3;
maintainers = [ ];
platforms = lib.platforms.unix;
};
}
})