2022-12-31 17:07:58 +00:00
|
|
|
{
|
|
|
|
description = "Lumenescent Dreams Tools";
|
|
|
|
|
|
|
|
inputs = {
|
2023-03-19 00:14:21 +00:00
|
|
|
crane.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
crane.url = "github:ipetkov/crane";
|
2023-02-11 17:59:15 +00:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-22.11";
|
2022-12-31 17:07:58 +00:00
|
|
|
oxalica.url = "https://github.com/oxalica/rust-overlay/archive/master.tar.gz";
|
2023-03-19 00:14:21 +00:00
|
|
|
unstable.url = "nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2022-12-31 17:07:58 +00:00
|
|
|
};
|
|
|
|
|
2023-03-19 00:14:21 +00:00
|
|
|
outputs = inputs@{ self, nixpkgs, unstable, oxalica, crane, flake-utils, ... }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
version = builtins.string 0 8 self.lastModifiedDate;
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
craneLib = crane.lib.${system};
|
|
|
|
projects = {
|
|
|
|
glimmer = import ./glimmer/rust { inherit inputs system; };
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
2022-12-31 17:07:58 +00:00
|
|
|
{
|
2023-03-19 00:14:21 +00:00
|
|
|
packages.glimmer = projects.glimmer.package;
|
|
|
|
|
|
|
|
devShells.default =
|
2022-12-31 17:07:58 +00:00
|
|
|
let
|
|
|
|
rust_overlay = import oxalica;
|
2023-03-19 00:14:21 +00:00
|
|
|
pkgs = import nixpkgs { inherit system; overlays = [ rust_overlay ]; };
|
|
|
|
pkgs-unstable = import unstable { inherit system; overlays = [ rust_overlay ]; };
|
2022-12-31 17:07:58 +00:00
|
|
|
rust = pkgs.rust-bin.stable."1.65.0".default.override {
|
|
|
|
extensions = [ "rust-src" ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
pkgs.mkShell {
|
|
|
|
name = "ld-tools-devshell";
|
|
|
|
buildInputs = [
|
2023-02-11 17:59:15 +00:00
|
|
|
pkgs.clang
|
|
|
|
pkgs.entr
|
|
|
|
pkgs.glib
|
|
|
|
pkgs.gst_all_1.gst-plugins-bad
|
|
|
|
pkgs.gst_all_1.gst-plugins-base
|
|
|
|
pkgs.gst_all_1.gst-plugins-good
|
|
|
|
pkgs.gst_all_1.gst-plugins-ugly
|
|
|
|
pkgs.gst_all_1.gstreamer
|
2023-02-06 14:36:02 +00:00
|
|
|
pkgs.gtk4
|
2023-02-11 17:59:15 +00:00
|
|
|
pkgs.nodejs
|
2022-12-31 17:07:58 +00:00
|
|
|
pkgs.openssl
|
2023-02-11 17:59:15 +00:00
|
|
|
pkgs.pipewire
|
2023-02-06 14:36:02 +00:00
|
|
|
pkgs.pkg-config
|
2023-02-11 17:59:15 +00:00
|
|
|
pkgs.sqlite
|
2023-03-14 02:03:51 +00:00
|
|
|
pkgs-unstable.typeshare
|
2022-12-31 17:07:58 +00:00
|
|
|
rust
|
|
|
|
];
|
2023-02-11 17:59:15 +00:00
|
|
|
LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib";
|
2022-12-31 17:07:58 +00:00
|
|
|
};
|
2023-03-19 00:14:21 +00:00
|
|
|
|
|
|
|
checks = projects.glimmer.checks;
|
|
|
|
});
|
2022-12-31 17:07:58 +00:00
|
|
|
}
|