mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-17 08:19:51 +00:00
nix: filter source
This commit is contained in:
parent
947876262e
commit
eb2dc61c70
1 changed files with 23 additions and 15 deletions
|
|
@ -1,20 +1,28 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
}:
|
}: let
|
||||||
rustPlatform.buildRustPackage (finalAttrs: {
|
fs = lib.fileset;
|
||||||
pname = "mrc";
|
s = ../.;
|
||||||
version = "0.1.0";
|
in
|
||||||
src = builtins.path {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
path = ../.;
|
pname = "mrc";
|
||||||
name = "mrc";
|
version = "0.1.0";
|
||||||
};
|
src = 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;
|
cargoLock.lockFile = finalAttrs.src + /Cargo.lock;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "IPC wrapper & command-line controller for MPV, the video player ";
|
description = "IPC wrapper & command-line controller for MPV, the video player ";
|
||||||
mainProgram = "mrc";
|
mainProgram = "mrc";
|
||||||
license = lib.licenses.mpl20;
|
license = lib.licenses.mpl20;
|
||||||
};
|
maintainers = [lib.maintainers.NotAShelf];
|
||||||
})
|
};
|
||||||
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue