-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.nix
48 lines (40 loc) · 1.17 KB
/
package.nix
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
{ lib, stdenv, cargo-tauri, libsoup_3, nodejs, openssl, pkg-config, pnpm
, rustPlatform, webkitgtk_4_1, wrapGAppsHook4, }:
stdenv.mkDerivation (finalAttrs: {
pname = "umegaemochi";
version = "0.2.0";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.difference ./. (lib.fileset.unions [
(lib.fileset.maybeMissing ./result)
./package.nix
./flake.nix
./flake.lock
]);
};
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) src pname version;
hash = "sha256-vtx4DnG0Sc6LGoL6h3LZrsAU1IBsBvAejT3QgmM9D+E=";
};
cargoRoot = "src-tauri";
buildAndTestSubdir = finalAttrs.cargoRoot;
cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) pname version src;
sourceRoot = "${finalAttrs.src.name}/${finalAttrs.cargoRoot}";
hash = "sha256-uYyNuDMXXS2aL/IWszX4p2+bIEgU6TRILfCqixh+uzk=";
};
nativeBuildInputs = [
cargo-tauri.hook
nodejs
pkg-config
pnpm.configHook
rustPlatform.cargoSetupHook
wrapGAppsHook4
];
buildInputs = [ libsoup_3 openssl webkitgtk_4_1 ];
meta = {
license = lib.licenses.mit;
mainProgram = "umegaemochi";
platforms = lib.platforms.linux;
};
})