nix: added module & package for tinyupload

This commit is contained in:
kossLAN 2025-03-01 22:36:06 -05:00
parent c423174110
commit 9b10fde29d
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
3 changed files with 102 additions and 26 deletions

View file

@ -1,26 +1,7 @@
{
stdenv,
pkgs,
...
}:
stdenv.mkDerivation {
{rustPlatform, ...}:
rustPlatform.buildRustPackage {
pname = "tinyupload";
version = "1.0.0";
version = "0.2.0";
src = ../.;
buildInputs = [pkgs.cargo];
# Specify the build commands
buildPhase = ''
cargo build --release
'';
# Optionally, specify installPhase if needed
installPhase = ''
# If you have specific install steps, add them here
# For example, copying files to $out
mkdir -p $out/bin
cp target/release/tinyupload $out/bin
'';
cargoHash = "sha256-nfrci/E/ZSVfPLEUIKBRgCGkxH2p7WgnwDBHwOsUnCw=";
}