skawarePackages: add passthru.updateScript
This commit is contained in:
committed by
Alyssa Ross
parent
dcb247a583
commit
8a9b7acd73
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromSourcehut,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
{
|
||||
@@ -41,6 +42,13 @@ stdenv.mkDerivation {
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--override-filename"
|
||||
"pkgs/development/skaware-packages/${lib.removeSuffix "-man-pages" pname}/default.nix"
|
||||
];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
inherit description license maintainers;
|
||||
inherit (src.meta) homepage;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
stdenv,
|
||||
cleanPackaging,
|
||||
fetchurl,
|
||||
nix-update-script,
|
||||
}:
|
||||
{
|
||||
# : string
|
||||
@@ -148,7 +149,19 @@ stdenv.mkDerivation {
|
||||
${cleanPackaging.checkForRemainingFiles}
|
||||
'';
|
||||
|
||||
passthru = passthru // (if manpages == null then { } else { inherit manpages; });
|
||||
passthru =
|
||||
{
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--url"
|
||||
"https://github.com/skarnet/${pname}"
|
||||
"--override-filename"
|
||||
"pkgs/development/skaware-packages/${pname}/default.nix"
|
||||
];
|
||||
};
|
||||
}
|
||||
// passthru
|
||||
// (if manpages == null then { } else { inherit manpages; });
|
||||
|
||||
meta = {
|
||||
homepage = "https://skarnet.org/software/${pname}/";
|
||||
|
||||
Reference in New Issue
Block a user