Skip to content

Commit

Permalink
add Shotcut
Browse files Browse the repository at this point in the history
  • Loading branch information
novel2430 committed Dec 10, 2024
1 parent a1ac06a commit c694099
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
FuzzyMarks = pkgs.callPackage ./pkgs/FuzzyMarks { };
labwc-with-ws4waybar = pkgs.callPackage ./pkgs/labwc-with-ws4waybar { };
waybar-Consolatis-fork = pkgs.callPackage ./pkgs/waybar-Consolatis-fork { };
shotcut = pkgs.callPackage ./pkgs/shotcut { };
# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
# ...
# ...
Expand Down
57 changes: 57 additions & 0 deletions pkgs/shotcut/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{ stdenv, lib, makeWrapper, appimageTools, fetchurl, copyDesktopItems, makeDesktopItem }:
let
pkgname = "shotcut";
pkgver = "24.11.17";
shotcut-src = appimageTools.wrapType2 {
pname = "${pkgname}";
version = "${pkgver}";

src = fetchurl {
url = "https://zenlayer.dl.sourceforge.net/project/shotcut/v${pkgver}/shotcut-linux-x86_64-241117.AppImage";
hash = "sha256-TQiRW7RERL7kGsQwEgyNRGh1CUSQSSTp0uVRuMs+qo0=";
};
};
in
stdenv.mkDerivation {
pname = "${pkgname}";
version = "${pkgver}";
dontUnpack = true;

nativeBuildInputs = [
makeWrapper
copyDesktopItems
];

installPhase = ''
runHook preInstall
makeWrapper ${shotcut-src}/bin/${pkgname} $out/bin/${pkgname}
runHook postInstall
'';

desktopItems = [
(makeDesktopItem {
name = "Shotcut";
desktopName = "Shotcut";
exec = "${pkgname}";
terminal = false;
icon = "org.shotcut.Shotcut";
comment = "Shotcut is a free, open source, cross-platform video editor.";
categories = [ "AudioVideo" "Video" "AudioVideoEditing" ];
keywords = [
"video"
"audio"
"editing"
"shotcut"
];
})
];

meta = with lib; {
description = "Shotcut is a free, open source, cross-platform video editor.";
homepage = "https://shotcut.org/";
platforms = [ "x86_64-linux" ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
hydraPlatforms = [ ];
license = with licenses; [ gpl3Plus ];
};
}

0 comments on commit c694099

Please sign in to comment.