From 439f6752c27e077ce0f28fd4178e8e2a47eaa2d6 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Tue, 6 Feb 2024 16:41:33 +0100 Subject: [PATCH] posterazor: minor improvements --- .../po/posterazor/package.nix} | 16 +++++++++++++--- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 13 insertions(+), 5 deletions(-) rename pkgs/{applications/misc/posterazor/default.nix => by-name/po/posterazor/package.nix} (83%) diff --git a/pkgs/applications/misc/posterazor/default.nix b/pkgs/by-name/po/posterazor/package.nix similarity index 83% rename from pkgs/applications/misc/posterazor/default.nix rename to pkgs/by-name/po/posterazor/package.nix index 77e5e34899ea..6ccb0598506e 100644 --- a/pkgs/applications/misc/posterazor/default.nix +++ b/pkgs/by-name/po/posterazor/package.nix @@ -1,4 +1,13 @@ -{ lib, stdenv, fetchurl, cmake, unzip, pkg-config, libXpm, fltk13, freeimage }: +{ lib +, stdenv +, fetchurl +, cmake +, unzip +, pkg-config +, libXpm +, fltk13 +, freeimage +}: stdenv.mkDerivation rec { pname = "posterazor"; @@ -6,7 +15,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://sourceforge/posterazor/${version}/PosteRazor-${version}-Source.zip"; - sha256 = "1dqpdk8zl0smdg4fganp3hxb943q40619qmxjlga9jhjc01s7fq5"; + hash = "sha256-BbujA2ASyqQelb3iFAwgeJC0OhzXqufIa1UD+tFsF7c="; }; hardeningDisable = [ "format" ]; @@ -32,8 +41,9 @@ stdenv.mkDerivation rec { meta = with lib; { homepage = "http://posterazor.sourceforge.net/"; description = "Cuts a raster image into pieces which can afterwards be printed out and assembled to a poster"; - maintainers = [ maintainers.madjar ]; license = licenses.gpl3Plus; platforms = platforms.linux; + maintainers = [ maintainers.madjar ]; + mainProgram = "PosteRazor"; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2de3b5d49b3e..dc6af249a2a2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -34666,8 +34666,6 @@ with pkgs; potrace = callPackage ../applications/graphics/potrace { }; - posterazor = callPackage ../applications/misc/posterazor { }; - pqiv = callPackage ../applications/graphics/pqiv { }; qiv = callPackage ../applications/graphics/qiv {