mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
pactorio: 0.5.2 -> 0.6.0
This commit is contained in:
parent
8a94df3990
commit
ee2d4e689f
@ -10,27 +10,27 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "pactorio";
|
pname = "pactorio";
|
||||||
version = "0.5.2";
|
version = "0.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "figsoda";
|
owner = "figsoda";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-tRmchXDg8flvByjg6GLwwdwQgp/5NdZIgnjYgPLcLP8=";
|
sha256 = "sha256-3+irejeDltf7x+gyJxWBgvPgpQx5uU3DewU23Z4Nr/A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-FIn+6wflDAjshP2Vz/rXRTrrjPQFW63XtXo8hBHMdkg=";
|
cargoSha256 = "sha256-sAFsG+EPSmvPDFR9R0fZ5f+y/PXVpTJlMzL61vwf4SY=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ bzip2 ] ++ lib.optional stdenv.isDarwin Security;
|
buildInputs = [ bzip2 ] ++ lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
completions=($releaseDir/build/pactorio-*/out/completions)
|
installManPage artifacts/pactorio.1
|
||||||
installShellCompletion $completions/pactorio.{bash,fish} --zsh $completions/_pactorio
|
installShellCompletion artifacts/pactorio.{bash,fish} --zsh artifacts/_pactorio
|
||||||
'';
|
'';
|
||||||
|
|
||||||
GEN_COMPLETIONS = 1;
|
GEN_ARTIFACTS = "artifacts";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Mod packager for factorio";
|
description = "Mod packager for factorio";
|
||||||
|
Loading…
Reference in New Issue
Block a user