mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-16 04:10:20 +01:00
pkgs: Add perseus-cli
This commit is contained in:
parent
535f2e44c0
commit
139b15a6bf
4 changed files with 5148 additions and 1 deletions
27
pkgs/bonnie/default.nix
Normal file
27
pkgs/bonnie/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "bonnie";
|
||||
version = "0.3.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "arctic-hen7";
|
||||
repo = "bonnie";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-mFy3rvISFTbtB4Jn3vnjRG1cfQpvaD8iomgTI32lJtY=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
cargoHash = "sha256-fdkw2QB4n2kbuQtvQ0IagGxEvlnurExTW4UKdwSx93M=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple, cross-platform, and fast command aliases with superpowers";
|
||||
homepage = "https://github.com/arctic-hen7/bonnie";
|
||||
changelog = "https://github.com/arctic-hen7/bonnie/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
callPackage,
|
||||
sources,
|
||||
naersk,
|
||||
}: {
|
||||
}: rec {
|
||||
oscclip = callPackage ./oscclip.nix {oscclip-src = sources.oscclip;};
|
||||
wowup = callPackage ./wowup.nix {};
|
||||
simulationcraft = callPackage ./simulationcraft.nix {simulationcraft-src = sources.simulationcraft;};
|
||||
|
|
@ -19,4 +19,6 @@
|
|||
};
|
||||
frg = callPackage ./frg.nix {};
|
||||
lemminx-bin = callPackage ./lemminx-bin.nix {};
|
||||
bonnie = callPackage ./bonnie {};
|
||||
perseus-cli = callPackage ./perseus {inherit bonnie;};
|
||||
}
|
||||
|
|
|
|||
5051
pkgs/perseus/Cargo.lock
generated
Normal file
5051
pkgs/perseus/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
67
pkgs/perseus/default.nix
Normal file
67
pkgs/perseus/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, rustPlatform
|
||||
, openssl
|
||||
, zstd
|
||||
, darwin
|
||||
, bonnie
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "perseus";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "framesurge";
|
||||
repo = "perseus";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-0jGXoSZeAt+Fo08hGEHiYcookqean6qD7F6mhTGfb2M=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.importCargoLock {
|
||||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
ln -s ${./Cargo.lock} Cargo.lock
|
||||
'';
|
||||
|
||||
buildAndTestSubdir = "packages/perseus-cli";
|
||||
cargoBuildType = "release";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.cargoBuildHook
|
||||
rustPlatform.cargoInstallHook
|
||||
rustPlatform.rust.cargo
|
||||
rustPlatform.rust.rustc
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
zstd
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreFoundation
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
bonnie test cli
|
||||
'';
|
||||
|
||||
env = {
|
||||
ZSTD_SYS_USE_PKG_CONFIG = true;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A state-driven web development framework for Rust with full support for server-side rendering and static generation";
|
||||
homepage = "https://github.com/framesurge/perseus";
|
||||
changelog = "https://github.com/framesurge/perseus/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue