about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/pinsel/default.nix
blob: de6cc3700838de4128d934dbdccc24b9436c17ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, stdenv, fetchFromGitHub, pkg-config, gtk3, lua, glib }:

stdenv.mkDerivation rec {
  pname = "pinsel";
  version = "unstable-2021-09-13";

  src = fetchFromGitHub {
    owner = "Nooo37";
    repo = pname;
    rev = "24b0205ca041511b3efb2a75ef296539442f9f54";
    sha256 = "sha256-w+jiKypZODsmZq3uWGNd8PZhe1SowHj0thcQTX8WHfQ=";
  };

  strictDeps = true;

  nativeBuildInputs = [ pkg-config glib ];

  buildInputs = [ lua gtk3 ];

  makeFlags = [ "INSTALLDIR=${placeholder "out"}/bin" ];

  preInstall = ''
    mkdir -p $out/bin
  '';

  meta = with lib; {
    description = "Minimal screenshot annotation tool with lua config";
    homepage = "https://github.com/Nooo37/pinsel";
    # no license
    license = licenses.unfree;
    maintainers = with maintainers; [ lom ];
    mainProgram = "pinsel";
  };
}