Initial Commit
This commit is contained in:
parent
5b45525331
commit
7f8d940ef5
12 changed files with 2901 additions and 2 deletions
26
nix/package.nix
Normal file
26
nix/package.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue