ferdium: add update script
This commit is contained in:
parent
92283e00bd
commit
ae1b465987
|
@ -1,4 +1,4 @@
|
|||
{ lib, mkFranzDerivation, fetchurl, xorg }:
|
||||
{ lib, mkFranzDerivation, fetchurl, xorg, nix-update-script }:
|
||||
|
||||
mkFranzDerivation rec {
|
||||
pname = "ferdium";
|
||||
|
@ -11,6 +11,12 @@ mkFranzDerivation rec {
|
|||
|
||||
extraBuildInputs = [ xorg.libxshmfence ];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [ "--override-filename" ./default.nix ];
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "All your services in one place built by the community";
|
||||
homepage = "https://ferdium.org/";
|
||||
|
|
|
@ -28,9 +28,10 @@
|
|||
|
||||
# Helper function for building a derivation for Franz and forks.
|
||||
|
||||
{ pname, name, version, src, meta, extraBuildInputs ? [] }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
{ pname, name, version, src, meta, extraBuildInputs ? [], ... } @ args:
|
||||
let
|
||||
cleanedArgs = builtins.removeAttrs args [ "pname" "name" "version" "src" "meta" "extraBuildInputs" ];
|
||||
in stdenv.mkDerivation (rec {
|
||||
inherit pname version src meta;
|
||||
|
||||
# Don't remove runtime deps.
|
||||
|
@ -91,4 +92,4 @@ stdenv.mkDerivation rec {
|
|||
--suffix PATH : ${xdg-utils}/bin \
|
||||
"''${gappsWrapperArgs[@]}"
|
||||
'';
|
||||
}
|
||||
} // cleanedArgs)
|
||||
|
|
Loading…
Reference in a new issue