this repo has no description
1{
2 description = "Sync Leaflet/Bluesky blog posts to Hugo-compatible markdown";
3
4 inputs = {
5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6 flake-utils.url = "github:numtide/flake-utils";
7 };
8
9 outputs = { self, nixpkgs, flake-utils }:
10 flake-utils.lib.eachDefaultSystem (system:
11 let
12 pkgs = nixpkgs.legacyPackages.${system};
13 in
14 {
15 packages = {
16 default = pkgs.buildGoModule {
17 pname = "leaflet-hugo-sync";
18 version = "0.1.0";
19
20 src = ./.;
21
22 vendorHash = "sha256-ruru71ASUBsvOByM58X0eoJTfEhtdijpt9d2g6DXnvI=";
23
24 subPackages = [ "cmd/leaflet-hugo-sync" ];
25
26 ldflags = [
27 "-s"
28 "-w"
29 ];
30
31 meta = with pkgs.lib; {
32 description = "Sync Leaflet (ATproto) blog posts to Hugo-compatible markdown";
33 homepage = "https://github.com/mariuskimmina/leaflet-hugo-sync";
34 license = licenses.mit;
35 mainProgram = "leaflet-hugo-sync";
36 };
37 };
38
39 leaflet-hugo-sync = self.packages.${system}.default;
40 };
41
42 devShells.default = pkgs.mkShell {
43 buildInputs = with pkgs; [
44 go
45 gopls
46 gotools
47 go-tools
48 delve
49 ];
50
51 shellHook = ''
52 echo "leaflet-hugo-sync development environment"
53 echo "Go version: $(go version)"
54 echo "Available commands:"
55 echo " go build -o leaflet-hugo-sync ./cmd/leaflet-hugo-sync"
56 '';
57 };
58
59 apps.default = {
60 type = "app";
61 program = "${self.packages.${system}.default}/bin/leaflet-hugo-sync";
62 };
63 }
64 );
65}