From 784fade8c0fc2ffb0692842968deeb19a64abaa7 Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Tue, 8 Feb 2022 11:43:17 +0000 Subject: [PATCH] format nix --- flake.nix | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/flake.nix b/flake.nix index 55c0755..5362eb4 100644 --- a/flake.nix +++ b/flake.nix @@ -15,29 +15,31 @@ overlay = final: prev: let system = final.system; - fold-to-ascii = final.python3Packages.callPackage ./nix-extra-deps/fold-to-ascii.nix { }; + fold-to-ascii = + final.python3Packages.callPackage ./nix-extra-deps/fold-to-ascii.nix + { }; in { - fold-to-ascii = {fold-to-ascii = fold-to-ascii;}; - musicutil = final.python3Packages.buildPythonApplication rec { - pname = "musicutil"; - version = "latest"; + fold-to-ascii = { fold-to-ascii = fold-to-ascii; }; + musicutil = final.python3Packages.buildPythonApplication rec { + pname = "musicutil"; + version = "latest"; - src = ./.; + src = ./.; - postPatch = '' - substituteInPlace musicutil/meta.py --replace 'ffmpeg_path = "ffmpeg"' 'ffmpeg_path = "${final.ffmpeg}/bin/ffmpeg"' - substituteInPlace musicutil/meta.py --replace 'ffprobe_path = "ffprobe"' 'ffprobe_path = "${final.ffmpeg}/bin/ffprobe"' - substituteInPlace musicutil/meta.py --replace 'r128gain_path = "r128gain"' 'r128gain_path = "${final.r128gain}/bin/r128gain"' - ''; + postPatch = '' + substituteInPlace musicutil/meta.py --replace 'ffmpeg_path = "ffmpeg"' 'ffmpeg_path = "${final.ffmpeg}/bin/ffmpeg"' + substituteInPlace musicutil/meta.py --replace 'ffprobe_path = "ffprobe"' 'ffprobe_path = "${final.ffmpeg}/bin/ffprobe"' + substituteInPlace musicutil/meta.py --replace 'r128gain_path = "r128gain"' 'r128gain_path = "${final.r128gain}/bin/r128gain"' + ''; - doCheck = false; + doCheck = false; - propagatedBuildInputs = with final.python3Packages; [ - mutagen - fold-to-ascii - pyyaml - ]; - }; + propagatedBuildInputs = with final.python3Packages; [ + mutagen + fold-to-ascii + pyyaml + ]; + }; }; } // utils.lib.eachSystem (utils.lib.defaultSystems) (system: let @@ -57,13 +59,12 @@ devShell = pkgs.mkShell { inputsFrom = [ self.packages.${system}.musicutil ]; - buildInputs = with pkgs; - [ - nixUnstable - mutagen - self.packages.${system}.fold-to-ascii - pyyaml - ]; + buildInputs = with pkgs; [ + nixUnstable + mutagen + self.packages.${system}.fold-to-ascii + pyyaml + ]; }; lib = pkgs.musicutil.lib; });