Loading pkgs/by-name/tr/treefmt/modules/wrapper.nix +19 −22 Original line number Diff line number Diff line Loading @@ -15,10 +15,11 @@ internal = true; }; config.result = pkgs.runCommand config.name { config.result = pkgs.symlinkJoin { pname = config.name; inherit (config.package) meta version; nativeBuildInputs = [ pkgs.makeBinaryWrapper ]; paths = [ config.package ]; env = { inherit (config) configFile; binPath = lib.makeBinPath config.runtimeInputs; Loading @@ -27,14 +28,10 @@ inherit (config) runtimeInputs; inherit config options; }; inherit (config.package) meta version; } '' mkdir -p $out/bin makeWrapper \ ${lib.getExe config.package} \ $out/bin/treefmt \ postBuild = '' wrapProgram "$out/bin/treefmt" \ --prefix PATH : "$binPath" \ --add-flags "--config-file $configFile" ''; }; } Loading
pkgs/by-name/tr/treefmt/modules/wrapper.nix +19 −22 Original line number Diff line number Diff line Loading @@ -15,10 +15,11 @@ internal = true; }; config.result = pkgs.runCommand config.name { config.result = pkgs.symlinkJoin { pname = config.name; inherit (config.package) meta version; nativeBuildInputs = [ pkgs.makeBinaryWrapper ]; paths = [ config.package ]; env = { inherit (config) configFile; binPath = lib.makeBinPath config.runtimeInputs; Loading @@ -27,14 +28,10 @@ inherit (config) runtimeInputs; inherit config options; }; inherit (config.package) meta version; } '' mkdir -p $out/bin makeWrapper \ ${lib.getExe config.package} \ $out/bin/treefmt \ postBuild = '' wrapProgram "$out/bin/treefmt" \ --prefix PATH : "$binPath" \ --add-flags "--config-file $configFile" ''; }; }