nix: added module & package for tinyupload
This commit is contained in:
parent
c423174110
commit
9b10fde29d
3 changed files with 102 additions and 26 deletions
|
|
@ -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=";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue