Commit 0cb6287b authored by Anthony ROUSSEL's avatar Anthony ROUSSEL
Browse files

cowsay: format with nixfmt-rfc-style

parent 960ba4dc
Loading
Loading
Loading
Loading
+20 −7
Original line number Diff line number Diff line
{ lib, stdenv, perl, fetchFromGitHub, makeWrapper, nix-update-script, testers }:
{
  lib,
  fetchFromGitHub,
  makeWrapper,
  nix-update-script,
  perl,
  stdenv,
  testers,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "cowsay";
  version = "3.8.1";

  outputs = [ "out" "man" ];
  outputs = [
    "out"
    "man"
  ];

  src = fetchFromGitHub {
    owner = "cowsay-org";
@@ -14,17 +25,16 @@ stdenv.mkDerivation (finalAttrs: {
  };

  nativeBuildInputs = [ makeWrapper ];

  buildInputs = [ perl ];

  makeFlags = [ "prefix=${placeholder "out"}" ];

  postInstall = ''
    wrapProgram $out/bin/cowsay \
      --suffix COWPATH : $out/share/cowsay/cows
  '';

  makeFlags = [
    "prefix=${placeholder "out"}"
  ];

  passthru = {
    updateScript = nix-update-script { };
    tests.version = testers.testVersion {
@@ -39,7 +49,10 @@ stdenv.mkDerivation (finalAttrs: {
    changelog = "https://github.com/cowsay-org/cowsay/releases/tag/v${finalAttrs.version}";
    license = licenses.gpl3Only;
    platforms = platforms.all;
    maintainers = with maintainers; [ rob anthonyroussel ];
    maintainers = with maintainers; [
      rob
      anthonyroussel
    ];
    mainProgram = "cowsay";
  };
})