make flake and allow overriding conf.py

This commit is contained in:
2022-08-28 05:58:42 +02:00
parent 3c950be930
commit c450c6710b
3 changed files with 70 additions and 47 deletions

23
flake.nix Normal file
View File

@@ -0,0 +1,23 @@
{
description = "Dibbler samspleisebod";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
packages = rec {
dibbler = pkgs.callPackage ./nix/dibbler.nix { };
# dibblerCross = pkgs.pkgsCross.aarch64-multiplatform.callPackage ./nix/dibbler.nix { };
default = dibbler;
};
apps = rec {
dibbler = flake-utils.lib.mkApp {
drv = self.packages.${system}.dibbler;
};
default = dibbler;
};
}
);
}