2019-08-02 11:10:00 +01:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, appimageTools
|
|
|
|
, symlinkJoin
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "runwayml";
|
2020-01-19 13:14:53 +00:00
|
|
|
version = "0.10.20";
|
2019-08-02 11:10:00 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://runway-releases.s3.amazonaws.com/Runway%20${version}.AppImage";
|
2020-01-19 13:14:53 +00:00
|
|
|
sha256 = "1wi94xi8nrwfc4v2j1crlmwr0nxg95ffp5h4hxd84crvya8ibxgz";
|
2019-08-02 11:10:00 +01:00
|
|
|
name="${pname}-${version}.AppImage";
|
|
|
|
};
|
|
|
|
|
|
|
|
binary = appimageTools.wrapType2 {
|
2019-09-09 00:38:31 +01:00
|
|
|
name = pname;
|
2019-08-02 11:10:00 +01:00
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
# we only use this to extract the icon
|
|
|
|
appimage-contents = appimageTools.extractType2 {
|
|
|
|
inherit name src;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
symlinkJoin {
|
|
|
|
inherit name;
|
|
|
|
paths = [ binary ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
mkdir -p $out/share/pixmaps/ $out/share/applications
|
|
|
|
cp ${appimage-contents}/usr/share/icons/hicolor/1024x1024/apps/runway.png $out/share/pixmaps/runway.png
|
|
|
|
sed 's:Exec=AppRun:Exec=runwayml:' ${appimage-contents}/runway.desktop > $out/share/applications/runway.desktop
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Machine learning for creators";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://runwayml.com/";
|
2019-08-02 11:10:00 +01:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|