mizuki.guru/flake.nix
2026-06-25 18:05:44 +09:00

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 ]}
'';
};
};
}