meta: refactor repository
This commit is contained in:
parent
a306e192a4
commit
599fe1903f
28 changed files with 276 additions and 136 deletions
32
templates/nim/flake.nix
Normal file
32
templates/nim/flake.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
description = "CHANGE DESC";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
systems.url = "github:nix-systems/default";
|
||||
};
|
||||
|
||||
outputs =
|
||||
inputs@{ self, nixpkgs, ... }:
|
||||
let
|
||||
inherit (nixpkgs) lib;
|
||||
pkgsFor = nixpkgs.legacyPackages;
|
||||
eachSystem = f: lib.genAttrs (import inputs.systems) (system: f system pkgsFor.${system});
|
||||
in
|
||||
{
|
||||
packages = eachSystem (
|
||||
system: pkgs: {
|
||||
default = pkgs.callPackage ./flake/package.nix { };
|
||||
CHANGE_NAME = self.packages.${system}.default;
|
||||
}
|
||||
);
|
||||
|
||||
devShells = eachSystem (
|
||||
_system: pkgs: {
|
||||
default = pkgs.callPackage ./flake/shell.nix { };
|
||||
}
|
||||
);
|
||||
|
||||
formatter = eachSystem (_: pkgs: pkgs.callPackage ./flake/formatter.nix { });
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue