35 stdenv.mkDerivation rec {
40 url = "https://media.avocode.com/download/avocode-app/${version}/avocode-${version}-linux.zip";
41 sha256 = "sha256-vNQT4jyMIIAk1pV3Hrp40nawFutWCv7xtwg2gU6ejy0=";
44 libPath = lib.makeLibraryPath (
85 desktopItem = makeDesktopItem {
89 desktopName = "Avocode";
90 genericName = "Design Inspector";
91 categories = [ "Development" ];
92 comment = "The bridge between designers and developers";
105 # src is producing multiple folder on unzip so we must
106 # override unpackCmd to extract it into newly created folder
113 substituteInPlace avocode.desktop.in \
114 --replace /path/to/avocode-dir/Avocode $out/bin/avocode \
115 --replace /path/to/avocode-dir/avocode.png avocode
117 mkdir -p share/applications share/pixmaps
118 mv avocode.desktop.in share/applications/avocode.desktop
119 mv avocode.png share/pixmaps/
125 ln -s $out/avocode $out/bin/avocode
126 ln -s ${mozjpeg}/bin/cjpeg $out/resources/cjpeg
130 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/avocode
131 for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
132 patchelf --set-rpath ${libPath}:$out/ $file || true
136 enableParallelBuilding = true;
139 homepage = "https://avocode.com/";
140 description = "Bridge between designers and developers";
141 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
142 license = licenses.unfree;
143 platforms = platforms.linux;
144 maintainers = with maintainers; [ megheaiulian ];