From e74d3a51e9ad6e05eaaffc1b293597bf686e2339 Mon Sep 17 00:00:00 2001 From: "Markus S. Wamser" Date: Sun, 17 Dec 2023 14:59:49 +0100 Subject: [PATCH] use nixpkgs version and build number as version instead of bare hash 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. --- programs-sqlite.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs-sqlite.nix b/programs-sqlite.nix index b0698c52..bdc7c004 100644 --- a/programs-sqlite.nix +++ b/programs-sqlite.nix @@ -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}"; @@ -18,4 +18,4 @@ pkgs.stdenvNoCC.mkDerivation { outputHashAlgo = "sha256"; outputHashMode = "flat"; outputHash = meta.programs_sqlite_hash; -} \ No newline at end of file +}