Merge branch 'master' of git.marvid.fr:mpo/overlays-personal into master
This commit is contained in:
commit
6ca3382649
3 changed files with 100 additions and 5 deletions
|
@ -2,9 +2,6 @@
|
|||
|
||||
self: super:
|
||||
|
||||
#let
|
||||
# mopidyTree = import (builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/d68db15912f6ff0f0082ed3825efae5098c77905.tar.gz) {};
|
||||
#in
|
||||
{
|
||||
iosevka-hskl = super.iosevka.override {
|
||||
privateBuildPlan = {
|
||||
|
@ -42,6 +39,8 @@ self: super:
|
|||
stdenv = super.overrideCC super.stdenv super.gcc6;
|
||||
};
|
||||
|
||||
squeezer = super.callPackage ./squeezer {};
|
||||
|
||||
# Originally from Mats Rauhala ®2018
|
||||
copy = super.writeScriptBin "copy" ''
|
||||
function clean() {
|
||||
|
@ -55,5 +54,12 @@ self: super:
|
|||
|
||||
clean &
|
||||
'';
|
||||
|
||||
myAt = super.writeScriptBin "at" ''
|
||||
echo "Running cmd in $(( $(date -d "$1" +%s) - $(date +%s) )) seconds"
|
||||
sleep $(( $(date -d "$1" +%s) - $(date +%s) ))
|
||||
shift 1
|
||||
eval "$@"
|
||||
'';
|
||||
}
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "reaper-${version}";
|
||||
version = "6.12c";
|
||||
version = "6.13";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.reaper.fm/files/${stdenv.lib.versions.major version}.x/reaper${builtins.replaceStrings ["."] [""] version}_linux_x86_64.tar.xz";
|
||||
sha256 = "1xnd4qvgwsz1dmgb656i611776dqcb84m1gh30i8jhpwcr9ym46w";
|
||||
sha256 = "1qx8i2b13qg23i3zmb4wdrsaipkqadpv13vg8blqlpqwxmp0lvmh";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
|
||||
|
|
89
pkgs/squeezer/default.nix
Normal file
89
pkgs/squeezer/default.nix
Normal file
|
@ -0,0 +1,89 @@
|
|||
{ stdenv, fetchFromGitHub, fetchzip, unzip
|
||||
, alsaLib, astyle, clang, freetype, gnumake, libjack2, xorg
|
||||
}:
|
||||
|
||||
let
|
||||
vst2 = fetchzip {
|
||||
url = "https://archive.org/download/VST2SDK/vstsdk2_4.zip";
|
||||
sha256 = "10jm5rijh2sq2m60zlf9plvii0p1x6fgy4dalyg963q1kbwri8q3";
|
||||
name = "vst2";
|
||||
};
|
||||
vst3 = fetchzip {
|
||||
url = "https://github.com/steinbergmedia/vst3sdk/archive/vstsdk3612_03_12_2018_build_67.tar.gz";
|
||||
sha256 = "1pkrll0fb5mq9wrrsfcwxbqdhajp6zdya9pznmmn09pbqf009yky";
|
||||
name = "vst3";
|
||||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "squeezer";
|
||||
version = "v2.5.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mzuther";
|
||||
repo = "Squeezer";
|
||||
rev = version;
|
||||
sha256 = "1l4dsbwcgimc6wpqpmvv4wmq45sfglcwbix0n65wmg36wdxvnxwl";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
# Prepping missing libraries
|
||||
|
||||
cd libraries
|
||||
rm -r juce vst2 vst3
|
||||
mkdir vst2
|
||||
cp -r ${vst2} vst2/VST2_SDK
|
||||
cp -r ${vst3} vst3
|
||||
|
||||
unzip juce_5.4.7.zip
|
||||
mv JUCE-5.4.7 juce
|
||||
|
||||
# Let's build
|
||||
|
||||
cd ../Builds
|
||||
make -j16 --directory=linux/gmake config=release_x64 all
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
# Prepping missing libraries
|
||||
|
||||
cd ../bin
|
||||
|
||||
./finalise_binaries.sh
|
||||
|
||||
cd final
|
||||
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/lib/vst
|
||||
|
||||
mv *vst2_x64.so $out/lib/vst/
|
||||
cp -Lr squeezer $out/lib/vst/
|
||||
mv *_x64 $out/bin/
|
||||
cp -Lr squeezer $out/bin/
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
alsaLib
|
||||
astyle
|
||||
clang
|
||||
freetype
|
||||
gnumake
|
||||
libjack2
|
||||
unzip
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXext
|
||||
xorg.libXinerama
|
||||
xorg.libXrandr
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.mzuther.de/en/software/squeezer";
|
||||
description = "Flexible general-purpose audio compressor with a touch of citrus";
|
||||
maintainers = [ maintainers.jpotier ];
|
||||
license = licenses.gpl3;
|
||||
platforms = ["x86_64-linux"];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue