Add SamRewritten as a custom derivation.
This commit is contained in:
		
							parent
							
								
									1b950cc5c3
								
							
						
					
					
						commit
						737a920c66
					
				| 
						 | 
					@ -65,6 +65,7 @@
 | 
				
			||||||
      xfce.xfce4-timer-plugin
 | 
					      xfce.xfce4-timer-plugin
 | 
				
			||||||
      xfce.xfce4-whiskermenu-plugin
 | 
					      xfce.xfce4-whiskermenu-plugin
 | 
				
			||||||
      xorg.libXcursor
 | 
					      xorg.libXcursor
 | 
				
			||||||
 | 
					      (callPackage ./samrewritten.nix { })
 | 
				
			||||||
      (wrapOBS {
 | 
					      (wrapOBS {
 | 
				
			||||||
        plugins = with obs-studio-plugins; [
 | 
					        plugins = with obs-studio-plugins; [
 | 
				
			||||||
          input-overlay
 | 
					          input-overlay
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,34 @@
 | 
				
			||||||
 | 
					{ lib
 | 
				
			||||||
 | 
					, stdenv
 | 
				
			||||||
 | 
					, fetchFromGitHub
 | 
				
			||||||
 | 
					, pkg-config
 | 
				
			||||||
 | 
					, curl
 | 
				
			||||||
 | 
					, glibmm
 | 
				
			||||||
 | 
					, gtkmm3
 | 
				
			||||||
 | 
					, steam
 | 
				
			||||||
 | 
					, yajl
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					stdenv.mkDerivation rec {
 | 
				
			||||||
 | 
					  pname = "SamRewritten";
 | 
				
			||||||
 | 
					  version = "202008";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  src = fetchFromGitHub {
 | 
				
			||||||
 | 
					    owner = "PaulCombal";
 | 
				
			||||||
 | 
					    repo = pname;
 | 
				
			||||||
 | 
					    rev = version;
 | 
				
			||||||
 | 
					    sha256 = "sha256-q3kDuZdnWw1Nfu3hVDD8XKJzbmwlx/lafJfhziVYKhw=";
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  nativeBuildInputs = [ pkg-config ];
 | 
				
			||||||
 | 
					  buildInputs = [ curl glibmm gtkmm3 steam yajl ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  installFlags = [ "PREFIX=$(out)" ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  meta = with lib; {
 | 
				
			||||||
 | 
					    description = "Steam Achievement Manager For Linux. Rewritten in C++.";
 | 
				
			||||||
 | 
					    homepage = "https://github.com/PaulCombal/SamRewritten";
 | 
				
			||||||
 | 
					    license = licenses.gpl3;
 | 
				
			||||||
 | 
					    platforms = [ "x86_64-linux" ];
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue