ghettoptt/flake.nix

39 lines
936 B
Nix
Raw Normal View History

2024-03-09 19:34:21 +00:00
{
2024-03-09 21:59:04 +00:00
description = "Jank workaround for mumble PTT";
2024-03-09 19:34:21 +00:00
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
allSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
overlays.default = final: prev: {
2024-03-09 21:59:04 +00:00
ghettoptt = self.packages.${prev.system}.default;
2024-03-09 19:34:21 +00:00
};
packages = forAllSystems ({ pkgs }: {
default = pkgs.buildGoModule {
name = "ghettoptt";
src = ./.;
2024-03-18 11:19:16 +00:00
vendorHash = "sha256-WhlifAFIqoBNhBWGmYgHc5DWmdhHnK/2kYbEF/DOclw=";
2024-03-09 19:34:21 +00:00
};
});
devShells = forAllSystems ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
go
];
};
});
};
}