refactor(nix-hm): remove deepfilternet flake

This is now built upstream by nixpkgs-unstable
This commit is contained in:
Price Hiller 2024-02-17 17:00:04 -06:00
parent c0683f0a1a
commit 65f04cce2c
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
4 changed files with 7 additions and 238 deletions

View File

@ -35,45 +35,9 @@
"type": "github"
}
},
"deepfilternet": {
"inputs": {
"deepfilternet-src": "deepfilternet-src",
"flake-utils": "flake-utils_2",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1,
"narHash": "sha256-9w21t9eYr50+QbN3cLl0wNpLbwA4hPvbUybbW1N7tAc=",
"path": "./pkgs/deepfilternet",
"type": "path"
},
"original": {
"path": "./pkgs/deepfilternet",
"type": "path"
}
},
"deepfilternet-src": {
"flake": false,
"locked": {
"lastModified": 1693481377,
"narHash": "sha256-5bYbfO1kmduNm9YV5niaaPvRIDRmPt4QOX7eKpK+sWY=",
"owner": "Rikorose",
"repo": "DeepFilterNet",
"rev": "978576aa8400552a4ce9730838c635aa30db5e61",
"type": "github"
},
"original": {
"owner": "Rikorose",
"repo": "DeepFilterNet",
"rev": "978576aa8400552a4ce9730838c635aa30db5e61",
"type": "github"
}
},
"emacs-overlay": {
"inputs": {
"flake-utils": "flake-utils_3",
"flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable"
},
@ -241,24 +205,6 @@
"inputs": {
"systems": "systems_5"
},
"locked": {
"lastModified": 1705309234,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_6": {
"inputs": {
"systems": "systems_6"
},
"locked": {
"lastModified": 1701680307,
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
@ -273,9 +219,9 @@
"type": "github"
}
},
"flake-utils_7": {
"flake-utils_6": {
"inputs": {
"systems": "systems_7"
"systems": "systems_6"
},
"locked": {
"lastModified": 1705309234,
@ -369,7 +315,7 @@
},
"kanagawa-gtk": {
"inputs": {
"flake-utils": "flake-utils_5",
"flake-utils": "flake-utils_4",
"kanagawa-gtk": "kanagawa-gtk_2",
"nixpkgs": [
"nixpkgs"
@ -421,7 +367,7 @@
},
"neovim-flake": {
"inputs": {
"flake-utils": "flake-utils_6",
"flake-utils": "flake-utils_5",
"nixpkgs": [
"neovim-nightly-overlay",
"nixpkgs"
@ -532,9 +478,8 @@
"root": {
"inputs": {
"bob": "bob",
"deepfilternet": "deepfilternet",
"emacs-overlay": "emacs-overlay",
"flake-utils": "flake-utils_4",
"flake-utils": "flake-utils_3",
"home-manager": "home-manager",
"kanagawa-gtk": "kanagawa-gtk",
"neovim-nightly-overlay": "neovim-nightly-overlay",
@ -658,21 +603,6 @@
"type": "github"
}
},
"systems_7": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"waybar": {
"inputs": {
"flake-compat": "flake-compat_2",
@ -696,7 +626,7 @@
},
"wezterm": {
"inputs": {
"flake-utils": "flake-utils_7",
"flake-utils": "flake-utils_6",
"freetype2": "freetype2",
"harfbuzz": "harfbuzz",
"libpng": "libpng",

View File

@ -12,10 +12,6 @@
url = "path:./pkgs/bob-nvim";
inputs.nixpkgs.follows = "nixpkgs";
};
deepfilternet = {
url = "path:./pkgs/deepfilternet";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
@ -50,7 +46,6 @@
inputs.neovim-nightly-overlay.overlay
inputs.emacs-overlay.overlays.emacs
inputs.bob.overlays.default
inputs.deepfilternet.overlays.default
inputs.kanagawa-gtk.overlays.default
(final: prev: {
waybar = inputs.waybar.packages.${system}.default;

View File

@ -1,79 +0,0 @@
{
"nodes": {
"deepfilternet-src": {
"flake": false,
"locked": {
"lastModified": 1693481377,
"narHash": "sha256-5bYbfO1kmduNm9YV5niaaPvRIDRmPt4QOX7eKpK+sWY=",
"owner": "Rikorose",
"repo": "DeepFilterNet",
"rev": "978576aa8400552a4ce9730838c635aa30db5e61",
"type": "github"
},
"original": {
"owner": "Rikorose",
"repo": "DeepFilterNet",
"rev": "978576aa8400552a4ce9730838c635aa30db5e61",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1705309234,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1708151420,
"narHash": "sha256-MGT/4aGCWQPQiu6COqJdCj9kSpLPiShgbwpbC38YXC8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "6e2f00c83911461438301db0dba5281197fe4b3a",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"deepfilternet-src": "deepfilternet-src",
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

View File

@ -1,77 +0,0 @@
{
description = "Flake for deepfilternet, a noise supression algorithm.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
deepfilternet-src = {
flake = false;
url =
"github:Rikorose/DeepFilterNet?rev=978576aa8400552a4ce9730838c635aa30db5e61";
};
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, deepfilternet-src }:
flake-utils.lib.eachDefaultSystem (system:
let
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
rust-toolchain = pkgs.symlinkJoin {
name = "rust-toolchain";
paths = with pkgs; [ rustc cargo ];
};
in rec {
packages.default = pkgs.rustPlatform.buildRustPackage rec {
pname = "deepfilternet";
version = "0.5.6";
src = "${deepfilternet-src}";
cargoLock = {
lockFile = "${deepfilternet-src}/Cargo.lock";
allowBuiltinFetchGit = true;
};
buildInputs = with pkgs; [ ladspaH ];
buildAndTestSubdir = "ladspa";
postInstall = ''
mkdir $out/lib/ladspa
mv $out/lib/libdeep_filter_ladspa.so $out/lib/ladspa/libdeep_filter_ladspa.so
'';
meta = {
description = "Noise supression using deep filtering";
homepage = "https://github.com/Rikorose/DeepFilterNet";
license = with lib.licenses; [ mit asl20 ];
changelog =
"https://github.com/Rikorose/DeepFilterNet/releases/tag/${src.rev}";
};
};
}) // {
overlays.default = final: prev: {
deepfilternet = self.packages.${final.system}.default;
easyeffects = let
pkgs = final.pkgs;
lib = pkgs.lib;
in prev.easyeffects.overrideAttrs (oldAttrs: {
buildInputs = with pkgs; [ deepfilternet ] ++ oldAttrs.buildInputs;
preFixup = let
lv2Plugins = with pkgs; [
calf # compressor exciter, bass enhancer and others
lsp-plugins # delay, limiter, multiband compressor
mda_lv2 # loudness
zam-plugins # maximizer
];
ladspaPlugins = with pkgs; [
deepfilternet
rubberband # pitch shifting
];
in ''
gappsWrapperArgs+=(
--set LV2_PATH "${lib.makeSearchPath "lib/lv2" lv2Plugins}"
--set LADSPA_PATH "${
lib.makeSearchPath "lib/ladspa" ladspaPlugins
}"
)
'';
});
};
};
}