lol

First programs extracted from go-packages: deis and gawp

+96 -34
+29
pkgs/development/go-modules/libs.json
··· 1 + [ 2 + { 3 + "goPackagePath": "golang.org/x/sys", 4 + "fetch": { 5 + "type": "git", 6 + "url": "https://go.googlesource.com/sys", 7 + "rev": "7a56174f0086b32866ebd746a794417edbc678a1", 8 + "sha256": "13jaz47wyrfak066ywkrvqnk1ijxik0nlvi7vkpi3gaiwcrlb5g2" 9 + } 10 + }, 11 + { 12 + "goPackagePath": "gopkg.in/fsnotify.v1", 13 + "fetch": { 14 + "type": "git", 15 + "url": "https://gopkg.in/fsnotify.v1", 16 + "rev": "30411dbcefb7a1da7e84f75530ad3abe4011b4f8", 17 + "sha256": "1ljkdzbj9ll3jx1dggslzpm475prvsg22hdpxnb6kxqyk3z8dqdj" 18 + } 19 + }, 20 + { 21 + "goPackagePath": "gopkg.in/yaml.v2", 22 + "fetch": { 23 + "type": "git", 24 + "url": "https://gopkg.in/yaml.v2", 25 + "rev": "a83829b6f1293c91addabc89d0571c246397bbf4", 26 + "sha256": "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh" 27 + } 28 + } 29 + ]
+36
pkgs/development/tools/deis/default.nix
··· 1 + # This file was generated by go2nix. 2 + { stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }: 3 + 4 + with goPackages; 5 + 6 + buildGoPackage rec { 7 + name = "deis-${version}"; 8 + version = "1.13.0"; 9 + rev = "v${version}"; 10 + 11 + goPackagePath = "github.com/deis/deis"; 12 + subPackages = [ "client" ]; 13 + 14 + postInstall = '' 15 + if [ -f "$bin/bin/client" ]; then 16 + mv "$bin/bin/client" "$bin/bin/deis" 17 + fi 18 + ''; 19 + 20 + src = fetchgit { 21 + inherit rev; 22 + url = "https://github.com/deis/deis"; 23 + sha256 = "1fblg3gf7dh5hhm4ajq7yl7iy6gw8p5xlh4z8kvfy542m1fzr0dc"; 24 + }; 25 + 26 + extraSrcs = map ( jsonDep: 27 + { 28 + inherit (jsonDep) goPackagePath; 29 + src = if jsonDep.fetch.type == "git" then 30 + fetchgit { 31 + inherit (jsonDep.fetch) url rev sha256; 32 + } 33 + else {}; 34 + } 35 + ) (builtins.fromJSON (builtins.readFile ../../go-modules/libs.json)); 36 + }
+29
pkgs/tools/misc/gawp/default.nix
··· 1 + # This file was generated by go2nix. 2 + { stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }: 3 + 4 + with goPackages; 5 + 6 + buildGoPackage rec { 7 + name = "gawp-${version}"; 8 + version = "20160121-${stdenv.lib.strings.substring 0 7 rev}"; 9 + rev = "5db2d8faa220e8d6eaf8677354bd197bf621ff7f"; 10 + 11 + goPackagePath = "github.com/martingallagher/gawp"; 12 + 13 + src = fetchgit { 14 + inherit rev; 15 + url = "https://github.com/martingallagher/gawp"; 16 + sha256 = "0r4bp4w3s9rkmg3cz9jb7d6ngh7vfj31p9kbim6mhilxvmgjk4ly"; 17 + }; 18 + 19 + extraSrcs = map ( jsonDep: 20 + { 21 + inherit (jsonDep) goPackagePath; 22 + src = if jsonDep.fetch.type == "git" then 23 + fetchgit { 24 + inherit (jsonDep.fetch) url rev sha256; 25 + } 26 + else {}; 27 + } 28 + ) (builtins.fromJSON (builtins.readFile ../../../development/go-modules/libs.json)); 29 + }
+2 -2
pkgs/top-level/all-packages.nix
··· 730 730 731 731 ddate = callPackage ../tools/misc/ddate { }; 732 732 733 - deis = goPackages.deis.bin // { outputs = [ "bin" ]; }; 733 + deis = (callPackage ../development/tools/deis {}).bin; 734 734 735 735 dfilemanager = self.kde5.dfilemanager; 736 736 ··· 1644 1644 gawkInteractive = appendToName "interactive" 1645 1645 (gawk.override { interactive = true; }); 1646 1646 1647 - gawp = goPackages.gawp.bin // { outputs = [ "bin" ]; }; 1647 + gawp = (callPackage ../tools/misc/gawp {}).bin; 1648 1648 1649 1649 gazeboSimulator = recurseIntoAttrs { 1650 1650 sdformat = gazeboSimulator.sdformat4;
-32
pkgs/top-level/go-packages.nix
··· 669 669 sha256 = "1wxv2cbihzcsz2z7iycyzl7f3arhhgagcc5kqln1k1mkm4l85z0q"; 670 670 }; 671 671 672 - deis = buildFromGitHub { 673 - rev = "v1.12.2"; 674 - owner = "deis"; 675 - repo = "deis"; 676 - sha256 = "03lznzcij3gn08kqj2p6skifcdv5aw09dm6zxgvqw7nxx2n1j2ib"; 677 - subPackages = [ "client" ]; 678 - buildInputs = [ docopt-go crypto yaml-v2 ]; 679 - postInstall = '' 680 - if [ -f "$bin/bin/client" ]; then 681 - mv "$bin/bin/client" "$bin/bin/deis" 682 - fi 683 - ''; 684 - }; 685 - 686 672 dns = buildFromGitHub { 687 673 rev = "7e024ce8ce18b21b475ac6baf8fa3c42536bf2fa"; 688 674 version = "2016-03-28"; ··· 932 918 owner = "peterbourgon"; 933 919 repo = "g2s"; 934 920 sha256 = "1p4p8755v2nrn54rik7yifpg9szyg44y5rpp0kryx4ycl72307rj"; 935 - }; 936 - 937 - gawp = buildFromGitHub { 938 - rev = "488705639109de54d38974cc31353d34cc2cd609"; 939 - version = "2015-08-31"; 940 - owner = "martingallagher"; 941 - repo = "gawp"; 942 - sha256 = "0iqqd63nqdijdskdb9f0jwnm6akkh1p2jw4p2w7r1dbaqz1znyay"; 943 - dontInstallSrc = true; 944 - buildInputs = [ fsnotify.v1 yaml-v2 ]; 945 - 946 - meta = with stdenv.lib; { 947 - homepage = "https://github.com/martingallagher/gawp"; 948 - description = "A simple, configurable, file watching, job execution tool implemented in Go"; 949 - maintainers = with maintainers; [ kamilchm ]; 950 - license = licenses.asl20 ; 951 - platforms = platforms.all; 952 - }; 953 921 }; 954 922 955 923 gcloud-golang = buildFromGitHub {