-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdefault.nix
More file actions
77 lines (65 loc) · 1.33 KB
/
default.nix
File metadata and controls
77 lines (65 loc) · 1.33 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{ pkgs ? import <nixpkgs> {} }:
let
inherit(pkgs) stdenv writeShellApplication;
packageJson = builtins.fromJSON (builtins.readFile ./package.json);
scafVersion = packageJson.version;
maintainers = {
sixfeetup = {
name = "Six Feet Up";
email = "info@sixfeetup.com";
};
};
in
stdenv.mkDerivation rec {
pname = "scaf";
version = scafVersion;
src = ./.;
buildPhase = ''
echo "No build necessary"
'';
doCheck = true;
checkInputs = with pkgs; [ shellcheck ];
checkPhase = ''
shellcheck ./scaf
'';
installPhase = ''
mkdir -p $out/bin
cp ${scaf}/bin/scaf $out/bin/scaf
'';
scaf = writeShellApplication {
name = pname;
text = builtins.readFile ./scaf;
runtimeInputs = with pkgs; [
awscli2
argocd
bashInteractive
black
coreutils
copier
docker
envsubst
git
go-task
gnumake
isort
jq
kind
kubectl
kubernetes-helm
kubeseal
nodejs
opentofu
python3
ruff
talosctl
tilt
uv
];
};
meta = with pkgs.lib; {
description = "scaf is a template manager that simplifies bootstrapping and updating projects";
homepage = "https://github.com/sixfeetup/scaf";
license = licenses.mit;
maintainers = [ maintainers.sixfeetup ];
};
}