diff --git a/flake.nix b/flake.nix index 8fea5f0..97a1683 100644 --- a/flake.nix +++ b/flake.nix @@ -58,6 +58,7 @@ colorize = pkgs.callPackage ./package/colorize.nix {}; github.gh-tl = pkgs.callPackage ./package/github/gh-tl.nix {}; supabase-with-env-collection = pkgs.callPackage ./package/supabase-with-env-collection.nix {}; + migration-name = pkgs.callPackage ./package/migration-name.nix {}; prettify-log = pkgs.callPackage ./package/prettify-log/default.nix { inherit (self.lib) cargoToml; nativeBuildInputs = [ diff --git a/package/migration-name.nix b/package/migration-name.nix new file mode 100644 index 0000000..efe3dda --- /dev/null +++ b/package/migration-name.nix @@ -0,0 +1,4 @@ +{ pkgs, ... }: +pkgs.writeShellScriptBin "migration-name" '' +curl --silent https://raw.githubusercontent.com/dwyl/english-words/master/words.txt | shuf -n2 | tr '\n' '_' | sed 's/_$//' +''