generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23a65d6
commit dd1883b
Showing
5 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |