Commit efa1f973 authored by ghpzin's avatar ghpzin Committed by Matthieu Coudron
Browse files

rs: modernize

- replace `rec` with `finalAttrs`
- remove `with lib;` from `meta`
parent d27c6262
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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;
  };
}
})