From b0cbba91674aa65da2d514e84c17c77b9cba37e6 Mon Sep 17 00:00:00 2001 From: bandithedoge Date: Thu, 9 Jan 2025 00:22:34 +0100 Subject: [PATCH] add just-a-sample --- pkgs/default.nix | 1 + .../just-a-sample-bin/_sources/generated.json | 17 +++++++++++ pkgs/just-a-sample-bin/_sources/generated.nix | 12 ++++++++ pkgs/just-a-sample-bin/default.nix | 29 +++++++++++++++++++ pkgs/just-a-sample-bin/nvfetcher.toml | 3 ++ 5 files changed, 62 insertions(+) create mode 100644 pkgs/just-a-sample-bin/_sources/generated.json create mode 100644 pkgs/just-a-sample-bin/_sources/generated.nix create mode 100644 pkgs/just-a-sample-bin/default.nix create mode 100644 pkgs/just-a-sample-bin/nvfetcher.toml diff --git a/pkgs/default.nix b/pkgs/default.nix index b21d691b..b7193fe2 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -52,6 +52,7 @@ hvcc = callPackage' ./hvcc; ildaeil = callPackage' ./ildaeil; js80p = callPackage' ./js80p; + just-a-sample-bin = callPackage' ./just-a-sample-bin; keepmenu = callPackage' ./keepmenu; kiwmi = callPackage' ./kiwmi; lamb = callPackage' ./lamb; diff --git a/pkgs/just-a-sample-bin/_sources/generated.json b/pkgs/just-a-sample-bin/_sources/generated.json new file mode 100644 index 00000000..20d5e640 --- /dev/null +++ b/pkgs/just-a-sample-bin/_sources/generated.json @@ -0,0 +1,17 @@ +{ + "just-a-sample-bin": { + "cargoLocks": null, + "date": null, + "extract": null, + "name": "just-a-sample-bin", + "passthru": null, + "pinned": false, + "src": { + "name": null, + "sha256": "sha256-E94eKlubCsIn4TwL4HnU6NJsY7NvrDRBK3LpOGsUgsA=", + "type": "url", + "url": "https://github.com/BOBONA/Just-a-Sample/releases/download/release/Linux.VST3.zip" + }, + "version": "release" + } +} \ No newline at end of file diff --git a/pkgs/just-a-sample-bin/_sources/generated.nix b/pkgs/just-a-sample-bin/_sources/generated.nix new file mode 100644 index 00000000..3b9d2e39 --- /dev/null +++ b/pkgs/just-a-sample-bin/_sources/generated.nix @@ -0,0 +1,12 @@ +# This file was generated by nvfetcher, please do not modify it manually. +{ fetchgit, fetchurl, fetchFromGitHub, dockerTools }: +{ + just-a-sample-bin = { + pname = "just-a-sample-bin"; + version = "release"; + src = fetchurl { + url = "https://github.com/BOBONA/Just-a-Sample/releases/download/release/Linux.VST3.zip"; + sha256 = "sha256-E94eKlubCsIn4TwL4HnU6NJsY7NvrDRBK3LpOGsUgsA="; + }; + }; +} diff --git a/pkgs/just-a-sample-bin/default.nix b/pkgs/just-a-sample-bin/default.nix new file mode 100644 index 00000000..dd616bea --- /dev/null +++ b/pkgs/just-a-sample-bin/default.nix @@ -0,0 +1,29 @@ +{ + pkgs, + sources, + utils, + ... +}: +pkgs.stdenv.mkDerivation { + inherit (sources.just-a-sample-bin) pname version src; + sourceRoot = "."; + + nativeBuildInputs = with pkgs; [ + autoPatchelfHook + unzip + ]; + + buildInputs = utils.juce.commonBuildInputs; + + buildPhase = '' + mkdir -p $out/lib/vst3 + cp -r JustASample.vst3 $out/lib/vst3 + ''; + + meta = with pkgs.lib; { + description = "Just a Sample is a modern, open-source audio sampler"; + homepage = "https://bobona.github.io/just-a-sample/"; + license = licenses.mit; + platforms = platforms.linux; + }; +} diff --git a/pkgs/just-a-sample-bin/nvfetcher.toml b/pkgs/just-a-sample-bin/nvfetcher.toml new file mode 100644 index 00000000..a58484b3 --- /dev/null +++ b/pkgs/just-a-sample-bin/nvfetcher.toml @@ -0,0 +1,3 @@ +[just-a-sample-bin] +src.github = "BOBONA/Just-a-Sample" +fetch.url = "https://github.com/BOBONA/Just-a-Sample/releases/download/$ver/Linux.VST3.zip"