Skip to content

Commit

Permalink
switchres: init at 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Sep 9, 2024
1 parent fee763d commit a9d7ac4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/by-name/sw/switchres/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
stdenv,
lib,
pkg-config,
fetchFromGitHub,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "switchres";
version = "2.2.1";

src = fetchFromGitHub {
owner = "antonioginer";
repo = "switchres";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-/21RcpumWYNBPck7gpH6krwC3Thz/rKDPgeJblN2BDA=";
};

nativeBuildInputs = [
pkg-config
];

preInstall = ''
export PREFIX=$out
install -Dm755 switchres $out/bin/switchres
'';
meta = {
description = "Modeline generation engine for emulation";
homepage = "https://github.com/antonioginer/switchres";
changelog = "https://github.com/antonioginer/switchres/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl2Only;
mainProgram = "switchres";
maintainers = with lib.maintainers; [ bot-wxt1221 ];
platforms = lib.platforms.linux;
};
})

0 comments on commit a9d7ac4

Please sign in to comment.