Browse Source

Add hydraJobs and Nix improvements

Signed-off-by: Magic_RB <magic_rb@redalder.org>
master
Magic_RB 4 months ago
parent
commit
c0a4b6cbc8
Signed by: Magic_RB GPG Key ID: 08D5287CC5DDCA0E
  1. 55
      flake.nix

55
flake.nix

@ -1,27 +1,38 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-21.05";
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-21.05";
};
outputs = {self, nixpkgs}@inputs:
let
supportedSystems = ["x86_64-linux"];
forAllSystems' = systems: fun: nixpkgs.lib.genAttrs systems fun;
forAllSystems = forAllSystems' supportedSystems;
outputs = {self, nixpkgs}@inputs:
let
supportedSystems = ["x86_64-linux"];
forAllSystems' = systems: fun: nixpkgs.lib.genAttrs systems fun;
forAllSystems = forAllSystems' supportedSystems;
in
{
overlay =
final: prev: {
camptules = final.callPackage ./camptules.nix {};
};
{
overlay =
final: prev: {
camptules = final.callPackage ./camptules.nix {};
};
packages = forAllSystems (system:
let
pkgs = import nixpkgs{inherit system; overlays = [self.overlay];};
in
{
inherit (pkgs) camptules;
}
);
};
packages = forAllSystems (system:
let
pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
in
{ inherit (pkgs) camptules;
}
);
defaultPackage = forAllSystems (system: self.packages.${system}.camptules );
apps = forAllSystems (system:
{ camptules =
{ type = "app";
program = self.packages.${system}.camptules;
};
}
);
hydraJobs.camptules = self.defaultPackage;
};
}

Loading…
Cancel
Save