lol

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