mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
29 lines
790 B
Nix
29 lines
790 B
Nix
{ lib, stdenv, fetchurl, pkg-config, gtk2, imlib2, file, lcms2, libexif } :
|
|
|
|
stdenv.mkDerivation (rec {
|
|
version = "2.3.2";
|
|
pname = "qiv";
|
|
|
|
src = fetchurl {
|
|
url = "https://spiegl.de/qiv/download/${pname}-${version}.tgz";
|
|
sha256 = "1mc0f2nnas4q0d7zc9r6g4z93i32xlx0p9hl4fn5zkyml24a1q28";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ gtk2 imlib2 file lcms2 libexif ];
|
|
|
|
preBuild=''
|
|
substituteInPlace Makefile --replace /usr/local "$out"
|
|
substituteInPlace Makefile --replace /man/ /share/man/
|
|
substituteInPlace Makefile --replace /share/share/ /share/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Quick image viewer";
|
|
homepage = "http://spiegl.de/qiv/";
|
|
inherit version;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|