mockoon: init at 3.0.0

This commit is contained in:
Mostly Void 2023-06-01 17:58:35 +05:30
parent b08b78b772
commit c214eb90a1
No known key found for this signature in database
GPG Key ID: E2B7342D0CAA82C2
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, appimageTools
, fetchurl
}:
let
pname = "mockoon";
version = "3.0.0";
src = fetchurl {
url = "https://github.com/mockoon/mockoon/releases/download/v${version}/mockoon-${version}.AppImage";
hash = "sha256-YGcD/8h21fUoBEAcBVI5jo0UMCKdVRdC1zxDIrHjU+8=";
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
mv $out/bin/${pname}-${version} $out/bin/${pname}
install -Dm 444 ${appimageContents}/${pname}.desktop -t $out/share/applications
cp -r ${appimageContents}/usr/share/icons $out/share
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
'';
meta = with lib; {
description = "The easiest and quickest way to run mock APIs locally";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
homepage = "https://mockoon.com";
license = licenses.mit;
maintainers = with maintainers; [ dit7ya ];
};
}

View File

@ -18755,6 +18755,8 @@ with pkgs;
mockgen = callPackage ../development/tools/mockgen { };
mockoon = callPackage ../tools/networking/mockoon { };
modd = callPackage ../development/tools/modd { };
mold = callPackage ../development/tools/mold {