Skip to content

Commit

Permalink
add protrekkr
Browse files Browse the repository at this point in the history
  • Loading branch information
bandithedoge committed Nov 15, 2024
1 parent 23a65d6 commit dd1883b
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
peakeater-bin = callPackage' ./peakeater-bin;
powertab = callPackage' ./powertab;
propertree = callPackage' ./propertree;
protrekkr = callPackage' ./protrekkr;
pythonPackages = callPackages ./pythonPackages;
raze = callPackage' ./raze;
satty = callPackage' ./satty;
Expand Down
22 changes: 22 additions & 0 deletions pkgs/protrekkr/_sources/generated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"protrekkr": {
"cargoLocks": null,
"date": "2019-09-08",
"extract": null,
"name": "protrekkr",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"rev": "0b96ba56379eb179423e9dcbec31a08bf0326c9f",
"sha256": "sha256-4CmYp8dyDwSG2uwODTUqgVWVp53uC1lCvqfHUuJDIQw=",
"sparseCheckout": [],
"type": "git",
"url": "https://github.com/falkTX/protrekkr"
},
"version": "0b96ba56379eb179423e9dcbec31a08bf0326c9f"
}
}
18 changes: 18 additions & 0 deletions pkgs/protrekkr/_sources/generated.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file was generated by nvfetcher, please do not modify it manually.
{ fetchgit, fetchurl, fetchFromGitHub, dockerTools }:
{
protrekkr = {
pname = "protrekkr";
version = "0b96ba56379eb179423e9dcbec31a08bf0326c9f";
src = fetchgit {
url = "https://github.com/falkTX/protrekkr";
rev = "0b96ba56379eb179423e9dcbec31a08bf0326c9f";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sparseCheckout = [ ];
sha256 = "sha256-4CmYp8dyDwSG2uwODTUqgVWVp53uC1lCvqfHUuJDIQw=";
};
date = "2019-09-08";
};
}
62 changes: 62 additions & 0 deletions pkgs/protrekkr/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
pkgs,
sources,
...
}:
pkgs.stdenv.mkDerivation {
inherit (sources.protrekkr) pname src;
version = sources.protrekkr.date;

nativeBuildInputs = with pkgs; [
copyDesktopItems
makeWrapper
];

buildInputs = with pkgs; [
SDL
jack1
];

installPhase = ''
mkdir -p $out/{bin,share}
mkdir $out/share/protrekkr
cp -r \
release/distrib/history.txt \
release/distrib/instruments \
release/distrib/license.txt \
release/distrib/modules \
release/distrib/presets \
release/distrib/ptk_linux \
release/distrib/reverbs \
release/distrib/skins \
$out/share/protrekkr
mkdir $out/share/pixmaps
cp defaultlogo.png $out/share/pixmaps/protrekkr.png
makeWrapper $out/share/protrekkr/ptk_linux $out/bin/protrekkr --chdir $out/share/protrekkr
'';

makefile = "makefile.linux";

NIX_CFLAGS_COMPILE = [
"-Wno-format-security"
];

desktopItems = [
(pkgs.makeDesktopItem {
name = "protrekkr";
exec = "protrekkr %u";
desktopName = "ProTrekkr";
categories = ["AudioVideo"];
})
];

meta = with pkgs.lib; {
description = "A fork of ProTrekkr, now with linux JACK Audio support";
homepage = "https://github.com/falkTX/protrekkr";
license = licenses.bsd3;
platforms = platforms.linux;
};
}
3 changes: 3 additions & 0 deletions pkgs/protrekkr/nvfetcher.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[protrekkr]
src.git = "https://github.com/falkTX/protrekkr"
fetch.git = "https://github.com/falkTX/protrekkr"

0 comments on commit dd1883b

Please sign in to comment.