new: packages: cargo-shuttle
This commit is contained in:
parent
e4da1f6112
commit
f407c2364b
40
packages/cargo-shuttle/default.nix
Normal file
40
packages/cargo-shuttle/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -7,8 +7,14 @@ let
|
||||
|
||||
in forAllSystems(system:
|
||||
let
|
||||
bonfire = self;
|
||||
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 {
|
||||
|
||||
example = pkgs.callPackage ./example { inherit bonfire; };
|
||||
@ -24,4 +30,6 @@ in forAllSystems(system:
|
||||
lego = pkgs.callPackage ./lego { inherit bonfire; };
|
||||
|
||||
ultimmc = pkgs.libsForQt5.callPackage ./ultimmc { inherit bonfire; };
|
||||
|
||||
cargo-shuttle = pkgs.callPackage ./cargo-shuttle { inherit bonfire crane-lib; };
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user