voidway/flake.nix
Sakooooo f8d1a25efd
the voices
This reverts commit 7a83117f26.
2024-11-21 18:39:24 +04:00

48 lines
1.2 KiB
Nix

{
description = "nitrous";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
systems.url = "github:nix-systems/default-linux";
gomod2nix = {
url = "github:nix-community/gomod2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, systems, gomod2nix }:
let
inherit (nixpkgs) lib;
eachSystem = lib.genAttrs (import systems);
pkgs = eachSystem (system:
import nixpkgs {
localSystem = system;
overlays = [ gomod2nix.overlays.default ];
});
in {
packages = eachSystem (system: {
default = pkgs.${system}.buildGoApplication {
pname = "voidway";
version = "latest";
goPackagePath = "git.sako.lol/sako/voidway/v4";
src = ./.;
modules = ./gomod2nix.toml;
};
});
devShells = eachSystem (system: {
default = pkgs.${system}.mkShell {
name = "v-shell";
buildInputs = with pkgs.${system}; [
go
gopls
gotools
go-tools
gomod2nix.packages.${system}.default
sqlite-interactive
];
};
});
};
}