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 = {
|
templates = {
|
||||||
|
|
||||||
latex = {
|
latex = {
|
||||||
|
|
|
@ -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 = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, flake-utils}:
|
outputs =
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
{
|
||||||
let pkgs = import nixpkgs { inherit system; };
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
}:
|
||||||
|
flake-utils.lib.eachDefaultSystem (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
compiler = throw "add compiler version here";
|
compiler = throw "add compiler version here";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
packages = {
|
packages = {
|
||||||
default = pkgs.haskell.packages.${compiler}.mkDerivation rec {
|
default = pkgs.haskell.packages.${compiler}.mkDerivation rec {
|
||||||
pname = throw "insert haskell package name here\nderived from the .cabal file";
|
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/
|
# inspired by https://flyx.org/nix-flakes-latex/
|
||||||
{ description = "A latex template";
|
{
|
||||||
|
description = "A latex template";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, flake-utils}:
|
outputs =
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
{
|
||||||
let pkgs = import nixpkgs { inherit system; };
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
}:
|
||||||
|
flake-utils.lib.eachDefaultSystem (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
texInput = "main";
|
texInput = "main";
|
||||||
# If you're not lazy, figure out what dependencies you need.
|
# If you're not lazy, figure out what dependencies you need.
|
||||||
# If you are lazy, just take the full scheme.
|
# If you are lazy, just take the full scheme.
|
||||||
tex = (pkgs.texlive.combine {
|
tex = (
|
||||||
|
pkgs.texlive.combine {
|
||||||
inherit (pkgs.texlive) scheme-full;
|
inherit (pkgs.texlive) scheme-full;
|
||||||
#scheme-basic latex-bin latexmk;
|
#scheme-basic latex-bin latexmk;
|
||||||
});
|
}
|
||||||
in {
|
);
|
||||||
|
in
|
||||||
|
{
|
||||||
packages = rec {
|
packages = rec {
|
||||||
document = pkgs.stdenvNoCC.mkDerivation rec {
|
document = pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
pname = throw "put document name here";
|
pname = throw "put document name here";
|
||||||
|
@ -44,5 +55,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,21 @@
|
||||||
{ description = "Extremely basic flake";
|
{
|
||||||
|
description = "Extremely basic flake";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, flake-utils}:
|
outputs =
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
{
|
||||||
let pkgs = import nixpkgs { inherit system; };
|
self,
|
||||||
in {
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
}:
|
||||||
|
flake-utils.lib.eachDefaultSystem (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
in
|
||||||
|
{
|
||||||
packages = {
|
packages = {
|
||||||
default = throw "put derivation information here";
|
default = throw "put derivation information here";
|
||||||
};
|
};
|
||||||
|
@ -17,5 +26,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue