Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ name: Check Rust
on: [push]

jobs:
check:
check-rust:
uses: mikojs/actions/.github/workflows/check-rust.yml@main
check-nix:
uses: mikojs/actions/.github/workflows/check-nix.yml@main
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,35 @@ This tool is useful when you need to sync code with a remote server that doesn't

## Installation

### Cargo

```bash
cargo install --path .
```

### Nix

```nix
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
coder.url = "github:mikojs/coder";
};

outputs = { nixpkgs, coder, ... }: {
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
...
modules = [
({ pkgs, ... }: {
nixpkgs.overlays = [ coder.overlays.default ];
environment.systemPackages = [ pkgs.coder ];
})
];
};
};
}
```

## Usage

### Sync
Expand Down
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
description = "A CLI tool for syncing git repositories via bundles over SSH";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
flake-parts.url = "github:hercules-ci/flake-parts";
};

outputs =
inputs@{
self,
nixpkgs,
flake-parts,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];

perSystem =
{ pkgs, self', ... }:
{
packages = {
coder = pkgs.rustPlatform.buildRustPackage {
pname = "coder";
version = "0.1.0";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
};

default = self'.packages.coder;
};
};

flake.overlays.default = final: prev: {
coder = self.packages.${final.system}.coder;
};
};
}