# Replit — Dynamic version for Nix derivations

- Company: Replit (replit.com)
- Announced: 2021-06-25
- Category: not stated
- Coverage: not counted
- Announcement: no
- Group: routine
- Source: https://replit.com/blog/nix_dynamic_version
- Record: https://forck.live/items/18059-dynamic-version-for-nix-derivations
- Subject: Replit Agent

Replit describes how it solved the problem of specifying a version in Nix derivation code by using the commit short SHA as the version. The post explains the challenges encountered, such as the Nix store not having access to the .git directory, and the solution using copyPathToStore to copy the source files including .git into the store.

## Evidence

Verbatim from https://replit.com/blog/nix_dynamic_version:

> We settled on using the commit short sha (first 7 characters of a commit's ID) as the version for our tools.

---

Record: https://forck.live/items/18059-dynamic-version-for-nix-derivations
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
