Commit 9caf4d05 authored by kyehn's avatar kyehn
Browse files
parent d1231866
Loading
Loading
Loading
Loading
+9 −19
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  pkg-config,
  glew,
@@ -16,26 +15,17 @@
  libSM,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "slop";
  version = "7.6";
  version = "7.7";

  src = fetchFromGitHub {
    owner = "naelstrof";
    repo = "slop";
    rev = "v${version}";
    sha256 = "sha256-LdBQxw8K8WWSfm4E2QpK4GYTuYvI+FX5gLOouVFSU/U=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-oUvzkIGrUTLVLR9Jf//Wh7AmnaNS2JLC3vXWg+w5W6g=";
  };

  patches = [
    (fetchpatch {
      # From Upstream PR#135: https://github.com/naelstrof/slop/pull/135
      name = "Fix-linking-of-GLEW-library.patch";
      url = "https://github.com/naelstrof/slop/commit/811b7e44648b9dd6c1da1554e70298cf4157e5fe.patch";
      sha256 = "sha256-LNUrAeVZUJFNOt1csOaIid7gLBdtqRxp8AcC7f3cnIQ=";
    })
  ];

  nativeBuildInputs = [
    cmake
    pkg-config
@@ -53,12 +43,12 @@ stdenv.mkDerivation rec {
    libSM
  ];

  meta = with lib; {
    inherit (src.meta) homepage;
    description = "Queries a selection from the user and prints to stdout";
  meta = {
    inherit (finalAttrs.src.meta) homepage;
    description = "Queries for a selection from the user and prints the region to stdout";
    platforms = lib.platforms.linux;
    license = licenses.gpl3Plus;
    license = lib.licenses.gpl3Plus;
    maintainers = [ ];
    mainProgram = "slop";
  };
}
})