feat: initial commit
This commit is contained in:
commit
82a09ddf26
10 changed files with 515 additions and 0 deletions
32
package.nix
Normal file
32
package.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
mold-wrapped,
|
||||
self,
|
||||
}:
|
||||
let
|
||||
cargoToml = lib.importTOML ./Cargo.toml;
|
||||
rev = self.shortRev or self.dirtyShortRev or "dirty";
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = cargoToml.package.name;
|
||||
version = "${cargoToml.package.version}+git.${rev}";
|
||||
|
||||
src = self;
|
||||
|
||||
nativeBuildInputs = [ mold-wrapped ];
|
||||
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
||||
RUSTFLAGS = "-C link-arg=-fuse-ld=mold";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
mainProgram = cargoToml.package.name;
|
||||
description = "simple tool to convert, upload, and embed videos to zipline";
|
||||
homepage = "https://git.uku3lig.net/uku/tyrolienne";
|
||||
license = licenses.mpl20;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue