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
pytrainer: unpin python 3.10
[NixPkgs.git]
/
pkgs
/
servers
/
web-apps
/
moodle
/
moodle-utils.nix
blob
090d87cb1ee833852a00998f2edf0f6838ede832
1
{ stdenv, unzip, ... }:
2
3
let
4
buildMoodlePlugin = a@{
5
name,
6
src,
7
pluginType,
8
configurePhase ? ":",
9
buildPhase ? ":",
10
buildInputs ? [ ],
11
nativeBuildInputs ? [ ],
12
...
13
}:
14
stdenv.mkDerivation (a // {
15
name = name;
16
17
inherit pluginType;
18
inherit configurePhase buildPhase buildInputs;
19
20
nativeBuildInputs = [ unzip ] ++ nativeBuildInputs;
21
22
installPhase = ''
23
runHook preInstall
24
25
mkdir -p "$out"
26
mv * $out/
27
28
runHook postInstall
29
'';
30
});
31
in {
32
inherit buildMoodlePlugin;
33
}