Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 59 lines 1.4 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 pkg-config, 6 deepin-gettext-tools, 7 libsForQt5, 8 dtkwidget, 9 udisks2-qt5, 10 qt5platform-plugins, 11 qt5integration, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "dde-device-formatter"; 16 version = "0.0.1.16"; 17 18 src = fetchFromGitHub { 19 owner = "linuxdeepin"; 20 repo = pname; 21 rev = version; 22 hash = "sha256-l2D+j+u5Q6G45KTM7eg1QNEakEPtEJ0tzlDlQO5/08I="; 23 }; 24 25 postPatch = '' 26 substituteInPlace translate_desktop2ts.sh translate_ts2desktop.sh \ 27 --replace "/usr/bin/deepin-desktop-ts-convert" "deepin-desktop-ts-convert" 28 substituteInPlace dde-device-formatter.pro dde-device-formatter.desktop \ 29 --replace "/usr" "$out" 30 patchShebangs *.sh 31 ''; 32 33 nativeBuildInputs = [ 34 libsForQt5.qmake 35 libsForQt5.qttools 36 libsForQt5.wrapQtAppsHook 37 pkg-config 38 deepin-gettext-tools 39 ]; 40 41 buildInputs = [ 42 dtkwidget 43 udisks2-qt5 44 qt5platform-plugins 45 qt5integration 46 libsForQt5.qtx11extras 47 ]; 48 49 cmakeFlags = [ "-DVERSION=${version}" ]; 50 51 meta = { 52 description = "Simple graphical interface for creating file system in a block device"; 53 mainProgram = "dde-device-formatter"; 54 homepage = "https://github.com/linuxdeepin/dde-device-formatter"; 55 license = lib.licenses.gpl3Plus; 56 platforms = lib.platforms.linux; 57 teams = [ lib.teams.deepin ]; 58 }; 59}