Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 55 lines 991 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 qmake, 6 qtbase, 7 pkg-config, 8 sigutils, 9 fftwSinglePrec, 10}: 11 12stdenv.mkDerivation { 13 pname = "suwidgets"; 14 version = "unstable-2022-04-03"; 15 16 src = fetchFromGitHub { 17 owner = "BatchDrake"; 18 repo = "SuWidgets"; 19 rev = "826b3eeae5b682dc063f53b427caa9c7c48131ea"; 20 sha256 = "sha256-cyFLsP+8GbALdlgEnVX4201Qq/KAxb/Vv+sJqbFpvUk="; 21 }; 22 23 dontWrapQtApps = true; 24 25 postPatch = '' 26 substituteInPlace SuWidgets.pri \ 27 --replace "PKGCONFIG += sigutils fftw3" "PKGCONFIG += sigutils fftw3f" 28 ''; 29 30 nativeBuildInputs = [ 31 qmake 32 pkg-config 33 ]; 34 35 buildInputs = [ 36 qtbase 37 sigutils 38 fftwSinglePrec 39 ]; 40 41 qmakeFlags = [ 42 "SuWidgetsLib.pro" 43 ]; 44 45 meta = with lib; { 46 description = "Sigutils-related widgets"; 47 homepage = "https://github.com/BatchDrake/SuWidgets"; 48 license = licenses.gpl3; 49 platforms = platforms.all; 50 maintainers = with maintainers; [ 51 polygon 52 oxapentane 53 ]; 54 }; 55}