2019-08-02 10:10:00 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, appimageTools
|
|
|
|
, symlinkJoin
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "runwayml";
|
2020-08-07 09:08:40 +00:00
|
|
|
version = "0.14.3";
|
2019-08-02 10:10:00 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-08-07 09:08:40 +00:00
|
|
|
url = "https://runway-releases.s3.amazonaws.com/Runway-${version}.AppImage";
|
|
|
|
sha256 = "1bx8j39wd2z6f32hdvmk9z77bivnizzdhn296kin2nnqgq6v6y93";
|
2019-08-02 10:10:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
binary = appimageTools.wrapType2 {
|
2019-09-08 23:38:31 +00:00
|
|
|
name = pname;
|
2019-08-02 10:10:00 +00:00
|
|
|
inherit src;
|
|
|
|
};
|
2020-08-07 09:08:40 +00:00
|
|
|
# we only use this to extract the icon and desktop file
|
2019-08-02 10:10:00 +00:00
|
|
|
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 01:11:51 +00:00
|
|
|
homepage = "https://runwayml.com/";
|
2019-08-02 10:10:00 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|