CLI tool for migrating PDS

Clean up nix definitions

nel.pet 91f93ef2 536a0429

verified
Changed files
+32 -25
nix
+1
.gitignore
···
/target
···
/target
+
/result
+11 -25
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 = ./.;
-
cargoHash = "sha256-6uUm7+bNf3MHkXZljsxMbAOEyhl4xSukIM/XzAugGYY=";
-
-
nativeBuildInputs = [
-
pkg-config
-
];
-
-
buildInputs = [
-
openssl
-
];
-
}
-
) {};
-
};
};
}
···
{
+
description = "Nix flake for PDS migrate. A CLI tool for migrating between PDSs in the atmosphere (atproto network)";
+
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
+
outputs = {nixpkgs, ...}: let
+
forAllSystems = function:
+
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
+
system: function nixpkgs.legacyPackages.${system}
+
);
+
in {
+
packages = forAllSystems (pkgs: {
+
default = pkgs.callPackage ./nix/package.nix {};
+
});
};
}
+20
nix/package.nix
···
···
+
{
+
rustPlatform,
+
pkg-config,
+
openssl,
+
}:
+
rustPlatform.buildRustPackage {
+
pname = "pds-migrate";
+
version = "0.1.0";
+
+
src = ../.;
+
cargoHash = "sha256-6uUm7+bNf3MHkXZljsxMbAOEyhl4xSukIM/XzAugGYY=";
+
+
nativeBuildInputs = [
+
pkg-config
+
];
+
+
buildInputs = [
+
openssl
+
];
+
}