CLI tool for migrating PDS

lets try with a flake build

Changed files
+62 -4
.tangled
workflows
+1 -4
.tangled/workflows/build.yml
···
branch: [ "main" ]
dependencies:
-
nixpkgs:
-
- gcc
-
- cargo
steps:
- name: Build project
command: |
-
cargo build
···
branch: [ "main" ]
dependencies:
steps:
- name: Build project
command: |
+
nix build
+27
flake.lock
···
···
+
{
+
"nodes": {
+
"nixpkgs": {
+
"locked": {
+
"lastModified": 1751949589,
+
"narHash": "sha256-mgFxAPLWw0Kq+C8P3dRrZrOYEQXOtKuYVlo9xvPntt8=",
+
"owner": "nixos",
+
"repo": "nixpkgs",
+
"rev": "9b008d60392981ad674e04016d25619281550a9d",
+
"type": "github"
+
},
+
"original": {
+
"owner": "nixos",
+
"ref": "nixpkgs-unstable",
+
"repo": "nixpkgs",
+
"type": "github"
+
}
+
},
+
"root": {
+
"inputs": {
+
"nixpkgs": "nixpkgs"
+
}
+
}
+
},
+
"root": "root",
+
"version": 7
+
}
+34
flake.nix
···
···
+
{
+
inputs = {
+
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
+
};
+
+
outputs = {nixpkgs, ...}: {
+
packages.x86_64-linux = {
+
default = nixpkgs.legacyPackages.x86_64-linux.callPackage (
+
{
+
rustPlatform,
+
pkg-config,
+
openssl,
+
}:
+
rustPlatform.buildRustPackage {
+
pname = "pds-migrate";
+
version = "0.1.0";
+
+
src = ./.;
+
cargoLock = {
+
lockFile = ./Cargo.lock;
+
};
+
+
nativeBuildInputs = [
+
pkg-config
+
];
+
+
buildInputs = [
+
openssl
+
];
+
}
+
) {};
+
};
+
};
+
}