 a19cd4ffb1
			
		
	
	
		a19cd4ffb1
		
	
	
	
	
		
			
			This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
		
			
				
	
	
		
			79 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			79 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   desktop-file-utils,
 | |
|   fetchFromGitHub,
 | |
|   ffmpeg,
 | |
|   gtk3,
 | |
|   imagemagick,
 | |
|   meson,
 | |
|   ninja,
 | |
|   pantheon,
 | |
|   pkg-config,
 | |
|   python3,
 | |
|   stdenv,
 | |
|   vala,
 | |
|   wrapGAppsHook3,
 | |
| }:
 | |
| 
 | |
| let
 | |
|   inherit (pantheon) granite;
 | |
| in
 | |
| stdenv.mkDerivation (finalAttrs: {
 | |
|   pname = "ciano";
 | |
|   version = "0.2.4";
 | |
| 
 | |
|   src = fetchFromGitHub {
 | |
|     owner = "robertsanseries";
 | |
|     repo = "ciano";
 | |
|     rev = finalAttrs.version;
 | |
|     hash = "sha256-nubm6vBWwsHrrmvFAL/cIzYPxg9B1EhnpC79IJMNuFY=";
 | |
|   };
 | |
| 
 | |
|   nativeBuildInputs = [
 | |
|     desktop-file-utils
 | |
|     meson
 | |
|     ninja
 | |
|     pkg-config
 | |
|     python3
 | |
|     vala
 | |
|     wrapGAppsHook3
 | |
|   ];
 | |
| 
 | |
|   buildInputs = [
 | |
|     ffmpeg
 | |
|     imagemagick
 | |
|     granite
 | |
|     gtk3
 | |
|   ];
 | |
| 
 | |
|   dontWrapGApps = true;
 | |
| 
 | |
|   strictDeps = true;
 | |
| 
 | |
|   postPatch = ''
 | |
|     chmod +x meson/post_install.py
 | |
|     patchShebangs meson/post_install.py
 | |
|   '';
 | |
| 
 | |
|   postFixup =
 | |
|     let
 | |
|       binPath = lib.makeBinPath [
 | |
|         ffmpeg
 | |
|         imagemagick
 | |
|       ];
 | |
|     in
 | |
|     ''
 | |
|       wrapProgram $out/bin/com.github.robertsanseries.ciano \
 | |
|          --prefix PATH : ${binPath} "''${gappsWrapperArgs[@]}"
 | |
|       ln -s $out/bin/com.github.robertsanseries.ciano $out/bin/ciano
 | |
|     '';
 | |
| 
 | |
|   meta = {
 | |
|     homepage = "https://github.com/robertsanseries/ciano";
 | |
|     description = "Multimedia file converter focused on simplicity";
 | |
|     license = lib.licenses.gpl3Plus;
 | |
|     maintainers = with lib.maintainers; [ ];
 | |
|     platforms = lib.platforms.linux;
 | |
|   };
 | |
| })
 |