gtdialog: refactor
This commit is contained in:
parent
459f9fe2be
commit
2f399cfa6c
|
@ -1,32 +1,29 @@
|
|||
{lib, stdenv, fetchurl, cdk, unzip, gtk2, glib, ncurses, pkg-config}:
|
||||
let
|
||||
s = # Generated upstream information
|
||||
rec {
|
||||
baseName="gtdialog";
|
||||
version="1.4";
|
||||
name="${baseName}-${version}";
|
||||
hash="1lhsaz56s8m838fi6vnfcd2r6djymvy3n2pbqhii88hraapq3rfk";
|
||||
url="https://foicica.com/gtdialog/download/gtdialog_1.4.zip";
|
||||
sha256="1lhsaz56s8m838fi6vnfcd2r6djymvy3n2pbqhii88hraapq3rfk";
|
||||
{ lib, stdenv, fetchurl, cdk, unzip, gtk2, glib, ncurses, pkg-config }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gtdialog";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://foicica.com/gtdialog/download/gtdialog_${version}.zip";
|
||||
sha256 = "sha256-0+WBr1IZIhQjxOsKO/yuXjaTRWPObhMdGqgibcpXGtI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config unzip ];
|
||||
buildInputs = [
|
||||
cdk gtk2 glib ncurses
|
||||
cdk
|
||||
gtk2
|
||||
glib
|
||||
ncurses
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (s) name version;
|
||||
inherit nativeBuildInputs buildInputs;
|
||||
src = fetchurl {
|
||||
inherit (s) url sha256;
|
||||
};
|
||||
makeFlags = ["PREFIX=$(out)"];
|
||||
meta = {
|
||||
inherit (s) version;
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross-platform helper for creating interactive dialogs";
|
||||
license = lib.licenses.mit ;
|
||||
maintainers = [lib.maintainers.raskin];
|
||||
platforms = lib.platforms.linux;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = platforms.linux;
|
||||
homepage = "http://foicica.com/gtdialog";
|
||||
downloadPage = "http://foicica.com/gtdialog/download";
|
||||
};
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
url http://foicica.com/gtdialog/download
|
||||
version_link '[.]zip$'
|
||||
version '.*_([0-9.]*)[.]zip' '\1'
|
Loading…
Reference in a new issue