Small tool to make it convenient to deduplicate records in collections, use goat instead.
cli
atproto
go
1{
2 inputs = {
3 nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
4 flake-parts.url = "github:hercules-ci/flake-parts";
5 };
6
7 outputs =
8 { flake-parts, ... }@inputs:
9 flake-parts.lib.mkFlake { inherit inputs; } {
10 systems = inputs.nixpkgs.lib.systems.flakeExposed;
11
12 perSystem =
13 { pkgs, ... }:
14
15 {
16 devShells = {
17 default = pkgs.mkShell {
18 buildInputs = [
19 pkgs.go
20 pkgs.gofumpt
21 ];
22 };
23 };
24
25 packages = {
26 default = pkgs.buildGoModule rec {
27 pname = "record-dedup";
28 version = "0.1.0";
29 src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
30 vendorHash = "sha256-++CZOfLxj7FRwixrB37edehX1Qh9e/hmrzeJdq+Vr/E=";
31 ldflags = [
32 "-s"
33 "-w"
34 "-X=main.Version=${version}"
35 ];
36 meta = {
37 description = "Small tool to make it convenient to deduplicate records in collections";
38 homepage = "https://tangled.org/karitham.dev/record-deduper";
39 license = pkgs.lib.licenses.mit;
40 mainProgram = "record-dedup";
41 };
42 };
43 };
44 };
45 };
46}