77 lines
1.3 KiB
Nix
77 lines
1.3 KiB
Nix
{ lib, stdenv
|
|
, desktop-file-utils
|
|
, fetchFromGitLab
|
|
, nix-update-script
|
|
, meson
|
|
, ninja
|
|
, gettext
|
|
, python3
|
|
, rustPlatform
|
|
, pkg-config
|
|
, glib
|
|
, libadwaita
|
|
, gtk4
|
|
, dbus
|
|
, gst_all_1
|
|
, gdk-pixbuf
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "obfuscate";
|
|
version = "0.0.7";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = "obfuscate";
|
|
rev = version;
|
|
sha256 = "sha256-jEMOg2yHi6K57XhA/7hkwwvedmikoB8pGV3ka+jixq8=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
hash = "sha256-dluYUKi4lCj2quUt2PeMxAw6AL6co0WdmiCUs5IZlw0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
gettext
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
rustPlatform.rust.cargo
|
|
rustPlatform.cargoSetupHook
|
|
rustPlatform.rust.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;
|
|
};
|
|
};
|
|
}
|