mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-03-26 14:07:18 +01:00
pkgs: Drop bonnie & perseus
This commit is contained in:
parent
bd018b6fdb
commit
4eb6d50733
12 changed files with 0 additions and 5231 deletions
|
|
@ -1,29 +0,0 @@
|
|||
{
|
||||
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=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
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; [ ];
|
||||
};
|
||||
}
|
||||
|
|
@ -3,7 +3,6 @@
|
|||
perSystem =
|
||||
{
|
||||
pkgs,
|
||||
self',
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
|
@ -14,8 +13,6 @@
|
|||
hbw = pkgs.callPackage ./hbw { };
|
||||
warcraftlogs = pkgs.callPackage ./warcraftlogs.nix { };
|
||||
frg = pkgs.callPackage ./frg.nix { };
|
||||
bonnie = pkgs.callPackage ./bonnie { };
|
||||
perseus-cli = pkgs.callPackage ./perseus { inherit (self'.packages) bonnie; };
|
||||
flex-launcher = pkgs.callPackage ./flex-launcher.nix { };
|
||||
push-to-talk = pkgs.callPackage ./push-to-talk.nix { };
|
||||
pulse8-cec = pkgs.callPackage ./pulse8-cec.nix { };
|
||||
|
|
|
|||
5051
pkgs/perseus/Cargo.lock
generated
5051
pkgs/perseus/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,68 +0,0 @@
|
|||
{
|
||||
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; [ ];
|
||||
};
|
||||
}
|
||||
|
|
@ -4,10 +4,6 @@
|
|||
path = ./rust;
|
||||
description = "My rust template using rust-overlay and direnv";
|
||||
};
|
||||
perseus = {
|
||||
path = ./perseus;
|
||||
description = "A perseus frontend with rust-overlay & direnv";
|
||||
};
|
||||
webapp = {
|
||||
path = ./webapp;
|
||||
description = "A template for a web application (frontend + backend)";
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
if ! has nix_direnv_version || ! nix_direnv_version 2.1.1; then
|
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.1/direnvrc" "sha256-b6qJ4r34rbE23yWjMqbmu3ia2z4b2wIlZUksBke/ol0="
|
||||
fi
|
||||
use flake
|
||||
1
templates/perseus/.gitignore
vendored
1
templates/perseus/.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
/target
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
[package]
|
||||
name = "todo_change_name"
|
||||
version = "0.1.0"
|
||||
authors = ["traxys <quentin@familleboyer.net>"]
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
perseus = { version = "0.4", features = ["hydrate"] }
|
||||
serde = { version = "1.0.162", features = ["derive"] }
|
||||
serde_json = "1.0.96"
|
||||
sycamore = "^0.8.1"
|
||||
|
||||
[target.'cfg(engine)'.dependencies]
|
||||
tokio = { version = "1", features = ["macros", "rt", "rt-multi-thread"] }
|
||||
perseus-axum = { version = "=0.4.0", features = ["dflt-server"] }
|
||||
|
||||
[target.'cfg(client)'.dependencies]
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
{
|
||||
description = "A basic flake with a shell";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
inputs.naersk.url = "github:nix-community/naersk";
|
||||
inputs.rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
inputs.nixfiles.url = "github:traxys/Nixfiles";
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
naersk,
|
||||
rust-overlay,
|
||||
nixfiles,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ (import rust-overlay) ];
|
||||
};
|
||||
rust = pkgs.rust-bin.stable.latest.default.override { targets = [ "wasm32-unknown-unknown" ]; };
|
||||
naersk' = pkgs.callPackage naersk {
|
||||
cargo = rust;
|
||||
rustc = rust;
|
||||
};
|
||||
in
|
||||
{
|
||||
devShell = pkgs.mkShell {
|
||||
nativeBuildInputs = [
|
||||
rust
|
||||
nixfiles.packages."${system}".perseus-cli
|
||||
];
|
||||
RUST_PATH = "${rust}";
|
||||
RUST_DOC_PATH = "${rust}/share/doc/rust/html/std/index.html";
|
||||
};
|
||||
|
||||
defaultPackage = naersk'.buildPackage ./.;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
mod error_views;
|
||||
mod templates;
|
||||
|
||||
use perseus::prelude::*;
|
||||
use sycamore::prelude::*;
|
||||
|
||||
#[perseus::main(perseus_axum::dflt_server)]
|
||||
fn main<G: Html>() -> PerseusApp<G> {
|
||||
PerseusApp::new()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue