mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 14:07:42 +00:00
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a6964297f08843615d04e10d405cdc4ef134f
36 lines
866 B
Nix
36 lines
866 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "stash";
|
|
version = (builtins.fromTOML (builtins.readFile ../Cargo.toml)).package.version;
|
|
|
|
src = let
|
|
fs = lib.fileset;
|
|
s = ../.;
|
|
in
|
|
fs.toSource {
|
|
root = s;
|
|
fileset = fs.unions [
|
|
(fs.fileFilter (file: builtins.any file.hasExt ["rs"]) (s + /src))
|
|
(s + /Cargo.lock)
|
|
(s + /Cargo.toml)
|
|
];
|
|
};
|
|
|
|
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
|
|
enableParallelBuilding = true;
|
|
|
|
postInstall = ''
|
|
mkdir -p $out
|
|
install -Dm755 ${../vendor/stash.service} $out/share/stash.service
|
|
'';
|
|
|
|
meta = {
|
|
description = "Wayland clipboard manager with fast persistent history and multi-media support";
|
|
maintainers = [lib.maintainers.NotAShelf];
|
|
license = lib.licenses.mpl20;
|
|
mainProgram = "stash";
|
|
};
|
|
})
|