+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanFix input-integrity955142a

main
2.0 KiB82 linesraw
1{ lib, stdenv, rustPlatform, fetchFromGitHub, cargo-tauri_1, glib-networking, nodejs,
2  fetchYarnDeps, yarnConfigHook, wrapGAppsHook4, pkg-config, openssl, webkitgtk_4_1,
3  alsa-lib, libsamplerate, gtk3, cairo, gdk-pixbuf, dbus, librsvg, zlib, # cmake,
4}: rustPlatform.buildRustPackage (finalAttrs: {
5  pname = "recordr";
6  version = "0.3.1";
7
8  src = fetchFromGitHub {
9    owner = "benjaminkitt";
10    repo = "recordr";
11    tag = "v${finalAttrs.version}";
12    hash = "sha256-+6oGoYZR2mzHz0LaKpA5cpL5va5oGBkdqMPVA5MIfiM=";
13  };
14
15  cargoHash = "sha256-87Aw6D1MUw6YyHkWhVJSNx1WeWjZxwUXMALQdgWfzkU=";
16
17  yarnOfflineCache = fetchYarnDeps {
18    yarnLock = finalAttrs.src + "/yarn.lock";
19    hash = "sha256-sgtOtzE9rutdBZPaOEV2ho8R/I8Or4dClCllEz5+39E=";
20  };
21
22  # TODO: ugh this depends on libsample rate and in their build.rs:
23  # https://github.com/Prior99/libsamplerate-sys/blob/master/build.rs
24  # they unconditionally build the library from source so i don't think
25  # i can use the one from nixpkgs? i'll ask rahul for help patching the
26  # build script in a transitive dep
27
28  nativeBuildInputs = [
29    cargo-tauri_1.hook
30
31    nodejs
32    yarnConfigHook
33
34    pkg-config
35    # cmake
36  ]
37  ++ lib.optionals stdenv.hostPlatform.isLinux [
38    wrapGAppsHook4
39  ];
40
41  # dontUseCmakeConfigure = true;
42
43  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
44
45    glib-networking
46    openssl
47    webkitgtk_4_1
48    alsa-lib
49    libsamplerate
50
51    # gtk3
52    # cairo
53    # gdk-pixbuf
54    # glib
55    # dbus
56    # openssl
57    # librsvg
58    # zlib
59    # stdenv.cc.cc.lib
60
61  ];
62
63  cargoRoot = "src-tauri";
64  buildAndTestSubdir = finalAttrs.cargoRoot;
65
66  # buildPhase = ''
67  #   npm install
68  #   npm run tauri build
69  # '';
70
71  # installPhase = ''
72  #   mkdir -p $out/bin
73  #   cp -r src-tauri/target/release/* $out/bin/
74  # '';
75
76  meta = {
77    description = "An app for automating the recording of lists of sentences into individual audio files";
78    homepage = "https://github.com/benjaminkitt/recordr";
79    license = lib.licenses.mpl20;
80    broken = true;
81  };
82})