mirror of
https://gitlab.com/khumba/nvd.git
synced 2024-11-27 07:03:49 +01:00
Warn users who pull from git master about the upcoming sr.ht migration.
This commit is contained in:
parent
f72ab902f7
commit
22eb1cb5da
1 changed files with 16 additions and 1 deletions
17
default.nix
17
default.nix
|
@ -1,7 +1,21 @@
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
{ pkgs ? import <nixpkgs> {}
|
||||||
|
, silenceWarning ? false
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
inherit (pkgs) lib nix-gitignore python3 stdenv;
|
inherit (pkgs) lib nix-gitignore python3 stdenv;
|
||||||
|
|
||||||
|
warning =
|
||||||
|
"This is a development build of nvd from git master.\n"
|
||||||
|
+ "On or around Oct 19, 2024, nvd will be moving to Sourcehut.\n"
|
||||||
|
+ "Please consider using the latest stable nvd release from nixpkgs,\n"
|
||||||
|
+ "but if you wish to continue pulling the latest unstable pre-release\n"
|
||||||
|
+ "code, you will need to update your URLs (and can do so now).\n"
|
||||||
|
+ "See the following link for more info, thanks.\n\n"
|
||||||
|
+ "https://gitlab.com/khumba/nvd/-/issues/19";
|
||||||
|
|
||||||
|
warn = if silenceWarning then lib.id else lib.warn warning;
|
||||||
in
|
in
|
||||||
|
warn (
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "nvd";
|
pname = "nvd";
|
||||||
version = "0.2.4";
|
version = "0.2.4";
|
||||||
|
@ -31,3 +45,4 @@ stdenv.mkDerivation {
|
||||||
platforms = lib.platforms.all;
|
platforms = lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue