diff options
author | jraygauthier <jraygauthier@users.noreply.github.com> | 2016-04-25 07:16:47 -0400 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-04-25 13:16:47 +0200 |
commit | ddc401ed0a8c768ee784aff3d50dc97f8ba8e279 (patch) | |
tree | cd9af50a93133d671bf857e435746f951b8d60b2 /pkgs/build-support/icon-conv-tools/default.nix | |
parent | d7e79dcacf06c0f6f14af8fdead4db74dd9a83af (diff) | |
download | nixpkgs-ddc401ed0a8c768ee784aff3d50dc97f8ba8e279.tar nixpkgs-ddc401ed0a8c768ee784aff3d50dc97f8ba8e279.tar.gz nixpkgs-ddc401ed0a8c768ee784aff3d50dc97f8ba8e279.tar.bz2 nixpkgs-ddc401ed0a8c768ee784aff3d50dc97f8ba8e279.tar.lz nixpkgs-ddc401ed0a8c768ee784aff3d50dc97f8ba8e279.tar.xz nixpkgs-ddc401ed0a8c768ee784aff3d50dc97f8ba8e279.tar.zst nixpkgs-ddc401ed0a8c768ee784aff3d50dc97f8ba8e279.zip |
icon-conv-tools: init at 0.0.0 (#13905)
A nix specific set of tools for converting icon files that are not in a freedesktop ready format. I plan on using these tools for both `keepass` and `retroarch` packages. It may benifit many other packages.
Diffstat (limited to 'pkgs/build-support/icon-conv-tools/default.nix')
-rw-r--r-- | pkgs/build-support/icon-conv-tools/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/build-support/icon-conv-tools/default.nix b/pkgs/build-support/icon-conv-tools/default.nix new file mode 100644 index 00000000000..739ec485159 --- /dev/null +++ b/pkgs/build-support/icon-conv-tools/default.nix @@ -0,0 +1,31 @@ +{ stdenv, icoutils }: + +stdenv.mkDerivation { + name = "icon-conv-tools-0.0.0"; + + src = ./.; + + buildInputs = [ icoutils ]; + + patchPhase = '' + substituteInPlace "./bin/extractWinRscIconsToStdFreeDesktopDir.sh" \ + --replace "icotool" "${icoutils}/bin/icotool" \ + --replace "wrestool" "${icoutils}/bin/wrestool" + ''; + + buildPhase = '' + mkdir -p "$out/bin" + cp -p "./bin/"* "$out/bin" + ''; + + installPhase = "true"; + + dontPatchELF = true; + dontStrip = true; + + meta = { + description = "Tools for icon conversion specific to nix package manager"; + maintainers = with stdenv.lib.maintainers; [ jraygauthier ]; + }; + +} \ No newline at end of file |