 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
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   buildGoModule,
 | |
|   fetchFromGitHub,
 | |
| }:
 | |
| 
 | |
| buildGoModule rec {
 | |
|   pname = "open-in-mpv";
 | |
|   version = "2.4.3";
 | |
| 
 | |
|   src = fetchFromGitHub {
 | |
|     owner = "Baldomo";
 | |
|     repo = "open-in-mpv";
 | |
|     rev = "v${version}";
 | |
|     hash = "sha256-mr1c2L5D1v+4VoPA4i5q7/RCdWLLZ1UfTGayiG5Nm6M=";
 | |
|   };
 | |
| 
 | |
|   vendorHash = "sha256-G6GZO2+CfEAYcf7zBcqDa808A0eJjM8dq7+4VGZ+P4c=";
 | |
| 
 | |
|   ldflags = [
 | |
|     "-s"
 | |
|     "-w"
 | |
|   ];
 | |
| 
 | |
|   postInstall = ''
 | |
|     install -Dm444 -t $out/share/applications scripts/open-in-mpv.desktop
 | |
|   '';
 | |
| 
 | |
|   meta = with lib; {
 | |
|     description = "Simple web extension to open videos in mpv";
 | |
|     longDescription = ''
 | |
|       To function the browser extension must be installed and open-in-mpv must be set as the default scheme-handler for mpv:// eg.:
 | |
|         xdg-mime default open-in-mpv.desktop x-scheme-handler/mpv
 | |
| 
 | |
|       https://addons.mozilla.org/en-US/firefox/addon/iina-open-in-mpv/
 | |
|       https://chrome.google.com/webstore/detail/open-in-mpv/ggijpepdpiehgbiknmfpfbhcalffjlbj
 | |
|     '';
 | |
|     homepage = "https://github.com/Baldomo/open-in-mpv";
 | |
|     license = licenses.gpl3Only;
 | |
|     maintainers = with maintainers; [ SuperSandro2000 ];
 | |
|     mainProgram = "open-in-mpv";
 | |
|   };
 | |
| }
 |