lol

odafileconverter: init at 21.7.0.0 (#95392)

authored by

Simonas Kazlauskas and committed by
GitHub
a8bd5c1d d0e52b6b

+61
+6
maintainers/maintainer-list.nix
··· 9488 9488 github = "fzakaria"; 9489 9489 githubId = 605070; 9490 9490 }; 9491 + nagisa = { 9492 + name = "Simonas Kazlauskas"; 9493 + email = "nixpkgs@kazlauskas.me"; 9494 + github = "nagisa"; 9495 + githubId = 679122; 9496 + }; 9491 9497 yevhenshymotiuk = { 9492 9498 name = "Yevhen Shymotiuk"; 9493 9499 email = "yevhenshymotiuk@gmail.com";
+53
pkgs/applications/graphics/odafileconverter/default.nix
··· 1 + { lib, stdenv, mkDerivation, dpkg, fetchurl, qtbase }: 2 + 3 + let 4 + # To obtain the version you will need to run the following command: 5 + # 6 + # dpkg-deb -I ${odafileconverter.src} | grep Version 7 + version = "21.7.0.0"; 8 + rpath = "$ORIGIN:${lib.makeLibraryPath [ stdenv.cc.cc qtbase ]}"; 9 + 10 + in mkDerivation { 11 + pname = "oda-file-converter"; 12 + inherit version; 13 + nativeBuildInputs = [ dpkg ]; 14 + 15 + src = fetchurl { 16 + # NB: this URL is not stable (i.e. the underlying file and the corresponding version will change over time) 17 + url = "https://download.opendesign.com/guestfiles/ODAFileConverter/ODAFileConverter_QT5_lnxX64_7.2dll.deb"; 18 + sha256 = "0sa21nnwzqb6g7gl0z43smqgcd9h3xipj3cq2cl7ybfh3cvcxfi9"; 19 + }; 20 + 21 + unpackPhase = '' 22 + dpkg -x $src oda_unpacked 23 + sourceRoot=$PWD/oda_unpacked 24 + ''; 25 + 26 + installPhase = '' 27 + mkdir -p $out/bin $out/lib 28 + cp -vr $sourceRoot/usr/bin/ODAFileConverter_${version} $out/libexec 29 + cp -vr $sourceRoot/usr/share $out/share 30 + ''; 31 + 32 + dontWrapQtApps = true; 33 + fixupPhase = '' 34 + echo "setting interpreter" 35 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/libexec/ODAFileConverter 36 + patchelf --set-rpath '${rpath}' $out/libexec/ODAFileConverter 37 + wrapQtApp $out/libexec/ODAFileConverter 38 + mv $out/libexec/ODAFileConverter $out/bin 39 + 40 + find $out/libexec -type f -executable | while read file; do 41 + echo "patching $file" 42 + patchelf --set-rpath '${rpath}' $file 43 + done 44 + ''; 45 + 46 + meta = with stdenv.lib; { 47 + description = "For converting between different versions of .dwg and .dxf"; 48 + homepage = "https://www.opendesign.com/guestfiles/oda_file_converter"; 49 + license = licenses.unfree; 50 + maintainers = with maintainers; [ nagisa ]; 51 + platforms = [ "x86_64-linux" ]; 52 + }; 53 + }
+2
pkgs/top-level/all-packages.nix
··· 2269 2269 2270 2270 obinskit = callPackage ../applications/misc/obinskit {}; 2271 2271 2272 + odafileconverter = libsForQt5.callPackage ../applications/graphics/odafileconverter {}; 2273 + 2272 2274 pastel = callPackage ../applications/misc/pastel { 2273 2275 inherit (darwin.apple_sdk.frameworks) Security; 2274 2276 };