lomiri.lomiri-system-settings: init at 1.0.2
This commit is contained in:
parent
429be39416
commit
08ef900167
|
@ -0,0 +1,67 @@
|
||||||
|
{ stdenvNoCC
|
||||||
|
, lib
|
||||||
|
, glib
|
||||||
|
, lndir
|
||||||
|
, lomiri-system-settings-unwrapped
|
||||||
|
, lomiri-system-settings-security-privacy
|
||||||
|
, wrapGAppsHook
|
||||||
|
, wrapQtAppsHook
|
||||||
|
, plugins ? [ lomiri-system-settings-security-privacy ]
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
|
pname = "lomiri-system-settings";
|
||||||
|
inherit (lomiri-system-settings-unwrapped) version;
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
dontConfigure = true;
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
lndir
|
||||||
|
wrapGAppsHook
|
||||||
|
wrapQtAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
glib # schema hook
|
||||||
|
lomiri-system-settings-unwrapped
|
||||||
|
] ++ plugins;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
ln -s ${lib.getExe lomiri-system-settings-unwrapped} $out/bin/${finalAttrs.meta.mainProgram}
|
||||||
|
|
||||||
|
for inheritedPath in share/lomiri-app-launch share/lomiri-url-dispatcher share/applications share/icons; do
|
||||||
|
mkdir -p $out/$inheritedPath
|
||||||
|
lndir ${lomiri-system-settings-unwrapped}/$inheritedPath $out/$inheritedPath
|
||||||
|
done
|
||||||
|
|
||||||
|
for mergedPath in lib/lomiri-system-settings share/lomiri-system-settings share/locale; do
|
||||||
|
mkdir -p $out/$mergedPath
|
||||||
|
for lssPart in ${lomiri-system-settings-unwrapped} ${lib.strings.concatStringsSep " " plugins}; do
|
||||||
|
lndir $lssPart/$mergedPath $out/$mergedPath
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontWrapGApps = true;
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
qtWrapperArgs+=(
|
||||||
|
"''${gappsWrapperArgs[@]}"
|
||||||
|
--set NIX_LSS_PREFIX "$out"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = lomiri-system-settings-unwrapped.meta // {
|
||||||
|
description = "System Settings application for Lomiri (wrapped)";
|
||||||
|
priority = (lomiri-system-settings-unwrapped.meta.priority or 0) - 1;
|
||||||
|
};
|
||||||
|
})
|
|
@ -10,6 +10,7 @@ let
|
||||||
#### Core Apps
|
#### Core Apps
|
||||||
lomiri-system-settings-unwrapped = callPackage ./applications/lomiri-system-settings { };
|
lomiri-system-settings-unwrapped = callPackage ./applications/lomiri-system-settings { };
|
||||||
lomiri-system-settings-security-privacy = callPackage ./applications/lomiri-system-settings/plugins/lomiri-system-settings-security-privacy.nix { };
|
lomiri-system-settings-security-privacy = callPackage ./applications/lomiri-system-settings/plugins/lomiri-system-settings-security-privacy.nix { };
|
||||||
|
lomiri-system-settings = callPackage ./applications/lomiri-system-settings/wrapper.nix { };
|
||||||
lomiri-terminal-app = callPackage ./applications/lomiri-terminal-app { };
|
lomiri-terminal-app = callPackage ./applications/lomiri-terminal-app { };
|
||||||
morph-browser = callPackage ./applications/morph-browser { };
|
morph-browser = callPackage ./applications/morph-browser { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user