Skip to content

Commit

Permalink
ssh-askpass-fullscreen: adopt
Browse files Browse the repository at this point in the history
- finalAttrs design pattern
- strictDeps
- remove nested with
- set meta.mainProgram
  • Loading branch information
AndersonTorres committed Dec 30, 2023
1 parent ca389f7 commit 7d8e65b
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions pkgs/by-name/ss/ssh-askpass-fullscreen/package.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gtk2, openssh }:
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, gtk2
, openssh
, pkg-config
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "ssh-askpass-fullscreen";
version = "1.3";

src = fetchFromGitHub {
owner = "atj";
repo = pname;
rev = "v${version}";
sha256 = "sha256-1GER+SxTpbMiYLwFCwLX/hLvzCIqutyvQc9DNJ7d1C0=";
repo = "ssh-askpass-fullscreen";
rev = "v${finalAttrs.version}";
hash = "sha256-1GER+SxTpbMiYLwFCwLX/hLvzCIqutyvQc9DNJ7d1C0=";
};

nativeBuildInputs = [
Expand All @@ -21,12 +28,15 @@ stdenv.mkDerivation rec {
openssh
];

meta = with lib; {
broken = stdenv.isDarwin;
description = "A small SSH askpass GUI using GTK+2";
strictDeps = true;

meta = {
homepage = "https://github.com/atj/ssh-askpass-fullscreen";
license = licenses.gpl2;
maintainers = with maintainers; [ caadar ];
platforms = platforms.unix;
broken = stdenv.isDarwin;
description = "A small, fullscreen SSH askpass GUI using GTK+2";
license = with lib.licenses; [ gpl2Plus ];
mainProgram = "ssh-askpass-fullscreen";
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
};
}
})

0 comments on commit 7d8e65b

Please sign in to comment.