26 lines
461 B
Nix
26 lines
461 B
Nix
{
|
|
stdenv,
|
|
pkgs,
|
|
...
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "tinyupload";
|
|
version = "1.0.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
|
|
'';
|
|
}
|