Commit c5e9529
Changed files (3)
pkgs/harmonoid/default.nix
@@ -0,0 +1,68 @@
+{
+ lib,
+ stdenvNoCC,
+ fetchurl,
+ autoPatchelfHook,
+ makeWrapper,
+ dpkg,
+ gtk3,
+ mpv,
+ xdg-utils,
+ zenity,
+}:
+stdenvNoCC.mkDerivation rec {
+ pname = "harmonoid";
+ version = "0.3.22";
+
+ src =
+ if stdenvNoCC.isAarch64
+ then
+ fetchurl {
+ url = "https://github.com/alexmercerind2/harmonoid-releases/releases/download/v${version}/harmonoid-linux-aarch64.tar.gz";
+ hash = "sha256-jXN5i+LudsODNZUzb5SXClqgQxYzanrbZCqB8X0pJRQ=";
+ }
+ else
+ fetchurl {
+ url = "https://github.com/alexmercerind2/harmonoid-releases/releases/download/v${version}/harmonoid-linux-x86_64.tar.gz";
+ hash = "sha256-+fEx30uu0rZiORrtE00xG2piJzpFbfxSZw3OjrhLJyg=";
+ };
+
+ dontStrip = true;
+
+ nativeBuildInputs = [
+ makeWrapper
+ autoPatchelfHook
+ dpkg
+ ];
+
+ buildInputs = [
+ gtk3
+ mpv
+ xdg-utils
+ zenity
+ ];
+
+ sourceRoot = ".";
+
+ installPhase = ''
+ runHook preInstall
+ mkdir -p $out
+
+ cp -r usr/* $out/
+
+ runHook postInstall
+ '';
+
+ postFixup = ''
+ wrapProgram $out/bin/harmonoid \
+ --prefix PATH : ${lib.makeBinPath buildInputs} \
+ --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [mpv]}:$out/share/harmonoid/lib"
+ '';
+
+ meta = {
+ description = "Plays & manages your music library. Looks beautiful & juicy.";
+ homepage = "https://harmonoid.com/";
+ license = lib.licenses.unfree;
+ platforms = ["x86_64-linux" "aarch64-linux"];
+ };
+}
default.nix
@@ -17,5 +17,6 @@
overlays = import ./overlays; # nixpkgs overlays
dwproton-bin = pkgs.callPackage ./pkgs/dwproton-bin {};
+ harmonoid = pkgs.callPackage ./pkgs/harmonoid {};
particle-music = pkgs.callPackage ./pkgs/particle-music {};
}
README.md
@@ -7,4 +7,5 @@
| **Path** | **Name** | **Version** |
| ---------------- | ---------------------------------------------------------- | ----------- |
| `dwproton-bin` | [dwproton-bin](https://dawn.wine/dawn-winery/dwproton) | `10.0-26` |
+| `harmonoid` | [harmonoid](https://harmonoid.com/) | `0.3.22` |
| `particle-music` | [particle-music](https://github.com/AfalpHy/ParticleMusic) | `2.1.2` |