repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
biome: 1.9.2 -> 1.9.3
[NixPkgs.git]
/
pkgs
/
applications
/
video
/
kodi
/
build-kodi-addon.nix
blob
8f9c05d8fa12ec3489a72cbcfde12d33a9ac22a0
1
{ stdenv, toKodiAddon, addonDir }:
2
{ name ? "${attrs.pname}-${attrs.version}"
3
, namespace
4
, sourceDir ? ""
5
, ... } @ attrs:
6
toKodiAddon (stdenv.mkDerivation ({
7
name = "kodi-" + name;
8
9
dontStrip = true;
10
11
extraRuntimeDependencies = [ ];
12
13
installPhase = ''
14
runHook preInstall
15
16
cd ./$sourceDir
17
d=$out${addonDir}/${namespace}
18
mkdir -p $d
19
sauce="."
20
[ -d ${namespace} ] && sauce=${namespace}
21
cp -R "$sauce/"* $d
22
23
runHook postInstall
24
'';
25
} // attrs))