packages/wike: init
This commit is contained in:
parent
7902954031
commit
3a577d4262
2 changed files with 44 additions and 0 deletions
42
packages/nixpak/wike/default.nix
Normal file
42
packages/nixpak/wike/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ mkNixPak, wike, python3Packages }:
|
||||
|
||||
mkNixPak {
|
||||
config = { sloth, ... }: {
|
||||
imports = [
|
||||
../modules/gui-base.nix
|
||||
../modules/network.nix
|
||||
];
|
||||
flatpak.appId = "com.github.hugolabe.Wike";
|
||||
bubblewrap = {
|
||||
bind.rw = [
|
||||
[
|
||||
(sloth.mkdir (sloth.concat' sloth.appCacheDir "/wike"))
|
||||
(sloth.concat' sloth.xdgCacheHome "/wike")
|
||||
]
|
||||
];
|
||||
};
|
||||
app = {
|
||||
# upstream wike is a bit broken
|
||||
package = wike.overrideAttrs (old: {
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
||||
python3Packages.dbus-python
|
||||
];
|
||||
|
||||
# fix double wrapping
|
||||
dontWrapGApps = true;
|
||||
makeWrapperArgs = [
|
||||
"\${gappsWrapperArgs[@]}"
|
||||
];
|
||||
|
||||
# properly wrap wike-sp
|
||||
postFixup = (old.postFixup or "") + ''
|
||||
wrapPythonProgramsIn $out/share/wike "$out $propagatedBuildInputs"
|
||||
'';
|
||||
});
|
||||
|
||||
extraEntrypoints = [
|
||||
"/share/wike/wike-sp"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -75,4 +75,6 @@ in
|
|||
ungoogled-chromium = sandbox ./nixpak/ungoogled-chromium { };
|
||||
|
||||
vaults = pkgs.callPackage ./apps/vaults { };
|
||||
|
||||
wike = sandbox ./nixpak/wike { };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue