nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (878B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   libiconv,
      6 }:
      7 
      8 stdenv.mkDerivation (finalAttrs: {
      9   pname = "gimgtools";
     10   version = "0.01-unstable-2013-09-19";
     11 
     12   src = fetchFromGitHub {
     13     owner = "wuyongzheng";
     14     repo = "gimgtools";
     15     rev = "92d015749e105c5fb8eb704ae503a5c7e51af2bd";
     16     hash = "sha256-AgZqczhYr5frD9Id75if/38O057BC6YfeGquFpidKZI=";
     17   };
     18 
     19   buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
     20 
     21   makeFlags = [ "CC:=$(CC)" ];
     22 
     23   installPhase = ''
     24     for tool in gimginfo gimgfixcmd gimgxor gimgunlock gimgch gimgextract cmdc; do
     25       install -Dm755 $tool -t $out/bin
     26     done
     27   '';
     28 
     29   meta = {
     30     description = "Garmin Image Tools";
     31     homepage = "https://github.com/wuyongzheng/gimgtools";
     32     license = lib.licenses.gpl2;
     33     maintainers = [ lib.maintainers.sikmir ];
     34     platforms = lib.platforms.unix;
     35     broken = stdenv.isDarwin;
     36   };
     37 })