real_time_config_quick_scan:unstable-2020-08-03 -> unstable-2020-07-23
also resolve suggestions from https://github.com/NixOS/nixpkgs/pull/78998
This commit is contained in:
parent
4eec1d6967
commit
e6ff4707bc
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "realTimeConfigQuickScan";
|
pname = "realTimeConfigQuickScan";
|
||||||
version = "unstable-2020-08-03";
|
version = "unstable-2020-07-23";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "raboof";
|
owner = "raboof";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "4b482db17f8d8567ba0abf33459ceb5f756f088c";
|
rev = "4697ba093d43d512b74a73b89531cb8c5adaa274";
|
||||||
sha256 = "00l69gzwla9gjv5kpklgxlwnl48wnh8h6w0k8i69qr2cxigg4rhj";
|
sha256 = "16kanzp5i353x972zjkwgi3m8z90wc58613mlfzb0n01djdnm6k5";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ perlPackages.perl makeWrapper ];
|
buildInputs = [ perlPackages.perl makeWrapper ];
|
||||||
@ -16,28 +16,35 @@ stdenv.mkDerivation rec {
|
|||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
mkdir -p $out/share/doc
|
mkdir -p $out/share/$pname
|
||||||
|
mkdir -p $out/share/doc/$pname
|
||||||
# Install Script Files:
|
# Install Script Files:
|
||||||
# *.pm files
|
# *.pm files
|
||||||
for i in *.pm; do
|
for i in *.pm; do
|
||||||
install -Dm 755 "$i" "$out/share/$i"
|
install -Dm 755 "$i" "$out/share/$pname/$i"
|
||||||
done
|
done
|
||||||
# Install doc files:
|
# Install doc files:
|
||||||
install -D COPYING "$out/share/doc/COPYING"
|
install -D COPYING "$out/share/doc/$pname/COPYING"
|
||||||
install -D README.md "$out/share/doc/README.md"
|
install -D README.md "$out/share/doc/$pname/README.md"
|
||||||
# Install Executable scripts:
|
# Install Executable scripts:
|
||||||
install -Dm 755 realTimeConfigQuickScan.pl "$out/bin/realTimeConfigQuickScan"
|
install -Dm 755 realTimeConfigQuickScan.pl "$out/bin/realTimeConfigQuickScan"
|
||||||
install -Dm 755 QuickScan.pl "$out/bin/QuickScan"
|
install -Dm 755 QuickScan.pl "$out/bin/QuickScan"
|
||||||
wrapProgram $out/bin/realTimeConfigQuickScan \
|
runHook postInstall
|
||||||
--set PERL5LIB "$out/share"
|
|
||||||
wrapProgram $out/bin/QuickScan \
|
|
||||||
--set PERL5LIB "$out/share:${with perlPackages; makePerlPath [ Tk ]}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/realTimeConfigQuickScan \
|
||||||
|
--set PERL5LIB "$out/share/$pname"
|
||||||
|
wrapProgram $out/bin/QuickScan \
|
||||||
|
--set PERL5LIB "$out/share/$pname:${with perlPackages; makePerlPath [ Tk ]}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Linux configuration checker for systems to be used for real-time audio";
|
description = "Linux configuration checker for systems to be used for real-time audio";
|
||||||
homepage = "https://github.com/raboof/realtimeconfigquickscan";
|
homepage = "https://github.com/raboof/realtimeconfigquickscan";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ magnetophon ];
|
maintainers = with maintainers; [ magnetophon ];
|
||||||
platforms = platforms.linux ;
|
platforms = platforms.linux ;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user