nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at python-updates 74 lines 2.1 kB view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 gobject-introspection, 5 gst_all_1, 6 lib, 7 libadwaita, 8 libcanberra-gtk3, 9 pkg-config, 10 sound-theme-freedesktop, 11 libspelling, 12 gtksourceview5, 13 wrapGAppsHook4, 14}: 15 16buildGoModule rec { 17 pname = "dissent"; 18 version = "0.0.37"; 19 20 src = fetchFromGitHub { 21 owner = "diamondburned"; 22 repo = "dissent"; 23 tag = "v${version}"; 24 hash = "sha256-xrNWMLZMZiJv08hsnc/aDe8e/aytngHKD/EhFVcF5PU="; 25 }; 26 27 nativeBuildInputs = [ 28 gobject-introspection 29 pkg-config 30 wrapGAppsHook4 31 ]; 32 33 buildInputs = [ 34 # Optional according to upstream but required for sound and video 35 gst_all_1.gst-plugins-bad 36 gst_all_1.gst-plugins-base 37 gst_all_1.gst-plugins-good 38 gst_all_1.gst-plugins-ugly 39 gst_all_1.gstreamer 40 libadwaita 41 libcanberra-gtk3 42 sound-theme-freedesktop 43 # gotk4-spelling fails to build with libspelling >= 0.3.0 44 # https://github.com/diamondburned/gotk4-spelling/issues/1 45 libspelling 46 gtksourceview5 47 ]; 48 49 postInstall = '' 50 substituteInPlace nix/so.libdb.dissent.service \ 51 --replace-warn "/usr/bin/dissent" "$out/bin/dissent" 52 install -D -m 444 -t $out/share/applications nix/so.libdb.dissent.desktop 53 install -D -m 444 -t $out/share/icons/hicolor/scalable/apps internal/icons/hicolor/scalable/apps/so.libdb.dissent.svg 54 install -D -m 444 -t $out/share/icons/hicolor/symbolic/apps internal/icons/symbolic/apps/so.libdb.dissent-symbolic.svg 55 install -D -m 444 -t $out/share/metainfo so.libdb.dissent.metainfo.xml 56 install -D -m 444 -t $out/share/dbus-1/services nix/so.libdb.dissent.service 57 ''; 58 59 vendorHash = "sha256-tl9H0qtp96XOanniMFqjZcsSU8LqJ4aluPoKULDzVdw="; 60 61 meta = { 62 description = "Third-party Discord client designed for a smooth, native experience (formerly gtkcord4)"; 63 homepage = "https://github.com/diamondburned/dissent"; 64 license = with lib.licenses; [ 65 gpl3Plus 66 cc0 67 ]; 68 mainProgram = "dissent"; 69 maintainers = with lib.maintainers; [ 70 hmenke 71 aleksana 72 ]; 73 }; 74}