2024-04-22 00:26:36 +05:00
|
|
|
{
|
|
|
|
bonfire,
|
|
|
|
crane-lib,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-04-23 14:52:51 +05:00
|
|
|
version ? "v0.44.0",
|
|
|
|
hash ? "sha256-3u2GWgDQpa4sU/66vS6S+JwCEL/fvy8MTsATRs7RGVs=",
|
2024-04-22 00:26:36 +05:00
|
|
|
...
|
|
|
|
}:
|
2024-04-23 14:52:51 +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-04-22 00:26:36 +05:00
|
|
|
owner = "shuttle-hq";
|
|
|
|
repo = "shuttle";
|
|
|
|
rev = version;
|
|
|
|
hash = hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
2024-04-23 14:52:51 +05:00
|
|
|
doCheck = false;
|
2024-04-22 00:26:36 +05:00
|
|
|
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A cargo command for the shuttle platform";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://shuttle.rs/";
|
|
|
|
maintainers = with bonfire.lib.maintainers; [ L-Nafaryus ];
|
|
|
|
};
|
2024-04-23 14:52:51 +05:00
|
|
|
};
|
2024-04-23 16:53:39 +05:00
|
|
|
in let cargoArtifacts = crane-lib.buildDepsOnly pkg;
|
2024-04-23 14:52:51 +05:00
|
|
|
in crane-lib.buildPackage (
|
2024-04-23 16:53:39 +05:00
|
|
|
pkg // { inherit cargoArtifacts; }
|
2024-04-23 14:52:51 +05:00
|
|
|
)
|