-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
34 lines (33 loc) · 833 Bytes
/
Copy pathflake.nix
File metadata and controls
34 lines (33 loc) · 833 Bytes
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
{
description = "Erethon's presentation tooling";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
};
outputs =
{
self,
nixpkgs,
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
qrgenerate = pkgs.writeShellScriptBin "qrgenerate" ''
if [ $# -ne 2 ]; then
echo "Usage: qrgenerate <output_file (will be svg)> <text>"
exit 1
fi
${pkgs.qrencode}/bin/qrencode -m 2 -l H -s 5 -t svg -o "$1" "$2"
'';
in
{
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
linkchecker
mermaid-cli
qrencode
qrgenerate
];
};
};
}