This commit is contained in:
Michael Zhang 2024-06-30 13:25:41 -05:00
commit 3aa92e52bc
4 changed files with 100 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.direnv
result*

59
flake.lock Normal file
View file

@ -0,0 +1,59 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"id": "flake-utils",
"type": "indirect"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1719770832,
"narHash": "sha256-60+ZpoWArajSLyKMhZwiCeCbhsg9z2FlAJc3/n9g3bs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "54d99d57971230030c95ea3022f8bc862148b5b2",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

38
flake.nix Normal file
View file

@ -0,0 +1,38 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs";
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
org = "anyproto";
flakePkgs = rec {
any-sync-node =
with pkgs;
buildGoModule rec {
name = "any-sync-node";
src = fetchFromGitHub {
owner = org;
repo = name;
rev = "v0.3.34";
hash = "sha256-lp2gV9aBOckjjD5ENWXwRijVQjA8fhxa/nMd+skR9sA=";
};
vendorHash = "sha256-0Cs5j1p5AZK1CgCsTt7gOUleAwJFnHPOvlXtretAoe4=";
hardeningDisable = ["all"];
};
};
in
{
packages = flake-utils.lib.flattenTree flakePkgs;
devShell = pkgs.mkShell { packages = with pkgs; [ nixfmt-rfc-style ]; };
}
);
}