Basic package structure

This commit is contained in:
Kiana Sheibani 2023-08-26 03:37:24 -04:00
parent 1987cdaaf8
commit 44c21d95ae
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
9 changed files with 2098 additions and 0 deletions

26
flake.nix Normal file
View file

@ -0,0 +1,26 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs@{ self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in {
packages.ggelo = pkgs.rustPlatform.buildRustPackage {
pname = "ggelo";
version = "0.1.0";
src = ./.;
cargoBuildFlags = "-p cli";
cargoLock.lockFile = ./Cargo.lock;
};
packages.default = self.packages.${system}.ggelo;
devShells.default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.ggelo ];
packages = [ pkgs.rust-analyzer ];
};
});
}