blob: 0390a90b54c7b781d310ea0f96cca0c5f426bc67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
lib,
stdenvNoCC,
flat-manager,
python3,
ostree,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "flat-manager-client";
inherit (flat-manager) version src;
pythonPath = with python3.pkgs; [
aiohttp
pygobject3
tenacity
];
nativeBuildInputs = [ python3.pkgs.wrapPython ];
buildInputs = [ (python3.withPackages (lib.const finalAttrs.pythonPath)) ];
installPhase = ''
runHook preInstall
install -Dm755 {,$out/bin/}flat-manager-client
runHook postInstall
'';
postFixup = ''
makeWrapperArgs+=(
--prefix GI_TYPELIB_PATH : ${lib.makeSearchPath "lib/girepository-1.0" [ ostree ]}
)
wrapPythonPrograms $out/bin $out "$pythonPath"
'';
meta = flat-manager.meta // {
mainProgram = "flat-manager-client";
description = flat-manager.meta.description + " (Client)";
};
})
|