This commit is contained in:
34
flake.nix
34
flake.nix
@@ -61,5 +61,39 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
packages = forEachSupportedSystem ({ pkgs }: {
|
||||||
|
default = let
|
||||||
|
pname = "caitsith";
|
||||||
|
version = "master";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitea {
|
||||||
|
domain = "scm.wyattjmiller.com";
|
||||||
|
owner = "wymiller";
|
||||||
|
repo = "caitsith";
|
||||||
|
rev = "${version}";
|
||||||
|
sha256 = "sha256-bNIzb57qPzzgwGVTjk2N59P7Rtt0MdyJY12sTAH05/s=";
|
||||||
|
};
|
||||||
|
in pkgs.rustPlatform.buildRustPackage {
|
||||||
|
inherit pname version src;
|
||||||
|
cargoLock = { lockFile = "${src}/Cargo.lock"; };
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
pkg-config-unwrapped
|
||||||
|
openssl.dev
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A Discord bot that deathrolls";
|
||||||
|
mainProgram = "caitsith";
|
||||||
|
homepage = "https://scm.wyattjmiller.com/wymiller/caitsith";
|
||||||
|
maintainers = [ "wymillerlinux" ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
env = {
|
||||||
|
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user