config/packages/apps/obfuscate/default.nix

80 lines
1.3 KiB
Nix
Raw Normal View History

2023-05-02 00:16:17 +03:00
{ stdenv
2022-02-05 21:42:36 +02:00
, desktop-file-utils
, fetchFromGitLab
, nix-update-script
, meson
, ninja
, gettext
, python3
, rustPlatform
, rustc
, cargo
2022-02-05 21:42:36 +02:00
, pkg-config
, glib
, libadwaita
, gtk4
, dbus
, gst_all_1
, gdk-pixbuf
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "obfuscate";
2023-05-02 00:16:17 +03:00
version = "0.0.9";
2022-02-05 21:42:36 +02:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "obfuscate";
rev = version;
2023-05-02 00:16:17 +03:00
sha256 = "sha256-aUhzact437V/bSsG2Ddu2mC03LbyXFg+hJiuGy5NQfQ=";
2022-02-05 21:42:36 +02:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2023-05-02 00:16:17 +03:00
hash = "sha256-O/Bg8b5ZEId3PNebd19TIrFvyb0yngtKuMNJlM8M5Fg=";
2022-02-05 21:42:36 +02:00
};
nativeBuildInputs = [
desktop-file-utils
gettext
meson
ninja
pkg-config
python3
cargo
2022-02-05 21:42:36 +02:00
rustPlatform.cargoSetupHook
rustc
2022-02-05 21:42:36 +02:00
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;
};
};
}