config/packages/apps/obfuscate/default.nix

79 lines
1.3 KiB
Nix

{ stdenv
, desktop-file-utils
, fetchFromGitLab
, nix-update-script
, meson
, ninja
, gettext
, python3
, rustPlatform
, rustc
, cargo
, pkg-config
, glib
, libadwaita
, gtk4
, dbus
, gst_all_1
, gdk-pixbuf
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "obfuscate";
version = "0.0.9";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "obfuscate";
rev = version;
sha256 = "sha256-aUhzact437V/bSsG2Ddu2mC03LbyXFg+hJiuGy5NQfQ=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-O/Bg8b5ZEId3PNebd19TIrFvyb0yngtKuMNJlM8M5Fg=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
meson
ninja
pkg-config
python3
cargo
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook
glib
];
buildInputs = [
dbus
gdk-pixbuf
glib
gst_all_1.gst-editing-services
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-base
(gst_all_1.gst-plugins-good.override {
gtkSupport = true;
})
gst_all_1.gstreamer
gst_all_1.gst-devtools
gtk4
libadwaita
];
postPatch = ''
patchShebangs build-aux/meson_post_install.py
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
}