From da2658d2c916994f0862d6c19704c286e1b3ce3b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 31 May 2023 04:45:46 +0000 Subject: [PATCH 1/3] gerbv: 2.9.6 -> 2.9.7 --- pkgs/applications/science/electronics/gerbv/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/electronics/gerbv/default.nix b/pkgs/applications/science/electronics/gerbv/default.nix index a8eb0ac4c082..257df7a2da08 100644 --- a/pkgs/applications/science/electronics/gerbv/default.nix +++ b/pkgs/applications/science/electronics/gerbv/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "gerbv"; - version = "2.9.6"; + version = "2.9.7"; src = fetchFromGitHub { owner = "gerbv"; repo = pname; rev = "v${version}"; - hash = "sha256-HNhrnXOBlzfO/roWzTsg0RcJPb0c7RuJepankB5zNts="; + hash = "sha256-KxKNMWhWwmlIpueDOSWAWADEHFha8axywPJ6rRz0jIg="; }; postPatch = '' From dd0a325d945f044b7dfe60532ca7dd8134374c5a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 31 May 2023 08:59:23 +0200 Subject: [PATCH 2/3] gerbv: specify license --- pkgs/applications/science/electronics/gerbv/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/science/electronics/gerbv/default.nix b/pkgs/applications/science/electronics/gerbv/default.nix index 257df7a2da08..85a9ca05ecb8 100644 --- a/pkgs/applications/science/electronics/gerbv/default.nix +++ b/pkgs/applications/science/electronics/gerbv/default.nix @@ -26,6 +26,6 @@ stdenv.mkDerivation rec { changelog = "https://github.com/gerbv/gerbv/releases/tag/v${version}"; maintainers = with maintainers; [ mog ]; platforms = platforms.unix; - license = licenses.gpl2; + license = licenses.gpl2Plus; }; } From 083530b5780c0427f15a3e74ba6d31c20c55fe2f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 31 May 2023 09:02:13 +0200 Subject: [PATCH 3/3] gerbv: equalize --- .../science/electronics/gerbv/default.nix | 36 +++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/science/electronics/gerbv/default.nix b/pkgs/applications/science/electronics/gerbv/default.nix index 85a9ca05ecb8..963a78bf06ff 100644 --- a/pkgs/applications/science/electronics/gerbv/default.nix +++ b/pkgs/applications/science/electronics/gerbv/default.nix @@ -1,4 +1,15 @@ -{ lib, stdenv, fetchFromGitHub, pkg-config, gettext, libtool, automake, autoconf, cairo, gtk2-x11, autoreconfHook }: +{ lib +, stdenv +, autoconf +, automake +, autoreconfHook +, cairo +, fetchFromGitHub +, gettext +, gtk2-x11 +, libtool +, pkg-config +}: stdenv.mkDerivation rec { pname = "gerbv"; @@ -7,7 +18,7 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "gerbv"; repo = pname; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-KxKNMWhWwmlIpueDOSWAWADEHFha8axywPJ6rRz0jIg="; }; @@ -15,17 +26,30 @@ stdenv.mkDerivation rec { sed -i '/AC_INIT/s/m4_esyscmd.*/${version}])/' configure.ac ''; - nativeBuildInputs = [ autoreconfHook pkg-config automake autoconf ]; - buildInputs = [ gettext libtool cairo gtk2-x11 ]; + nativeBuildInputs = [ + autoconf + automake + autoreconfHook + pkg-config + ]; - configureFlags = ["--disable-update-desktop-database"]; + buildInputs = [ + cairo + gettext + gtk2-x11 + libtool + ]; + + configureFlags = [ + "--disable-update-desktop-database" + ]; meta = with lib; { description = "A Gerber (RS-274X) viewer"; homepage = "https://gerbv.github.io/"; changelog = "https://github.com/gerbv/gerbv/releases/tag/v${version}"; + license = licenses.gpl2Plus; maintainers = with maintainers; [ mog ]; platforms = platforms.unix; - license = licenses.gpl2Plus; }; }