diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-02-27 00:02:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 00:02:36 +0000 |
commit | ac95e31c0ca6fe6115ed63effd46d6a1a9beb5b4 (patch) | |
tree | 244e0ea5b4243b8fc947773bd72a4d3225fa73b9 /pkgs/development/tools | |
parent | d6b3e91345f5bf8c9371e1e8967a40764d252117 (diff) | |
parent | 6daf4de0662e1d895d220a4a4ddb356eb000abe9 (diff) | |
download | nixlib-ac95e31c0ca6fe6115ed63effd46d6a1a9beb5b4.tar nixlib-ac95e31c0ca6fe6115ed63effd46d6a1a9beb5b4.tar.gz nixlib-ac95e31c0ca6fe6115ed63effd46d6a1a9beb5b4.tar.bz2 nixlib-ac95e31c0ca6fe6115ed63effd46d6a1a9beb5b4.tar.lz nixlib-ac95e31c0ca6fe6115ed63effd46d6a1a9beb5b4.tar.xz nixlib-ac95e31c0ca6fe6115ed63effd46d6a1a9beb5b4.tar.zst nixlib-ac95e31c0ca6fe6115ed63effd46d6a1a9beb5b4.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/misc/drush/default.nix | 31 | ||||
-rw-r--r-- | pkgs/development/tools/misc/n98-magerun/default.nix | 41 | ||||
-rw-r--r-- | pkgs/development/tools/misc/n98-magerun2/default.nix | 38 |
3 files changed, 21 insertions, 89 deletions
diff --git a/pkgs/development/tools/misc/drush/default.nix b/pkgs/development/tools/misc/drush/default.nix deleted file mode 100644 index bd1c71109963..000000000000 --- a/pkgs/development/tools/misc/drush/default.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ lib, stdenv, fetchurl, fetchFromGitHub, php, which, makeWrapper, bash, coreutils, ncurses }: - -stdenv.mkDerivation rec { - pname = "drush"; - version = "8.4.12"; - - src = fetchurl { - url = "https://github.com/drush-ops/drush/releases/download/${version}/drush.phar"; - sha256 = "sha256-YtD9lD621LJJAM/ieL4KWvY4o4Uqo3+FWgjGYGdQQaw="; - }; - - dontUnpack = true; - - nativeBuildInputs = [ makeWrapper ]; - - installPhase = '' - mkdir -p $out/bin - install -D $src $out/libexec/drush/drush.phar - makeWrapper ${php}/bin/php $out/bin/drush \ - --add-flags "$out/libexec/drush/drush.phar" \ - --prefix PATH : "${lib.makeBinPath [ which php bash coreutils ncurses ]}" - ''; - - meta = with lib; { - description = "Command-line shell and Unix scripting interface for Drupal"; - homepage = "https://github.com/drush-ops/drush"; - license = licenses.gpl2; - maintainers = with maintainers; [ lovek323 ]; - platforms = platforms.all; - }; -} diff --git a/pkgs/development/tools/misc/n98-magerun/default.nix b/pkgs/development/tools/misc/n98-magerun/default.nix index dadca94c37b0..08196dc041af 100644 --- a/pkgs/development/tools/misc/n98-magerun/default.nix +++ b/pkgs/development/tools/misc/n98-magerun/default.nix @@ -1,46 +1,27 @@ -{ - stdenv -, fetchurl -, makeBinaryWrapper -, php -, lib -, unzip +{ lib +, fetchFromGitHub +, php81 }: -stdenv.mkDerivation (finalAttrs: { +php81.buildComposerProject (finalAttrs: { pname = "n98-magerun"; version = "2.3.0"; - src = fetchurl { - url = "https://github.com/netz98/n98-magerun/releases/download/${finalAttrs.version}/n98-magerun.phar"; - hash = "sha256-s+Cdr8zU3VBaBzxOh4nXjqPe+JPPxHWiFOEVS/86qOQ="; + src = fetchFromGitHub { + owner = "netz98"; + repo = "n98-magerun"; + rev = finalAttrs.version; + hash = "sha256-/RffdYgl2cs8mlq4vHtzUZ6j0viV8Ot/cB/cB1dstFM="; }; - dontUnpack = true; - - nativeBuildInputs = [ - makeBinaryWrapper - ]; - - installPhase = '' - runHook preInstall - - mkdir -p $out/bin $out/libexec/n98-magerun - - install -D $src $out/libexec/n98-magerun/n98-magerun.phar - makeWrapper ${php}/bin/php $out/bin/n98-magerun \ - --add-flags "$out/libexec/n98-magerun/n98-magerun.phar" \ - --prefix PATH : ${lib.makeBinPath [ unzip ]} - - runHook postInstall - ''; + vendorHash = "sha256-n608AY6AQdVuN3hfVQk02vJQ6hl/0+4LVBOsBL5o3+8="; meta = { - broken = true; # Not compatible with PHP 8.1, see https://github.com/netz98/n98-magerun/issues/1275 changelog = "https://magerun.net/category/magerun/"; description = "The swiss army knife for Magento1/OpenMage developers"; homepage = "https://magerun.net/"; license = lib.licenses.mit; + mainProgram = "n98-magerun"; maintainers = lib.teams.php.members; }; }) diff --git a/pkgs/development/tools/misc/n98-magerun2/default.nix b/pkgs/development/tools/misc/n98-magerun2/default.nix index c04b3840a437..9cd87a29ec56 100644 --- a/pkgs/development/tools/misc/n98-magerun2/default.nix +++ b/pkgs/development/tools/misc/n98-magerun2/default.nix @@ -1,45 +1,27 @@ -{ - stdenv -, fetchurl -, makeBinaryWrapper +{ lib +, fetchFromGitHub , php -, lib -, unzip }: -stdenv.mkDerivation (finalAttrs: { +php.buildComposerProject (finalAttrs: { pname = "n98-magerun2"; version = "7.3.1"; - src = fetchurl { - url = "https://github.com/netz98/n98-magerun2/releases/download/${finalAttrs.version}/n98-magerun2.phar"; - hash = "sha256-5G3sfyw8C3BwRqnK2o3upJTI/pENyaFCiMC4XGOkJT4="; + src = fetchFromGitHub { + owner = "netz98"; + repo = "n98-magerun2"; + rev = finalAttrs.version; + hash = "sha256-a1T4SmeOEKRW/xS2VBPLZt6r9JdtaJn8YVvfRnzGdb4="; }; - dontUnpack = true; - - nativeBuildInputs = [ - makeBinaryWrapper - ]; - - installPhase = '' - runHook preInstall - - mkdir -p $out/bin $out/libexec/n98-magerun2 - - install -D $src $out/libexec/n98-magerun2/n98-magerun2.phar - makeWrapper ${php}/bin/php $out/bin/n98-magerun2 \ - --add-flags "$out/libexec/n98-magerun2/n98-magerun2.phar" \ - --prefix PATH : ${lib.makeBinPath [ unzip ]} - - runHook postInstall - ''; + vendorHash = "sha256-1j0/spum4C9j/HNVlHwUehAFYJOz7YvMVlC6dtbNYK0="; meta = { changelog = "https://magerun.net/category/magerun/"; description = "The swiss army knife for Magento2 developers"; homepage = "https://magerun.net/"; license = lib.licenses.mit; + mainProgram = "n98-magerun2"; maintainers = lib.teams.php.members; }; }) |