Skip to content

Commit

Permalink
Fallback in case we don't have metadata attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Dec 10, 2024
1 parent 97fe58a commit dc5b882
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nix-alien.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ python3'.pkgs.buildPythonApplication {
preBuild = ''
substituteInPlace nix_alien/_version.py \
--subst-var-by version ${version} \
--subst-var-by nixIndexDatabaseRev ${nix-index-database-src.rev} \
--subst-var-by nixpkgsRev ${nixpkgs-src.rev}
--subst-var-by nixIndexDatabaseRev ${nix-index-database-src.rev or "unknown"} \
--subst-var-by nixpkgsRev ${nixpkgs-src.rev or "unknown"}
substituteInPlace {nix_alien,tests}/*.{py,nix} \
--subst-var-by nixpkgsLastModifiedDate ${nixpkgs-src.lastModifiedDate} \
--subst-var-by nixpkgsRev ${nixpkgs-src.rev} \
--subst-var-by nixpkgsHash ${nixpkgs-src.narHash}
--subst-var-by nixpkgsLastModifiedDate ${nixpkgs-src.lastModifiedDate or "unknown"} \
--subst-var-by nixpkgsRev ${nixpkgs-src.rev or "unknown"} \
--subst-var-by nixpkgsHash ${nixpkgs-src.narHash or "unknown"}
'';

nativeCheckInputs = with python3'.pkgs; [
Expand Down

0 comments on commit dc5b882

Please sign in to comment.