tangled
alpha
login
or
join now
nel.pet
/
pds-migrate
6
fork
atom
CLI tool for migrating PDS
6
fork
atom
overview
issues
pulls
pipelines
add flake.nix and nix build
nel.pet
7 months ago
b798f9d0
70c9ddcb
verified
This commit was signed with the committer's
known signature
.
nel.pet
SSH Key Fingerprint:
SHA256:Zd+mWw4EweOfjYKNMYyVtMSN7oj+SBabmubG4RThVEI=
+72
-2
5 changed files
expand all
collapse all
unified
split
.gitignore
.tangled
workflows
build.yml
flake.lock
flake.nix
nix
package.nix
+1
.gitignore
···
1
1
/target
2
2
+
/result
+4
-2
.tangled/workflows/build.yml
···
4
4
5
5
dependencies:
6
6
nixpkgs:
7
7
+
- cargo
7
8
- gcc
8
8
-
- cargo
9
9
+
- pkg-config
10
10
+
- openssl
9
11
10
12
steps:
11
13
- name: Build project
12
14
command: |
13
13
-
cargo build
15
15
+
nix build
+27
flake.lock
···
1
1
+
{
2
2
+
"nodes": {
3
3
+
"nixpkgs": {
4
4
+
"locked": {
5
5
+
"lastModified": 1751949589,
6
6
+
"narHash": "sha256-mgFxAPLWw0Kq+C8P3dRrZrOYEQXOtKuYVlo9xvPntt8=",
7
7
+
"owner": "nixos",
8
8
+
"repo": "nixpkgs",
9
9
+
"rev": "9b008d60392981ad674e04016d25619281550a9d",
10
10
+
"type": "github"
11
11
+
},
12
12
+
"original": {
13
13
+
"owner": "nixos",
14
14
+
"ref": "nixpkgs-unstable",
15
15
+
"repo": "nixpkgs",
16
16
+
"type": "github"
17
17
+
}
18
18
+
},
19
19
+
"root": {
20
20
+
"inputs": {
21
21
+
"nixpkgs": "nixpkgs"
22
22
+
}
23
23
+
}
24
24
+
},
25
25
+
"root": "root",
26
26
+
"version": 7
27
27
+
}
+18
flake.nix
···
1
1
+
{
2
2
+
description = "Nix flake for PDS migrate. A CLI tool for migrating between PDSs in the atmosphere (atproto network)";
3
3
+
4
4
+
inputs = {
5
5
+
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
6
6
+
};
7
7
+
8
8
+
outputs = {nixpkgs, ...}: let
9
9
+
forAllSystems = function:
10
10
+
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
11
11
+
system: function nixpkgs.legacyPackages.${system}
12
12
+
);
13
13
+
in {
14
14
+
packages = forAllSystems (pkgs: {
15
15
+
default = pkgs.callPackage ./nix/package.nix {};
16
16
+
});
17
17
+
};
18
18
+
}
+22
nix/package.nix
···
1
1
+
{
2
2
+
rustPlatform,
3
3
+
pkg-config,
4
4
+
openssl,
5
5
+
}:
6
6
+
rustPlatform.buildRustPackage {
7
7
+
pname = "pds-migrate";
8
8
+
version = "0.1.0";
9
9
+
10
10
+
src = ../.;
11
11
+
cargoLock = {
12
12
+
lockFile = ../Cargo.lock;
13
13
+
};
14
14
+
15
15
+
nativeBuildInputs = [
16
16
+
pkg-config
17
17
+
];
18
18
+
19
19
+
buildInputs = [
20
20
+
openssl
21
21
+
];
22
22
+
}