mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 01:00:49 +00:00
Allow customizing features
This commit is contained in:
parent
bd9a5a1b1d
commit
26b0e3b21d
2 changed files with 39 additions and 19 deletions
22
flake.nix
22
flake.nix
|
@ -10,30 +10,14 @@
|
|||
extra-substituters = [ "https://natsukagami.cachix.org" ];
|
||||
trusted-public-keys = [ "natsukagami.cachix.org-1:3U6GV8i8gWEaXRUuXd2S4ASfYgdl2QFPWg4BKPbmYiQ=" ];
|
||||
};
|
||||
outputs = { self, nixpkgs, naersk, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
|
||||
outputs = { self, nixpkgs, flake-utils, ... }@inputs: flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
naersk' = pkgs.callPackage naersk { };
|
||||
naersk = pkgs.callPackage inputs.naersk { };
|
||||
in
|
||||
rec {
|
||||
packages.youmubot = naersk'.buildPackage {
|
||||
name = "youmubot";
|
||||
version = "0.1.0";
|
||||
|
||||
root = ./.;
|
||||
cargoBuildOptions = opts: opts ++ [ "--package youmubot" ];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
openssl
|
||||
];
|
||||
|
||||
nativeBuildInputs = nixpkgs.lib.optionals pkgs.stdenv.isLinux (with pkgs; [
|
||||
pkg-config
|
||||
]);
|
||||
|
||||
SQLX_OFFLINE = "true";
|
||||
};
|
||||
packages.youmubot = pkgs.callPackage ./package.nix { inherit naersk; };
|
||||
|
||||
defaultPackage = packages.youmubot;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue