new: packages: cargo-shuttle

This commit is contained in:
L-Nafaryus 2024-04-22 00:26:36 +05:00
parent e4da1f6112
commit f407c2364b
Signed by: L-Nafaryus
GPG Key ID: 582F8B0866B294A1
2 changed files with 49 additions and 1 deletions

View File

@ -0,0 +1,40 @@
{
bonfire,
crane-lib,
lib,
pkgs,
fetchFromGitHub,
version ? "v0.43.0",
hash ? "sha256-wMtB7oWcbLQ3E0R6b2QbEHSeOYwZgeUuiwJlL8W9wlI=",
...
}:
crane-lib.buildPackage {
pname = "cargo-shuttle";
inherit version;
src = fetchFromGitHub {
owner = "shuttle-hq";
repo = "shuttle";
rev = version;
hash = hash;
};
strictDeps = true;
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 ];
broken = true;
};
}

View File

@ -7,8 +7,14 @@ let
in forAllSystems(system: in forAllSystems(system:
let let
bonfire = self;
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
bonfire = self;
bonfire-lib = self.lib;
bonfire-pkgs = self.packages.${system};
crane = self.inputs.crane;
crane-lib = self.inputs.crane.lib.${system};
in { in {
example = pkgs.callPackage ./example { inherit bonfire; }; example = pkgs.callPackage ./example { inherit bonfire; };
@ -24,4 +30,6 @@ in forAllSystems(system:
lego = pkgs.callPackage ./lego { inherit bonfire; }; lego = pkgs.callPackage ./lego { inherit bonfire; };
ultimmc = pkgs.libsForQt5.callPackage ./ultimmc { inherit bonfire; }; ultimmc = pkgs.libsForQt5.callPackage ./ultimmc { inherit bonfire; };
cargo-shuttle = pkgs.callPackage ./cargo-shuttle { inherit bonfire crane-lib; };
}) })