36 lines
770 B
Nix
36 lines
770 B
Nix
{
|
|
description = "Random image nc server in Rust";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
outputs =
|
|
{ nixpkgs, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
packages.${system}.default = pkgs.rustPlatform.buildRustPackage {
|
|
pname = "mizuki-nc";
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
makeWrapper
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
openssl
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/mizuki-nc \
|
|
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.chafa ]}
|
|
'';
|
|
};
|
|
};
|
|
}
|