nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 qttools, 7 wrapQtAppsHook, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "molequeue"; 12 version = "0.9.0"; 13 14 src = fetchFromGitHub { 15 owner = "OpenChemistry"; 16 repo = "molequeue"; 17 rev = version; 18 hash = "sha256-+NoY8YVseFyBbxc3ttFWiQuHQyy1GN8zvV1jGFjmvLg="; 19 }; 20 21 nativeBuildInputs = [ 22 cmake 23 wrapQtAppsHook 24 ]; 25 26 buildInputs = [ qttools ]; 27 28 postPatch = '' 29 substituteInPlace CMakeLists.txt \ 30 --replace-fail "cmake_minimum_required(VERSION 3.3 FATAL_ERROR)" "cmake_minimum_required(VERSION 3.10)" 31 ''; 32 33 # Fix the broken CMake files to use the correct paths 34 postInstall = '' 35 substituteInPlace $out/lib/cmake/molequeue/MoleQueueConfig.cmake \ 36 --replace "$out/" "" 37 ''; 38 39 meta = { 40 description = "Desktop integration of high performance computing resources"; 41 mainProgram = "molequeue"; 42 maintainers = with lib.maintainers; [ sheepforce ]; 43 homepage = "https://github.com/OpenChemistry/molequeue"; 44 platforms = lib.platforms.linux; 45 license = lib.licenses.bsd3; 46 }; 47}