acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / kd / kdoctor / package.nix
blob7054be1b08c9d190dea2d65c9b95d7bb0460c6b2
1 { lib
2 , stdenv
3 , fetchurl
4 , unzip
5 }:
7 stdenv.mkDerivation (finalAttrs: {
8   pname = "kdoctor";
9   version = "1.1.0";
11   src = fetchurl {
12     url = "https://github.com/Kotlin/kdoctor/releases/download/v${finalAttrs.version}/kdoctor_${finalAttrs.version}+97.zip";
13     hash = "sha256-H4lpdMf1AIU8BC+6DlvcwM1wLuEl+Hd9xBli/TGFMV4=";
14   };
16   nativeBuildInputs = [ unzip ];
18   unpackPhase = ''
19     runHook preUnpack
20     unzip $src -x META-INF/*
21     runHook postUnpack
22   '';
24   installPhase = ''
25     runHook preInstall
26     install -Dm755 kdoctor -t $out/bin/
27     runHook postInstall
28   '';
30   meta = with lib; {
31     description = "Environment analysis tool for Kotlin Multiplatform Mobile";
32     longDescription = ''
33       KDoctor is a command-line tool that helps to set up the environment for
34       Kotlin Multiplatform Mobile app development.
35     '';
36     homepage = "https://github.com/Kotlin/kdoctor";
37     license = licenses.asl20;
38     mainProgram = "kdoctor";
39     maintainers = with maintainers; [ sironheart ];
40     platforms = platforms.darwin;
41     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
42   };