+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
955142a
main
1{ lib , stdenv , rustPlatform , fetchFromGitHub , cargo-tauri_1 , glib-networking , nodejs , 2fetchYarnDeps , yarnConfigHook , wrapGAppsHook4 , pkg-config , openssl , webkitgtk_4_1 , 3alsa-lib , libsamplerate , gtk3 , cairo , gdk-pixbuf , dbus , librsvg , zlib , # cmake, 4} : rustPlatform . buildRustPackage ( finalAttrs: { 5pname = "recordr" ; 6version = "0.3.1" ; 7 8src = fetchFromGitHub { 9owner = "benjaminkitt" ; 10repo = "recordr" ; 11tag = "v ${ finalAttrs . version } " ; 12hash = "sha256-+6oGoYZR2mzHz0LaKpA5cpL5va5oGBkdqMPVA5MIfiM=" ; 13}; 14 15cargoHash = "sha256-87Aw6D1MUw6YyHkWhVJSNx1WeWjZxwUXMALQdgWfzkU=" ; 16 17yarnOfflineCache = fetchYarnDeps { 18yarnLock = finalAttrs . src + "/yarn.lock" ; 19hash = "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 28nativeBuildInputs = [ 29cargo-tauri_1 . hook 30 31nodejs 32yarnConfigHook 33 34pkg-config 35# cmake 36] 37++ lib . optionals stdenv . hostPlatform . isLinux [ 38wrapGAppsHook4 39]; 40 41# dontUseCmakeConfigure = true; 42 43buildInputs = lib . optionals stdenv . hostPlatform . isLinux [ 44 45glib-networking 46openssl 47webkitgtk_4_1 48alsa-lib 49libsamplerate 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 63cargoRoot = "src-tauri" ; 64buildAndTestSubdir = 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 76meta = { 77description = "An app for automating the recording of lists of sentences into individual audio files" ; 78homepage = "https://github.com/benjaminkitt/recordr" ; 79license = lib . licenses . mpl20 ; 80broken = true ; 81}; 82})