2024-10-03 11:26:39 -05:00
|
|
|
{ lib
|
|
|
|
|
, pkgs
|
|
|
|
|
, stdenv
|
|
|
|
|
, bash
|
|
|
|
|
, curl
|
|
|
|
|
, git
|
|
|
|
|
, ruby
|
|
|
|
|
, ...
|
|
|
|
|
}:
|
2023-06-01 10:54:46 -05:00
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-10-03 11:26:39 -05:00
|
|
|
pname = "homebrew-installer";
|
|
|
|
|
version = "20230531";
|
2023-06-01 10:54:46 -05:00
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
|
owner = "Homebrew";
|
|
|
|
|
repo = "install";
|
|
|
|
|
rev = "716a1d024f32890ef75ea82c18a769abc24e9475";
|
|
|
|
|
sha256 = "sha256-xhxWWeCJm49bDzmBT2GHSC0CK1SoQArBhfh5sltGY5o=";
|
|
|
|
|
};
|
2023-06-01 10:54:46 -05:00
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
buildInputs = [
|
|
|
|
|
bash
|
|
|
|
|
curl
|
|
|
|
|
git
|
|
|
|
|
ruby
|
|
|
|
|
];
|
2023-06-01 10:54:46 -05:00
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
installPhase = ''
|
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
|
cp ${src}/install.sh $out/bin/install-homebrew.sh
|
|
|
|
|
cp ${src}/uninstall.sh $out/bin/uninstall-homebrew.sh
|
|
|
|
|
'';
|
2023-06-01 10:54:46 -05:00
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Runs the homebrew installer";
|
|
|
|
|
homepage = "https://github.com/Homebrew/";
|
|
|
|
|
license = licenses.bsd2;
|
|
|
|
|
platforms = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" "aarch64-linux" ];
|
|
|
|
|
maintainers = [ maintainers.greg ];
|
|
|
|
|
};
|
2023-06-01 10:54:46 -05:00
|
|
|
}
|