summary refs log tree commit diff
path: root/pkgs/applications/science/electronics/gerbv/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-05-31 09:02:13 +0200
committerGitHub <noreply@github.com>2023-05-31 09:02:13 +0200
commit083530b5780c0427f15a3e74ba6d31c20c55fe2f (patch)
treed6eb4443a5e0aebcef21669c15be1ded9a8df46b /pkgs/applications/science/electronics/gerbv/default.nix
parentdd0a325d945f044b7dfe60532ca7dd8134374c5a (diff)
downloadnixpkgs-083530b5780c0427f15a3e74ba6d31c20c55fe2f.tar
nixpkgs-083530b5780c0427f15a3e74ba6d31c20c55fe2f.tar.gz
nixpkgs-083530b5780c0427f15a3e74ba6d31c20c55fe2f.tar.bz2
nixpkgs-083530b5780c0427f15a3e74ba6d31c20c55fe2f.tar.lz
nixpkgs-083530b5780c0427f15a3e74ba6d31c20c55fe2f.tar.xz
nixpkgs-083530b5780c0427f15a3e74ba6d31c20c55fe2f.tar.zst
nixpkgs-083530b5780c0427f15a3e74ba6d31c20c55fe2f.zip
gerbv: equalize
Diffstat (limited to 'pkgs/applications/science/electronics/gerbv/default.nix')
-rw-r--r--pkgs/applications/science/electronics/gerbv/default.nix36
1 files changed, 30 insertions, 6 deletions
diff --git a/pkgs/applications/science/electronics/gerbv/default.nix b/pkgs/applications/science/electronics/gerbv/default.nix
index 85a9ca05ecb..963a78bf06f 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;
   };
 }