2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, perlPackages, makeWrapper }:
|
2020-02-01 09:01:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "realTimeConfigQuickScan";
|
2020-08-03 20:44:53 +01:00
|
|
|
version = "unstable-2020-07-23";
|
2020-02-01 09:01:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raboof";
|
|
|
|
repo = pname;
|
2020-08-03 20:44:53 +01:00
|
|
|
rev = "4697ba093d43d512b74a73b89531cb8c5adaa274";
|
|
|
|
sha256 = "16kanzp5i353x972zjkwgi3m8z90wc58613mlfzb0n01djdnm6k5";
|
2020-02-01 09:01:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perlPackages.perl makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-08-03 20:44:53 +01:00
|
|
|
runHook preInstall
|
2020-02-01 09:01:13 +00:00
|
|
|
mkdir -p $out/bin
|
2020-08-03 20:44:53 +01:00
|
|
|
mkdir -p $out/share/$pname
|
|
|
|
mkdir -p $out/share/doc/$pname
|
2020-02-01 09:01:13 +00:00
|
|
|
# Install Script Files:
|
|
|
|
# *.pm files
|
|
|
|
for i in *.pm; do
|
2020-08-03 20:44:53 +01:00
|
|
|
install -Dm 755 "$i" "$out/share/$pname/$i"
|
2020-02-01 09:01:13 +00:00
|
|
|
done
|
|
|
|
# Install doc files:
|
2020-08-03 20:44:53 +01:00
|
|
|
install -D COPYING "$out/share/doc/$pname/COPYING"
|
|
|
|
install -D README.md "$out/share/doc/$pname/README.md"
|
2020-02-01 09:01:13 +00:00
|
|
|
# Install Executable scripts:
|
|
|
|
install -Dm 755 realTimeConfigQuickScan.pl "$out/bin/realTimeConfigQuickScan"
|
|
|
|
install -Dm 755 QuickScan.pl "$out/bin/QuickScan"
|
2020-08-03 20:44:53 +01:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2020-02-01 09:01:13 +00:00
|
|
|
wrapProgram $out/bin/realTimeConfigQuickScan \
|
2020-08-03 20:44:53 +01:00
|
|
|
--set PERL5LIB "$out/share/$pname"
|
2020-02-01 09:01:13 +00:00
|
|
|
wrapProgram $out/bin/QuickScan \
|
2020-08-03 20:44:53 +01:00
|
|
|
--set PERL5LIB "$out/share/$pname:${with perlPackages; makePerlPath [ Tk ]}"
|
2020-02-01 09:01:13 +00:00
|
|
|
'';
|
2020-08-03 20:44:53 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-01 09:01:13 +00:00
|
|
|
description = "Linux configuration checker for systems to be used for real-time audio";
|
|
|
|
homepage = "https://github.com/raboof/realtimeconfigquickscan";
|
2020-08-03 20:44:53 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2020-02-01 09:01:13 +00:00
|
|
|
maintainers = with maintainers; [ magnetophon ];
|
|
|
|
platforms = platforms.linux ;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|