-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
76 lines (65 loc) · 2.08 KB
/
Copy pathflake.nix
File metadata and controls
76 lines (65 loc) · 2.08 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
# SPDX-License-Identifier: MPL-2.0
# SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell
#
# RSR-template-repo - Nix Flake (fallback for Guix)
# Primary: guix.scm | Fallback: flake.nix
#
# Usage:
# nix develop # Enter dev shell
# nix build # Build package
# nix flake check # Validate flake
{
description = "RSR Template Repository - Canonical template for RSR projects";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.default = pkgs.stdenv.mkDerivation {
pname = "rsr-template-repo";
version = "0.1.0";
src = ./.;
meta = with pkgs.lib; {
description = "Canonical template for RSR (Rhodium Standard Repository) projects";
homepage = "https://github.com/hyperpolymath/RSR-template-repo";
license = licenses.agpl3Plus;
maintainers = [ ];
platforms = platforms.all;
};
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
# Core tools
just
git
# Guile/Scheme (for SCM files)
guile
# Documentation
asciidoctor
# Security tools
gitleaks
trivy
# Container tools
nerdctl
];
shellHook = ''
echo "RSR Template Repository - Development Shell (Nix)"
echo "Primary package manager: Guix (guix.scm)"
echo "Fallback: Nix (flake.nix)"
echo ""
echo "Available commands:"
echo " just - Show all recipes"
echo " just validate - Run RSR validation"
echo " just info - Show project info"
'';
};
# Expose checks
checks.default = self.packages.${system}.default;
}
);
}