cockroachdb-bin: Expose version

Changes it to use pname and version instead of just name so that the
version is visible in tools such as nix search.
This commit is contained in:
Sebastian Blunt 2023-10-01 20:32:33 +09:00
parent 35c640b19a
commit e1754aad6a

View file

@ -6,7 +6,7 @@
let
version = "23.1.7";
name = "cockroachdb";
pname = "cockroachdb";
# For several reasons building cockroach from source has become
# nearly impossible. See https://github.com/NixOS/nixpkgs/pull/152626
@ -28,7 +28,7 @@ let
in
buildFHSEnv {
inherit name;
inherit pname version;
runScript = "${src}/cockroach";