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