diff options
author | Austin Seipp <aseipp@pobox.com> | 2023-08-13 23:06:52 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2023-08-14 00:24:09 -0500 |
commit | e85b6933d543dc98a5f80525150ed048209f5e73 (patch) | |
tree | 362ccc16ca9f6b663ec22eaa26e351eb4c9a7b4f | |
parent | e08591bb820a0b8aadc0169c1c945333379b2002 (diff) |
buck2: minor tweaks
Signed-off-by: Austin Seipp <aseipp@pobox.com>
-rw-r--r-- | pkgs/development/tools/build-managers/buck2/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/development/tools/build-managers/buck2/default.nix b/pkgs/development/tools/build-managers/buck2/default.nix index bb4e224f6eb27..6becdfc280d3d 100644 --- a/pkgs/development/tools/build-managers/buck2/default.nix +++ b/pkgs/development/tools/build-managers/buck2/default.nix @@ -33,12 +33,12 @@ let buck2-version = "2023-08-01"; src = let - hashes = builtins.fromJSON (builtins.readFile ./hashes.json); - sha256 = hashes."${stdenv.hostPlatform.system}"; + allHashes = builtins.fromJSON (builtins.readFile ./hashes.json); + hash = allHashes."${stdenv.hostPlatform.system}"; url = "https://github.com/facebook/buck2/releases/download/${buck2-version}/buck2-${suffix}.zst"; - in fetchurl { inherit url sha256; }; + in fetchurl { inherit url hash; }; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "buck2"; version = "unstable-${buck2-version}"; # TODO (aseipp): kill 'unstable' once a non-prerelease is made inherit src; @@ -77,7 +77,7 @@ stdenv.mkDerivation { homepage = "https://buck2.build"; changelog = "https://github.com/facebook/buck2/releases/tag/${buck2-version}"; license = with licenses; [ asl20 /* or */ mit ]; - mainProgram = "buck2"; + mainProgram = pname; maintainers = with maintainers; [ thoughtpolice ]; platforms = [ "x86_64-linux" "aarch64-linux" |