blob: bbccbfd546dd93ddc21d90d7108712df6fa5854b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ lib, pkgs }:
pkgs.stdenvNoCC.mkDerivation {
name = "repo";
src = lib.fileset.toSource {
root = ./src;
fileset = ./src;
};
buildInputs = [ pkgs.bashly ];
unpackPhase = ''
ln --symbolic --no-target-directory "$src" src
'';
buildPhase = ''
bashly generate
'';
installPhase = ''
install ./repo "$out"
'';
}
|