mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 02:00:11 +01:00
bak
This commit is contained in:
commit
249d048d34
11 changed files with 744 additions and 0 deletions
74
flake.nix
Normal file
74
flake.nix
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
description = "Coder Templates";
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
flake-parts,
|
||||
systems,
|
||||
jb,
|
||||
inka,
|
||||
...
|
||||
} @ inputs:
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
imports = [
|
||||
inputs.devenv.flakeModule
|
||||
];
|
||||
systems = import systems;
|
||||
flake = {
|
||||
};
|
||||
perSystem = {
|
||||
config,
|
||||
self',
|
||||
inputs',
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}: {
|
||||
formatter = pkgs.alejandra;
|
||||
devenv.shells.default = {
|
||||
packages = [
|
||||
pkgs.go-jsonnet
|
||||
pkgs.go-task
|
||||
|
||||
#(pkgs.coder.override rec {
|
||||
# buildGoModule = args: pkgs.buildGoModule ( args // rec {
|
||||
# version = "2.8.2";
|
||||
# src = pkgs.fetchFromGitHub {
|
||||
# owner = "coder";
|
||||
# repo = "coder";
|
||||
# rev = "v${version}";
|
||||
# hash = "sha256-H90pwemW1yMcY65RvERtqJplBPyOSzkD3ip/DGoZ5eQ=";
|
||||
# };
|
||||
# vendorHash = "sha256-oLhQsdIitePPYAuO4m+RKA/zNcFoMZnzsFBTKlt69pk=";
|
||||
# });
|
||||
#})
|
||||
|
||||
inka.defaultPackage.${system}
|
||||
# use my fork of jb to support fetching packages via http
|
||||
jb.defaultPackage.${system}
|
||||
];
|
||||
};
|
||||
|
||||
packages = {
|
||||
nix-coder-image = pkgs.callPackage ./image.nix {
|
||||
processes = {
|
||||
test = ''
|
||||
${pkgs.hello}/bin/hello
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
systems.url = "github:nix-systems/default";
|
||||
devenv.url = "github:cachix/devenv";
|
||||
|
||||
inka.url = "gitlab:TECHNOFAB/inka";
|
||||
jb.url = "github:TECHNOFAB11/jsonnet-bundler";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue