Unverified Commit 20639319 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #329374 from dotlambda/checkbashisms

checkbashisms: 2.22.1 -> 2.23.7
parents 89412b43 45641f52
Loading
Loading
Loading
Loading
+19 −6
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, perl, installShellFiles }:
stdenv.mkDerivation rec {
  version = "2.22.1";
{
  lib,
  stdenv,
  fetchurl,
  installShellFiles,
  perl,
  testers,
}:

stdenv.mkDerivation (finalAttrs: {
  version = "2.23.7";
  pname = "checkbashisms";

  src = fetchurl {
    url = "mirror://debian/pool/main/d/devscripts/devscripts_${version}.tar.xz";
    hash = "sha256-Nd1eYCnSe+NblujG44uKpvunkaITcdrC3g+M3uX+M9U=";
    url = "mirror://debian/pool/main/d/devscripts/devscripts_${finalAttrs.version}.tar.xz";
    hash = "sha256-nOnlE1Ry2GR+L/tWZV4AOR6Omap6SormBc8OH/2fNgk=";
  };

  nativeBuildInputs = [ installShellFiles ];
@@ -29,12 +37,17 @@ stdenv.mkDerivation rec {
    runHook postInstall
  '';

  passthru.tests = {
    version = testers.testVersion { package = finalAttrs.finalPackage; };
  };

  meta = {
    homepage = "https://sourceforge.net/projects/checkbaskisms/";
    changelog = "https://salsa.debian.org/debian/devscripts/-/blob/v${finalAttrs.version}/debian/changelog";
    description = "Check shell scripts for non-portable syntax";
    mainProgram = "checkbashisms";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ kaction ];
    platforms = lib.platforms.unix;
  };
}
})