Skip to content

Instantly share code, notes, and snippets.

@thorhop
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save thorhop/3bad11290096cbb7edd3 to your computer and use it in GitHub Desktop.

Select an option

Save thorhop/3bad11290096cbb7edd3 to your computer and use it in GitHub Desktop.
Expression for realTimeConfigQuickScan (or "rtconfigscan" for short)
{ stdenv, fetchFromGithub, perl, enableX11 ? true }:
stdenv.mkDerivation {
name = "rtsyscheck";
src = fetchFromGitHub {
owner = "raboof";
repo = "realtimeconfigquickscan";
sha256 = "ece51e802afa1ddb1a6164407fa11b62f3a90d408ac17637bea4dc50d71595a4";
};
configurePhase = ''
sed -i 's/#!/\usr/#!${pkgs.perl}/\usr/g' $src/realTimeConfigQuickScan.pl
sed -i 's/#!/\usr/#!${pkgs.perl}/\usr/g' $src/QuickScan.pl
sed -i 's//\sbin/\sysctl/sysctl' $src/SwappinessCheck.pm
'';
installPhase = ''
mkdir $out/share/rtconfigscan
cp -f -R $src/* $out/share/rtconfigscan
ln -s $out/share/rtsyscheck/realTimeConfigQuickScan.pl $out/bin/rtsyscheck''
++ stdenv.lib.optional enableX11 ''
ln -s $out/share/rtsyscheck/QuickScan.pl $out/bin/rtsyscheck-tk
'';
meta = with stdenv.lib; {
description = "A set of scripts designed to compare optimal audio workstation settings with the current settings";
license = licenses.gpl2;
platforms = platforms.linux;
};
}
@henrytill
Copy link

/sbin/sysctl can be patched with ${procps}/sbin/sysctl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment