Skip to content

Commit

Permalink
use nixpkgs version and build number as version instead of bare hash
Browse files Browse the repository at this point in the history
Using a bare hash confuses tools that parse the version string to show
updated packages, namely `nvd`. In place of the bare nixpkgs revision
hash, the NixOS version number including a prefix of the revision hash
is now used.
  • Loading branch information
wamserma committed Dec 17, 2023
1 parent 1a0c760 commit e74d3a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs-sqlite.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let
in
pkgs.stdenvNoCC.mkDerivation {
pname = "programs-sqlite";
version = rev;
version = meta.name;

src = fetchurl {
url = "https://releases.nixos.org${meta.url}";
Expand All @@ -18,4 +18,4 @@ pkgs.stdenvNoCC.mkDerivation {
outputHashAlgo = "sha256";
outputHashMode = "flat";
outputHash = meta.programs_sqlite_hash;
}
}

0 comments on commit e74d3a5

Please sign in to comment.