Merge pull request #247755 from R-VdP/add_main_program

Treewide: add meta.mainProgram

authored by

Robert Hensing and committed by
GitHub
d65015aa f7985a0c

+42 -14
+1
pkgs/applications/networking/cluster/terraform/default.nix
··· 65 65 zowoq 66 66 techknowlogick 67 67 ]; 68 + mainProgram = "terraform"; 68 69 }; 69 70 } // attrs'); 70 71
+9 -2
pkgs/development/ocaml-modules/ocamlformat/ocamlformat.nix
··· 1 - { lib, callPackage, buildDunePackage, re, ocamlformat-lib, menhir 2 - , version ? "0.26.0" }: 1 + { lib 2 + , callPackage 3 + , buildDunePackage 4 + , re 5 + , ocamlformat-lib 6 + , menhir 7 + , version ? "0.26.0" 8 + }: 3 9 4 10 let inherit (callPackage ./generic.nix { inherit version; }) src library_deps; 5 11 ··· 22 28 description = "Auto-formatter for OCaml code"; 23 29 maintainers = with lib.maintainers; [ Zimmi48 marsam Julow ]; 24 30 license = lib.licenses.mit; 31 + mainProgram = "ocamlformat"; 25 32 }; 26 33 }
+4 -1
pkgs/development/python-modules/isort/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 2 4 , colorama 3 5 , hypothesis 4 6 , poetry-core ··· 77 79 homepage = "https://github.com/PyCQA/isort"; 78 80 license = licenses.mit; 79 81 maintainers = with maintainers; [ couchemar ]; 82 + mainProgram = "isort"; 80 83 }; 81 84 }
+4 -2
pkgs/development/python-modules/mdformat/default.nix
··· 88 88 "mdformat" 89 89 ]; 90 90 91 - passthru = {inherit withPlugins;}; 91 + passthru = { inherit withPlugins; }; 92 92 93 93 meta = with lib; { 94 94 description = "CommonMark compliant Markdown formatter"; 95 95 homepage = "https://mdformat.rtfd.io/"; 96 96 license = with licenses; [ mit ]; 97 97 maintainers = with maintainers; [ fab aldoborrero ]; 98 + mainProgram = "mdformat"; 98 99 }; 99 100 }; 100 - in package 101 + in 102 + package
+1
pkgs/development/tools/beautysh/default.nix
··· 45 45 homepage = "https://github.com/lovesegfault/beautysh"; 46 46 license = with licenses; [ asl20 ]; 47 47 maintainers = with maintainers; [ fab ]; 48 + mainProgram = "beautysh"; 48 49 }; 49 50 }
+1
pkgs/development/tools/documentation/mdsh/default.nix
··· 18 18 homepage = "https://github.com/zimbatm/mdsh"; 19 19 license = with licenses; [ mit ]; 20 20 maintainers = with maintainers; [ zimbatm ]; 21 + mainProgram = "mdsh"; 21 22 }; 22 23 }
+1
pkgs/development/tools/dprint/default.nix
··· 28 28 homepage = "https://dprint.dev"; 29 29 license = licenses.mit; 30 30 maintainers = with maintainers; [ khushraj ]; 31 + mainProgram = "dprint"; 31 32 }; 32 33 }
+1
pkgs/development/tools/fnlfmt/default.nix
··· 37 37 license = licenses.lgpl3Plus; 38 38 platforms = lua.meta.platforms; 39 39 maintainers = with maintainers; [ chiroptical ]; 40 + mainProgram = "fnlfmt"; 40 41 }; 41 42 }
+1
pkgs/development/tools/gofumpt/default.nix
··· 18 18 homepage = "https://github.com/mvdan/gofumpt"; 19 19 license = licenses.bsd3; 20 20 maintainers = with maintainers; [ rvolosatovs ]; 21 + mainProgram = "gofumpt"; 21 22 }; 22 23 }
+1
pkgs/development/tools/google-java-format/default.nix
··· 42 42 license = licenses.asl20; 43 43 maintainers = [ maintainers.emptyflask ]; 44 44 platforms = platforms.all; 45 + mainProgram = "google-java-format"; 45 46 }; 46 47 }
+1
pkgs/development/tools/rufo/default.nix
··· 12 12 homepage = "https://github.com/ruby-formatter/rufo"; 13 13 license = licenses.mit; 14 14 maintainers = with maintainers; [ andersk ]; 15 + mainProgram = "rufo"; 15 16 }; 16 17 }
+2 -1
pkgs/development/tools/scalafmt/default.nix
··· 12 12 cp $(< deps) $out/share/java/ 13 13 ''; 14 14 outputHashMode = "recursive"; 15 - outputHash = "sha256-r4vv62H0AryjZb+34fVHvqvndipOYyf6XpQC9u8Dxso="; 15 + outputHash = "sha256-r4vv62H0AryjZb+34fVHvqvndipOYyf6XpQC9u8Dxso="; 16 16 }; 17 17 in 18 18 stdenv.mkDerivation { ··· 42 42 homepage = "http://scalameta.org/scalafmt"; 43 43 license = licenses.asl20; 44 44 maintainers = [ maintainers.markus1189 ]; 45 + mainProgram = "scalafmt"; 45 46 }; 46 47 }
+9 -7
pkgs/development/tools/shellcheck/default.nix
··· 7 7 # TODO: move to lib/ in separate PR 8 8 overrideMeta = drv: overrideFn: 9 9 let 10 - drv' = if drv ? meta then drv else drv // { meta = {}; }; 10 + drv' = if drv ? meta then drv else drv // { meta = { }; }; 11 11 pos = (builtins.unsafeGetAttrPos "pname" drv'); 12 12 meta' = drv'.meta // { 13 13 # copied from the mkDerivation code 14 14 position = pos.file + ":" + toString pos.line; 15 15 }; 16 - in drv' // { meta = meta' // overrideFn meta'; }; 16 + in 17 + drv' // { meta = meta' // overrideFn meta'; }; 17 18 18 19 bin = haskell.lib.compose.justStaticExecutables ShellCheck; 19 20 ··· 38 39 mkdir $out 39 40 ''; 40 41 41 - passthru = ShellCheck.passthru or {} // { 42 + passthru = ShellCheck.passthru or { } // { 42 43 # pandoc takes long to build and documentation isn't needed for in nixpkgs usage 43 44 unwrapped = ShellCheck; 44 45 }; 45 46 }; 46 47 47 48 in 48 - overrideMeta shellcheck (old: { 49 - maintainers = with lib.maintainers; [ zowoq ]; 50 - outputsToInstall = [ "bin" "man" "doc" ]; 51 - }) 49 + overrideMeta shellcheck (old: { 50 + maintainers = with lib.maintainers; [ zowoq ]; 51 + mainProgram = "shellcheck"; 52 + outputsToInstall = [ "bin" "man" "doc" ]; 53 + })
+1
pkgs/development/tools/stylua/default.nix
··· 31 31 changelog = "https://github.com/johnnymorganz/stylua/blob/v${version}/CHANGELOG.md"; 32 32 license = licenses.mpl20; 33 33 maintainers = with maintainers; [ figsoda ]; 34 + mainProgram = "stylua"; 34 35 }; 35 36 }
+1
pkgs/development/tools/taplo/default.nix
··· 27 27 homepage = "https://taplo.tamasfe.dev"; 28 28 license = licenses.mit; 29 29 maintainers = with maintainers; [ figsoda ]; 30 + mainProgram = "taplo"; 30 31 }; 31 32 }
+1
pkgs/development/tools/yamlfmt/default.nix
··· 20 20 homepage = "https://github.com/google/yamlfmt"; 21 21 license = licenses.asl20; 22 22 maintainers = with maintainers; [ sno2wman ]; 23 + mainProgram = "yamlfmt"; 23 24 }; 24 25 }
+2 -1
pkgs/development/tools/zprint/default.nix
··· 1 - { lib, buildGraalvmNativeImage, fetchurl }: 1 + { lib, buildGraalvmNativeImage, fetchurl }: 2 2 3 3 buildGraalvmNativeImage rec { 4 4 pname = "zprint"; ··· 28 28 homepage = "https://github.com/kkinnear/zprint"; 29 29 license = licenses.mit; 30 30 maintainers = with maintainers; [ stelcodes ]; 31 + mainProgram = "zprint"; 31 32 }; 32 33 }
+1
pkgs/tools/text/shfmt/default.nix
··· 33 33 ''; 34 34 license = licenses.bsd3; 35 35 maintainers = with maintainers; [ zowoq SuperSandro2000 ]; 36 + mainProgram = "shfmt"; 36 37 }; 37 38 }