about summary refs log tree commit diff
path: root/pkgs/by-name/vp
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2024-05-10 20:22:05 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2024-06-04 08:19:10 -0300
commit2113ff8eaee338997a6d43b2744693291538d8a2 (patch)
tree7c6b28ce51c0e1456c399672a92cfba4be23f658 /pkgs/by-name/vp
parentfe33007f338f4be2627978f0fdd4e1ee47cb808d (diff)
vp: 1.8 -> 1.8-unstable-2017-03-22
- finalAttrs
- strictDeps
- split outputs
- fix NIX_CFLAGS_COMPILE
- add maintainer AndersonTorres
Diffstat (limited to 'pkgs/by-name/vp')
-rw-r--r--pkgs/by-name/vp/vp/package.nix48
1 files changed, 34 insertions, 14 deletions
diff --git a/pkgs/by-name/vp/vp/package.nix b/pkgs/by-name/vp/vp/package.nix
index 07dbfef2f5f56..3c3df820127fd 100644
--- a/pkgs/by-name/vp/vp/package.nix
+++ b/pkgs/by-name/vp/vp/package.nix
@@ -1,28 +1,48 @@
-{ lib, stdenv, fetchFromGitHub, autoreconfHook, SDL, SDL_image }:
+{
+  lib,
+  SDL,
+  SDL_image,
+  autoreconfHook,
+  fetchFromGitHub,
+  stdenv,
+}:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "vp";
-  version = "1.8";
+  version = "1.8-unstable-2017-03-22";
 
   src = fetchFromGitHub {
     owner = "erikg";
     repo = "vp";
-    rev = "v${version}";
-    sha256 = "08q6xrxsyj6vj0sz59nix9isqz84gw3x9hym63lz6v8fpacvykdq";
+    rev = "52bae15955dbd7270cc906af59bb0fe821a01f27";
+    hash = "sha256-AWRJ//0z97EwvQ00qWDjVeZrPrKnRMOXn4RagdVrcFc=";
   };
 
-  nativeBuildInputs = [ autoreconfHook ];
+  nativeBuildInputs = [
+    autoreconfHook
+    SDL
+  ];
 
-  buildInputs = [ SDL SDL_image ];
+  buildInputs = [
+    SDL
+    SDL_image
+  ];
 
-  env.NIX_CFLAGS_COMPILE = "-I${SDL}/include/SDL -I${SDL_image}/include/SDL";
+  outputs = [ "out" "man" ];
 
-  meta = with lib; {
-    homepage = "https://brlcad.org/~erik/";
+  strictDeps = true;
+
+  env.NIX_CFLAGS_COMPILE = toString [
+    "-I${lib.getDev SDL}/include/SDL"
+    "-I${lib.getDev SDL_image}/include/SDL"
+  ];
+
+  meta = {
+    homepage = "https://github.com/erikg/vp";
     description = "SDL based picture viewer/slideshow";
-    platforms = platforms.unix;
-    license  = licenses.gpl3;
-    maintainers = [ maintainers.vrthra ];
+    license  = lib.licenses.gpl3Plus;
     mainProgram = "vp";
+    maintainers = with lib.maintainers; [ AndersonTorres vrthra ];
+    inherit (SDL.meta) platforms;
   };
-}
+})