Formatting
This commit is contained in:
parent
57d373b305
commit
fc54843031
4 changed files with 139 additions and 104 deletions
|
@ -1,5 +1,8 @@
|
|||
{ description = "My collection of flake templates";
|
||||
outputs = { self }: {
|
||||
{
|
||||
description = "My collection of flake templates";
|
||||
outputs =
|
||||
{ self }:
|
||||
{
|
||||
templates = {
|
||||
|
||||
latex = {
|
||||
|
|
|
@ -1,14 +1,23 @@
|
|||
{ description = "A basic Haskell flake";
|
||||
{
|
||||
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 @@
|
|||
];
|
||||
};
|
||||
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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 @@
|
|||
];
|
||||
};
|
||||
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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 @@
|
|||
];
|
||||
};
|
||||
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue