mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
chore: add git rev to nix pkg version (#206)
This commit is contained in:
parent
04a09b97fe
commit
952c3009e6
1 changed files with 3 additions and 1 deletions
|
|
@ -12,7 +12,9 @@
|
|||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
yazi = pkgs.callPackage ./nix/yazi.nix { };
|
||||
versionSuffix = "pre${builtins.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")}_${self.shortRev or "dirty"}";
|
||||
version = (builtins.fromTOML (builtins.readFile ./app/Cargo.toml)).package.version + versionSuffix;
|
||||
yazi = pkgs.callPackage ./nix/yazi.nix { inherit version; };
|
||||
in
|
||||
{
|
||||
packages.default = yazi;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue