runwayml: init at 0.8.1
This commit is contained in:
parent
48a72e1979
commit
7c8e7aaa4d
45
pkgs/applications/graphics/runwayml/default.nix
Normal file
45
pkgs/applications/graphics/runwayml/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{ lib
|
||||||
|
, fetchurl
|
||||||
|
, appimageTools
|
||||||
|
, symlinkJoin
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
pname = "runwayml";
|
||||||
|
version = "0.8.1";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://runway-releases.s3.amazonaws.com/Runway%20${version}.AppImage";
|
||||||
|
sha256 = "0pqnlwk804cly2x9kph39g9ps5dv75ybi2v1fgrvmhk3wbmwmpb0";
|
||||||
|
name="${pname}-${version}.AppImage";
|
||||||
|
};
|
||||||
|
|
||||||
|
binary = appimageTools.wrapType2 {
|
||||||
|
name = "${pname}";
|
||||||
|
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";
|
||||||
|
homepage = https://runwayml.com/;
|
||||||
|
license = licenses.unfree;
|
||||||
|
maintainers = with maintainers; [ prusnak ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -24572,4 +24572,6 @@ in
|
||||||
kube3d = callPackage ../applications/networking/cluster/kube3d {};
|
kube3d = callPackage ../applications/networking/cluster/kube3d {};
|
||||||
|
|
||||||
zfs-replicate = python3Packages.callPackage ../tools/backup/zfs-replicate { };
|
zfs-replicate = python3Packages.callPackage ../tools/backup/zfs-replicate { };
|
||||||
|
|
||||||
|
runwayml = callPackage ../applications/graphics/runwayml {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue