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