bonfire/packages/cargo-shuttle/default.nix

47 lines
894 B
Nix
Raw Normal View History

2024-04-22 00:26:36 +05:00
{
bonLib,
craneLib,
lib,
pkgs,
version ? "v0.47.0",
hash ? "sha256-AJ+7IUxi5SRRWw0EHh9JmQHkdQU3Mhd1Nmo1peEG2zg=",
...
}: let
pkg = {
2024-04-22 00:26:36 +05:00
pname = "cargo-shuttle";
inherit version;
src = pkgs.fetchFromGitHub {
owner = "shuttle-hq";
repo = "shuttle";
rev = version;
hash = hash;
2024-04-22 00:26:36 +05:00
};
strictDeps = true;
doCheck = false;
2024-04-22 00:26:36 +05:00
nativeBuildInputs = with pkgs; [
pkg-config
2024-04-22 00:26:36 +05:00
];
buildInputs = with pkgs; [
openssl
zlib
2024-04-22 00:26:36 +05:00
];
meta = with lib; {
description = "A cargo command for the shuttle platform";
license = licenses.asl20;
homepage = "https://shuttle.rs/";
maintainers = with bonLib.maintainers; [L-Nafaryus];
platforms = platforms.x86_64;
2024-04-22 00:26:36 +05:00
};
};
in let
cargoArtifacts = craneLib.buildDepsOnly pkg;
in
craneLib.buildPackage (
pkg // {inherit cargoArtifacts;}
)