format nix
This commit is contained in:
parent
3dff1ae3eb
commit
784fade8c0
51
flake.nix
51
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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue