nix/pkgs: init gimp-plugin-vtf
This commit is contained in:
parent
1eda43af34
commit
47702fd028
2 changed files with 37 additions and 0 deletions
|
@ -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)
|
||||
|
|
35
nix/pkgs/gimp-plugin-vtf/default.nix
Normal file
35
nix/pkgs/gimp-plugin-vtf/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
||||
#
|
||||
# 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
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue