mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Package autokuma/kuma-cli
This commit is contained in:
parent
563506d670
commit
403623428e
2 changed files with 30 additions and 0 deletions
29
flake/packages.nix
Normal file
29
flake/packages.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
_:
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages.kuma-cli = pkgs.rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "kuma-cli";
|
||||
version = "1.0.0";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "BigBoot";
|
||||
repo = "AutoKuma";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-o1W0ssR4cjzx9VWg3qS2RhJEe4y4Ez/Y+4yRgXs6q0Y=";
|
||||
};
|
||||
|
||||
cargoRoot = "kuma-cli";
|
||||
buildAndTestSubdir = finalAttrs.cargoRoot;
|
||||
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
|
||||
|
||||
postUnpack = ''
|
||||
cp ${finalAttrs.src}/Cargo.lock ${finalAttrs.cargoRoot}/Cargo.lock
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
buildInputs = [ pkgs.openssl.dev ];
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue