Formatting

This commit is contained in:
Nox Sluijtman 2025-04-18 13:51:02 +02:00
parent 57d373b305
commit fc54843031
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M
4 changed files with 139 additions and 104 deletions

View file

@ -1,5 +1,8 @@
{ description = "My collection of flake templates";
outputs = { self }: {
{
description = "My collection of flake templates";
outputs =
{ self }:
{
templates = {
latex = {

View file

@ -1,14 +1,23 @@
{ description = "A basic Haskell flake";
# To be used in conjunction with cabal2nix
{
description = "A basic Haskell flake";
# To be used in conjunction with cabal2nix
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 = import nixpkgs { inherit system; };
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
compiler = throw "add compiler version here";
in {
in
{
packages = {
default = pkgs.haskell.packages.${compiler}.mkDerivation rec {
pname = throw "insert haskell package name here\nderived from the .cabal file";
@ -34,5 +43,6 @@
];
};
});
}
);
}

View file

@ -1,20 +1,31 @@
# inspired by https://flyx.org/nix-flakes-latex/
{ description = "A latex template";
{
description = "A latex template";
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 = import nixpkgs { inherit system; };
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
texInput = "main";
# If you're not lazy, figure out what dependencies you need.
# If you are lazy, just take the full scheme.
tex = (pkgs.texlive.combine {
tex = (
pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-full;
#scheme-basic latex-bin latexmk;
});
in {
}
);
in
{
packages = rec {
document = pkgs.stdenvNoCC.mkDerivation rec {
pname = throw "put document name here";
@ -44,5 +55,6 @@
];
};
});
}
);
}

View file

@ -1,12 +1,21 @@
{ description = "Extremely basic flake";
{
description = "Extremely basic flake";
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 = import nixpkgs { inherit system; };
in {
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
packages = {
default = throw "put derivation information here";
};
@ -17,5 +26,6 @@
];
};
});
}
);
}