Move from naersk to crane

This commit is contained in:
Natsu Kagami 2024-02-14 01:19:59 +01:00 committed by Natsu Kagami
parent 46684a2a9e
commit 10129af76a
4 changed files with 57 additions and 41 deletions

View file

@ -1,4 +1,4 @@
{ naersk
{ craneLib
, lib
, stdenv
, pkg-config
@ -16,12 +16,12 @@ let
++ lib.optional enableOsu "--features=osu"
);
in
naersk.buildPackage {
name = "youmubot";
craneLib.buildPackage {
pname = "youmubot";
version = "0.1.0";
root = ./.;
cargoBuildOptions = opts: opts ++ [ "--package youmubot" ] ++ featureFlags;
src = ./.;
cargoExtraArgs = builtins.concatStringsSep " " ([ "--locked" "--package youmubot" ] ++ featureFlags);
buildInputs = [
openssl