-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.nix
More file actions
51 lines (44 loc) · 925 Bytes
/
package.nix
File metadata and controls
51 lines (44 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
lib,
glib,
gtk4,
gtk4-layer-shell,
pkg-config,
rustPlatform,
rev ? "dirty",
}:
let
cargoToml = lib.importTOML ./Cargo.toml;
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "hyprland-preview-share-picker";
version = "${cargoToml.package.version}-${rev}";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ./.)) (
lib.fileset.unions [
./lib
./src
./Cargo.toml
./Cargo.lock
./build.rs
./.gitmodules
]
);
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
glib
gtk4
gtk4-layer-shell
];
strictDeps = true;
cargoLock.lockFile = ./Cargo.lock;
meta = {
homepage = "https://github.com/WhySoBad/hyprland-preview-share-picker";
license = lib.licenses.mit;
maintainers = lib.maintainers.faukah;
};
})