nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 66 lines 1.3 kB view raw
1{ 2 stdenv, 3 libsForQt5, 4 fetchFromGitLab, 5 makeDesktopItem, 6 lib, 7 copyDesktopItems, 8}: 9 10let 11 version = "0.3.3"; 12in 13 14stdenv.mkDerivation { 15 pname = "cutentr"; 16 inherit version; 17 18 src = fetchFromGitLab { 19 owner = "BoltsJ"; 20 repo = "cuteNTR"; 21 tag = version; 22 hash = "sha256-KfnC9R38qSMhQDeaMBWm1HoO3Wzs5kyfPFwdMZCWw4E="; 23 }; 24 25 desktopItems = lib.singleton (makeDesktopItem { 26 name = "cuteNTR"; 27 desktopName = "cuteNTR"; 28 icon = "cutentr"; 29 exec = "cutentr"; 30 categories = [ "Game" ]; 31 }); 32 33 nativeBuildInputs = [ 34 libsForQt5.wrapQtAppsHook 35 copyDesktopItems 36 ]; 37 38 buildInputs = [ 39 libsForQt5.qtbase 40 ]; 41 42 buildPhase = '' 43 runHook preBuild 44 qmake 45 make 46 runHook postBuild 47 ''; 48 49 installPhase = '' 50 runHook preInstall 51 mkdir -p $out/bin 52 cp -r cutentr $out/bin 53 54 install -m 444 -D setup/gui/com.gitlab.BoltsJ.cuteNTR.svg $out/share/icons/hicolor/scalable/apps/cutentr.svg 55 runHook postInstall 56 ''; 57 58 meta = { 59 description = "3DS streaming client for Linux"; 60 homepage = "https://gitlab.com/BoltsJ/cuteNTR"; 61 license = lib.licenses.gpl3Plus; 62 mainProgram = "cutentr"; 63 platforms = [ "x86_64-linux" ]; 64 maintainers = [ lib.maintainers.EarthGman ]; 65 }; 66}