mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 01:00:49 +00:00
Create a Nix Flake module (#17)
* Add flake module * Add optional openssl dep on linux * Set default sql path * No more deploy!
This commit is contained in:
parent
6f84441823
commit
2449b09cb2
3 changed files with 89 additions and 62 deletions
|
@ -16,6 +16,11 @@
|
|||
|
||||
root = ./.;
|
||||
cargoBuildOptions = opts: opts ++ [ "--package youmubot" ];
|
||||
|
||||
nativeBuildInputs = nixpkgs.lib.optionals (nixpkgs.lib.strings.hasSuffix "linux" system) (with pkgs; [
|
||||
pkg-config
|
||||
openssl
|
||||
]);
|
||||
};
|
||||
|
||||
defaultPackage = packages.youmubot;
|
||||
|
@ -31,5 +36,8 @@
|
|||
devShell = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [ rustc cargo ];
|
||||
};
|
||||
|
||||
# module
|
||||
nixosModule = import ./module.nix defaultPackage;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue