mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 05:17:38 +00:00
Treewide: add meta.mainProgram
This commit is contained in:
parent
3013bd06cb
commit
6b3a4030de
@ -65,6 +65,7 @@ let
|
||||
zowoq
|
||||
techknowlogick
|
||||
];
|
||||
mainProgram = "terraform";
|
||||
};
|
||||
} // attrs');
|
||||
|
||||
|
@ -1,5 +1,11 @@
|
||||
{ lib, callPackage, buildDunePackage, re, ocamlformat-lib, menhir
|
||||
, version ? "0.26.0" }:
|
||||
{ lib
|
||||
, callPackage
|
||||
, buildDunePackage
|
||||
, re
|
||||
, ocamlformat-lib
|
||||
, menhir
|
||||
, version ? "0.26.0"
|
||||
}:
|
||||
|
||||
let inherit (callPackage ./generic.nix { inherit version; }) src library_deps;
|
||||
|
||||
@ -22,5 +28,6 @@ in buildDunePackage {
|
||||
description = "Auto-formatter for OCaml code";
|
||||
maintainers = with lib.maintainers; [ Zimmi48 marsam Julow ];
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "ocamlformat";
|
||||
};
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, colorama
|
||||
, hypothesis
|
||||
, poetry-core
|
||||
@ -77,5 +79,6 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/PyCQA/isort";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ couchemar ];
|
||||
mainProgram = "isort";
|
||||
};
|
||||
}
|
||||
|
@ -88,13 +88,15 @@ let
|
||||
"mdformat"
|
||||
];
|
||||
|
||||
passthru = {inherit withPlugins;};
|
||||
passthru = { inherit withPlugins; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "CommonMark compliant Markdown formatter";
|
||||
homepage = "https://mdformat.rtfd.io/";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab aldoborrero ];
|
||||
mainProgram = "mdformat";
|
||||
};
|
||||
};
|
||||
in package
|
||||
in
|
||||
package
|
||||
|
@ -45,5 +45,6 @@ python3.pkgs.buildPythonApplication rec {
|
||||
homepage = "https://github.com/lovesegfault/beautysh";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "beautysh";
|
||||
};
|
||||
}
|
||||
|
@ -18,5 +18,6 @@ rustPlatform.buildRustPackage rec {
|
||||
homepage = "https://github.com/zimbatm/mdsh";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ zimbatm ];
|
||||
mainProgram = "mdsh";
|
||||
};
|
||||
}
|
||||
|
@ -28,5 +28,6 @@ rustPlatform.buildRustPackage rec {
|
||||
homepage = "https://dprint.dev";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ khushraj ];
|
||||
mainProgram = "dprint";
|
||||
};
|
||||
}
|
||||
|
@ -37,5 +37,6 @@ stdenv.mkDerivation rec {
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = lua.meta.platforms;
|
||||
maintainers = with maintainers; [ chiroptical ];
|
||||
mainProgram = "fnlfmt";
|
||||
};
|
||||
}
|
||||
|
@ -18,5 +18,6 @@ buildGoModule rec {
|
||||
homepage = "https://github.com/mvdan/gofumpt";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ rvolosatovs ];
|
||||
mainProgram = "gofumpt";
|
||||
};
|
||||
}
|
||||
|
@ -42,5 +42,6 @@ stdenv.mkDerivation rec {
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.emptyflask ];
|
||||
platforms = platforms.all;
|
||||
mainProgram = "google-java-format";
|
||||
};
|
||||
}
|
||||
|
@ -12,5 +12,6 @@ bundlerApp {
|
||||
homepage = "https://github.com/ruby-formatter/rufo";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ andersk ];
|
||||
mainProgram = "rufo";
|
||||
};
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ let
|
||||
cp $(< deps) $out/share/java/
|
||||
'';
|
||||
outputHashMode = "recursive";
|
||||
outputHash = "sha256-r4vv62H0AryjZb+34fVHvqvndipOYyf6XpQC9u8Dxso=";
|
||||
outputHash = "sha256-r4vv62H0AryjZb+34fVHvqvndipOYyf6XpQC9u8Dxso=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
@ -42,5 +42,6 @@ stdenv.mkDerivation {
|
||||
homepage = "http://scalameta.org/scalafmt";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.markus1189 ];
|
||||
mainProgram = "scalafmt";
|
||||
};
|
||||
}
|
||||
|
@ -7,13 +7,14 @@ let
|
||||
# TODO: move to lib/ in separate PR
|
||||
overrideMeta = drv: overrideFn:
|
||||
let
|
||||
drv' = if drv ? meta then drv else drv // { meta = {}; };
|
||||
drv' = if drv ? meta then drv else drv // { meta = { }; };
|
||||
pos = (builtins.unsafeGetAttrPos "pname" drv');
|
||||
meta' = drv'.meta // {
|
||||
# copied from the mkDerivation code
|
||||
position = pos.file + ":" + toString pos.line;
|
||||
};
|
||||
in drv' // { meta = meta' // overrideFn meta'; };
|
||||
in
|
||||
drv' // { meta = meta' // overrideFn meta'; };
|
||||
|
||||
bin = haskell.lib.compose.justStaticExecutables ShellCheck;
|
||||
|
||||
@ -38,14 +39,15 @@ let
|
||||
mkdir $out
|
||||
'';
|
||||
|
||||
passthru = ShellCheck.passthru or {} // {
|
||||
passthru = ShellCheck.passthru or { } // {
|
||||
# pandoc takes long to build and documentation isn't needed for in nixpkgs usage
|
||||
unwrapped = ShellCheck;
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
overrideMeta shellcheck (old: {
|
||||
maintainers = with lib.maintainers; [ zowoq ];
|
||||
outputsToInstall = [ "bin" "man" "doc" ];
|
||||
})
|
||||
overrideMeta shellcheck (old: {
|
||||
maintainers = with lib.maintainers; [ zowoq ];
|
||||
mainProgram = "shellcheck";
|
||||
outputsToInstall = [ "bin" "man" "doc" ];
|
||||
})
|
||||
|
@ -31,5 +31,6 @@ rustPlatform.buildRustPackage rec {
|
||||
changelog = "https://github.com/johnnymorganz/stylua/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
mainProgram = "stylua";
|
||||
};
|
||||
}
|
||||
|
@ -27,5 +27,6 @@ rustPlatform.buildRustPackage rec {
|
||||
homepage = "https://taplo.tamasfe.dev";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
mainProgram = "taplo";
|
||||
};
|
||||
}
|
||||
|
@ -20,5 +20,6 @@ buildGoModule rec {
|
||||
homepage = "https://github.com/google/yamlfmt";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ sno2wman ];
|
||||
mainProgram = "yamlfmt";
|
||||
};
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, buildGraalvmNativeImage, fetchurl }:
|
||||
{ lib, buildGraalvmNativeImage, fetchurl }:
|
||||
|
||||
buildGraalvmNativeImage rec {
|
||||
pname = "zprint";
|
||||
@ -28,5 +28,6 @@ buildGraalvmNativeImage rec {
|
||||
homepage = "https://github.com/kkinnear/zprint";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ stelcodes ];
|
||||
mainProgram = "zprint";
|
||||
};
|
||||
}
|
||||
|
@ -33,5 +33,6 @@ buildGoModule rec {
|
||||
'';
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ zowoq SuperSandro2000 ];
|
||||
mainProgram = "shfmt";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user