mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
34 lines
961 B
Nix
34 lines
961 B
Nix
{ fetchFromGitHub, installShellFiles, lib, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "pactorio";
|
|
version = "0.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "figsoda";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "07h9hywz0pc29411myhxjq6pks4p6q6czbqjv7fxf3xkb1mg9grq";
|
|
};
|
|
|
|
cargoSha256 = "1rac2s36j88vm231aji8d0ndfbaa2gzxwsrxrvsi0zp9cqisc6rh";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
preFixup = ''
|
|
completions=($releaseDir/build/pactorio-*/out/completions)
|
|
installShellCompletion ''${completions[0]}/pactorio.{bash,fish}
|
|
installShellCompletion --zsh ''${completions[0]}/_pactorio
|
|
'';
|
|
|
|
GEN_COMPLETIONS = "1";
|
|
|
|
meta = with lib; {
|
|
description = "Mod package for factorio";
|
|
homepage = "https://github.com/figsoda/pactorio";
|
|
changelog = "https://github.com/figsoda/pactorio/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|