CLI tool for migrating PDS

Clean up nix definitions

nel.pet 91f93ef2 536a0429

verified
+32 -25
+1
.gitignore
··· 1 1 /target 2 + /result
+11 -25
flake.nix
··· 1 1 { 2 + description = "Nix flake for PDS migrate. A CLI tool for migrating between PDSs in the atmosphere (atproto network)"; 3 + 2 4 inputs = { 3 5 nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; 4 6 }; 5 7 6 - outputs = {nixpkgs, ...}: { 7 - packages.x86_64-linux = { 8 - default = nixpkgs.legacyPackages.x86_64-linux.callPackage ( 9 - { 10 - rustPlatform, 11 - pkg-config, 12 - openssl, 13 - }: 14 - rustPlatform.buildRustPackage { 15 - pname = "pds-migrate"; 16 - version = "0.1.0"; 17 - 18 - src = ./.; 19 - cargoHash = "sha256-6uUm7+bNf3MHkXZljsxMbAOEyhl4xSukIM/XzAugGYY="; 20 - 21 - nativeBuildInputs = [ 22 - pkg-config 23 - ]; 24 - 25 - buildInputs = [ 26 - openssl 27 - ]; 28 - } 29 - ) {}; 30 - }; 8 + outputs = {nixpkgs, ...}: let 9 + forAllSystems = function: 10 + nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed ( 11 + system: function nixpkgs.legacyPackages.${system} 12 + ); 13 + in { 14 + packages = forAllSystems (pkgs: { 15 + default = pkgs.callPackage ./nix/package.nix {}; 16 + }); 31 17 }; 32 18 }
+20
nix/package.nix
··· 1 + { 2 + rustPlatform, 3 + pkg-config, 4 + openssl, 5 + }: 6 + rustPlatform.buildRustPackage { 7 + pname = "pds-migrate"; 8 + version = "0.1.0"; 9 + 10 + src = ../.; 11 + cargoHash = "sha256-6uUm7+bNf3MHkXZljsxMbAOEyhl4xSukIM/XzAugGYY="; 12 + 13 + nativeBuildInputs = [ 14 + pkg-config 15 + ]; 16 + 17 + buildInputs = [ 18 + openssl 19 + ]; 20 + }