mirror of
https://github.com/Xithrius/twitch-tui.git
synced 2024-09-11 05:35:26 +03:00
33 lines
971 B
Nix
33 lines
971 B
Nix
{
|
|
description = "Twitch chat in the terminal.";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
inputs.rust-overlay.url = "github:oxalica/rust-overlay";
|
|
|
|
outputs = { self, nixpkgs, rust-overlay }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
toolchain = rust-overlay.packages.${system}.rust.minimal;
|
|
manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
|
|
in {
|
|
packages.${system}.default = (pkgs.makeRustPlatform {
|
|
cargo = toolchain;
|
|
rustc = toolchain;
|
|
}).buildRustPackage {
|
|
pname = manifest.name;
|
|
version = manifest.version;
|
|
|
|
buildInputs = [ pkgs.openssl.dev ];
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
src = pkgs.lib.cleanSource ./.;
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
apps.${system}.default = {
|
|
type = "app";
|
|
program = "${self.packages.${system}.default}/bin/twt";
|
|
};
|
|
};
|
|
}
|