Skip to content

Commit

Permalink
add shortrev to package name
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Mar 19, 2024
1 parent 81c44ff commit 803ba03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
fragment = builtins.split "#" flakeUrl;
parts = builtins.split "\\." (last fragment);
name = last parts;
shortrev = builtins.substring 0 7 pkg.commit;
in
sane "${name}-${pkg.org_name}-${pkg.repo_name}-${pkg.version}";
sane "${name}-${pkg.org_name}-${pkg.repo_name}-${pkg.version}-${shortrev}";

packagesJson = fromJSON (readFile ./packages.json);
validPackages = filterAttrs (flakeUrl: pkg: pkg ? system && !(pkg ? fail)) packagesJson;
Expand Down

0 comments on commit 803ba03

Please sign in to comment.