use rust from nixpkgs

This commit is contained in:
2020-05-26 12:06:04 +02:00
parent f7f6625585
commit a5100020f6

View File

@@ -1,16 +1,14 @@
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
rustpkgs = nixpkgs.rustChannels.stable;
nixpkgs = import <nixpkgs> {};
in
with nixpkgs;
stdenv.mkDerivation {
name = "audio-conv";
buildInputs = [
rustpkgs.rust
rustpkgs.cargo
rustpkgs.rls-preview
rustpkgs.rustfmt-preview
cargo
rustc
rustfmt
rust-analyzer
gst_all_1.gstreamer
gst_all_1.gst-plugins-base # needed for opus, resample, ...
gst_all_1.gst-plugins-good # needed for flac