Files
go-grip/flake.nix

37 lines
895 B
Nix
Raw Normal View History

2024-10-10 00:23:15 +02:00
{
description = "go-grip - render your markdown files local";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
2025-03-04 14:46:48 -03:00
outputs = {
self,
nixpkgs,
...
}: let
systems = [
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
];
forAllSystems = f:
nixpkgs.lib.genAttrs systems (system: let
pkgs = import nixpkgs {inherit system;};
2024-10-10 00:23:15 +02:00
in
2025-03-04 14:46:48 -03:00
f pkgs);
in {
packages = forAllSystems (pkgs: {
default = pkgs.buildGoModule {
name = "go-grip";
src = self;
# Only for updating vendorHas
# vendorHash = "sha256-RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR=";
vendorHash = "sha256-aU6vo/uqJzctD7Q8HPFzHXVVJwMmlzQXhAA6LSkRAow=";
};
});
devShells = forAllSystems (pkgs: {
default = self.packages.${pkgs.system}.default;
});
};
2024-10-10 00:23:15 +02:00
}