From 47702fd02865b6f810f8da0706403272f7331f7c Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 25 Nov 2021 17:13:33 +0000 Subject: [PATCH] nix/pkgs: init gimp-plugin-vtf --- nix/pkgs/default.nix | 2 ++ nix/pkgs/gimp-plugin-vtf/default.nix | 35 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 nix/pkgs/gimp-plugin-vtf/default.nix diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index 84a83af4a5..a01403cb55 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -48,5 +48,7 @@ rustc = depot.pkgs.nightlyRust.rust; inherit (depot.pkgs.nightlyRust) cargo; }; + + gimp-plugin-vtf = pkgs.callPackage ./gimp-plugin-vtf {}; } // (import ./heptapod-runner.nix args) // (import ./lightspeed args) diff --git a/nix/pkgs/gimp-plugin-vtf/default.nix b/nix/pkgs/gimp-plugin-vtf/default.nix new file mode 100644 index 0000000000..3f6415dbec --- /dev/null +++ b/nix/pkgs/gimp-plugin-vtf/default.nix @@ -0,0 +1,35 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ stdenv, fetchFromGitHub, glib, gimp, pkg-config, gdk-pixbuf, cairo, gtk2 }: + +stdenv.mkDerivation rec { + name = "gimp-plugin-vtf"; + version = "1.1"; + + src = fetchFromGitHub { + owner = "linux-source-tools"; + repo = "gimp-plugin-vtf"; + rev = version; + sha256 = "1a9k1vwq224apahnzsrg26hfvycxylbw4269f6xyw3dr54nkbi7n"; + }; + + installPhase = '' + runHook preInstall + mkdir -p $out/lib/gimp/2.0/plug-ins + cp file-vtf $out/lib/gimp/2.0/plug-ins + runHook postInstall + ''; + + buildInputs = [ + glib + gdk-pixbuf + gtk2 + gimp + cairo + ]; + nativeBuildInputs = [ + pkg-config + ]; +}