visions-vtt/flake.nix

43 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2022-04-02 00:52:46 +00:00
{
2022-11-16 04:15:59 +00:00
description = "Visions VTT is a new virtual tabletop application specializing in the Cypher System by Monte Cook Games";
2022-04-02 00:52:46 +00:00
inputs = {
2022-11-16 23:00:24 +00:00
nixpkgs_22_05.url = "nixpkgs/nixos-22.05";
nixpkgs_unstable.url = "nixpkgs/nixos-unstable";
2022-04-02 00:52:46 +00:00
oxalica.url = "https://github.com/oxalica/rust-overlay/archive/master.tar.gz";
};
2022-11-16 23:00:24 +00:00
outputs = { self, nixpkgs_22_05, nixpkgs_unstable, oxalica }:
2022-04-02 00:52:46 +00:00
let
version = builtins.string 0 8 self.lastModifiedDate;
supportedSystems = [ "x86_64-linux" ];
in
{
devShell."x86_64-linux" =
let
rust_overlay = import oxalica;
2022-11-16 23:00:24 +00:00
pkgs = import nixpkgs_22_05 { system = "x86_64-linux"; overlays = [ rust_overlay ]; };
pkgs_unstable = import nixpkgs_unstable { system = "x86_64-linux"; };
2022-11-16 04:15:59 +00:00
rust = pkgs.rust-bin.stable."1.65.0".default.override {
2022-04-02 00:52:46 +00:00
extensions = [ "rust-src" ];
};
in
pkgs.mkShell {
2022-11-16 04:15:59 +00:00
name = "visions-vtt-shell";
2022-04-02 00:52:46 +00:00
buildInputs = [
pkgs.gtk3
pkgs.libappindicator
2022-04-02 00:54:48 +00:00
pkgs.nodejs
2022-04-02 00:52:46 +00:00
pkgs.openssl
2022-04-02 00:54:48 +00:00
pkgs.pkg-config
pkgs.sqlite
2022-11-16 04:15:59 +00:00
pkgs.webkitgtk
2022-11-16 23:00:24 +00:00
pkgs.vite
2022-11-16 23:13:10 +00:00
pkgs.dbus
2022-11-16 23:00:24 +00:00
pkgs_unstable.cargo-tauri
2022-04-02 00:54:48 +00:00
rust
2022-04-02 00:52:46 +00:00
];
};
};
}