Last active
August 29, 2015 14:15
-
-
Save thorhop/3bad11290096cbb7edd3 to your computer and use it in GitHub Desktop.
Expression for realTimeConfigQuickScan (or "rtconfigscan" for short)
This file contains hidden or 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
| { 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; | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/sbin/sysctlcan be patched with${procps}/sbin/sysctl