From 8fb479ae5ac335e67413189984adaaaed0fbf4db Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 12 Jun 2015 19:43:47 +0200 Subject: beuteltiere --- custom/beuteltier.nix | 30 ++++++++++++++++++++++++++++++ custom/opossum-wrapper.nix | 20 ++++++++++++++++++++ custom/opossum.nix | 30 ++++++++++++++++++++++++++++++ custom/wombat.nix | 29 +++++++++++++++++++++++++++++ 4 files changed, 109 insertions(+) create mode 100644 custom/beuteltier.nix create mode 100644 custom/opossum-wrapper.nix create mode 100644 custom/opossum.nix create mode 100644 custom/wombat.nix (limited to 'custom') diff --git a/custom/beuteltier.nix b/custom/beuteltier.nix new file mode 100644 index 00000000..0df82948 --- /dev/null +++ b/custom/beuteltier.nix @@ -0,0 +1,30 @@ +# This file was auto-generated by cabal2nix. Please do NOT edit manually! + +{ cabal, aeson, dataDefault, filepath, lenses, mtl, tar, text +, transformers, yaml, zlib, cryptohash, time, base16Bytestring +, attoparsecExpr, caseInsensitive, timeparsers +, fetchgit +}: + +cabal.mkDerivation (self: { + pname = "beuteltier"; + version = "5.1.3"; + #src = ./.; + src = fetchgit { + url = git://git.yggdrasil.li/beuteltier; + # nix-shell -p nix-prefetch-scripts --command 'nix-prefetch-git git://git.yggdrasil.li/beuteltier' 2>&1 | grep -E '(git revision|hash) is ' | sed -r 's/git revision is /rev = "/' | sed -r 's/hash is /sha256 = "/' | sed -r 's/$/";/' + rev = "8c7be69fa083176f7566cce7c6e2993b7a47b6aa"; + sha256 = "964d33d7e8a170f1a9aa9e48caceb633ce4f748ea747d73069641775b6988d7a"; + }; + buildDepends = [ + aeson dataDefault filepath lenses mtl tar text transformers yaml + zlib cryptohash time base16Bytestring attoparsecExpr caseInsensitive + timeparsers + ]; + meta = { + homepage = "git://git.yggdrasil.li/beuteltier"; + description = "Accessor library for \"Beutel\" (Bag) - a backstore (directory) containing tracked objects (.tgz files with a yaml manifest inside)"; + license = self.stdenv.lib.licenses.publicDomain; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/custom/opossum-wrapper.nix b/custom/opossum-wrapper.nix new file mode 100644 index 00000000..2a2a1bff --- /dev/null +++ b/custom/opossum-wrapper.nix @@ -0,0 +1,20 @@ +{ stdenv +, ghcWithPackages +, makeWrapper +, opossum +, additionalPackages ? (p: []) +}: + +let + myEnv = ghcWithPackages (p: with p; [ beuteltier opossum ] ++ additionalPackages p); +in stdenv.mkDerivation { + name = "opossum-wrapper"; + + nativeBuildInputs = [ makeWrapper ]; + + buildCommand = '' + mkdir -p $out/bin + makeWrapper ${opossum}/bin/opossum $out/bin/opossum \ + --set NIX_GHC ${myEnv}/bin/ghc + ''; +} diff --git a/custom/opossum.nix b/custom/opossum.nix new file mode 100644 index 00000000..e55086c2 --- /dev/null +++ b/custom/opossum.nix @@ -0,0 +1,30 @@ +# This file was auto-generated by cabal2nix. Please do NOT edit manually! + +{ cabal, beuteltier, dataDefault, dyre, exceptions, feed, filepath +, httpClient, httpClientTls, lenses, mtl, shellMonad, tagged, text +, time, transformers, hxt, caseInsensitive, attoparsec +, fetchgit +}: + +cabal.mkDerivation (self: { + pname = "opossum"; + version = "1.1.0"; + src = fetchgit { + url = git://git.yggdrasil.li/opossum; + # nix-shell -p nix-prefetch-scripts --command 'nix-prefetch-git git://git.yggdrasil.li/opossum' 2>&1 | grep -E '(git revision|hash) is ' | sed -r 's/git revision is /rev = "/' | sed -r 's/hash is /sha256 = "/' | sed -r 's/$/";/' + rev = "47aaa1d9e622c12a6f911454e111e8228c9f592c"; + sha256 = "18fe08a902778bf70c88954fcf659ae196da7a1ee7841344624b15bf30ad3910"; + }; + isLibrary = true; + isExecutable = true; + buildDepends = [ + beuteltier dataDefault dyre exceptions feed filepath httpClient + httpClientTls lenses mtl shellMonad tagged text time transformers + hxt caseInsensitive attoparsec + ]; + meta = { + description = "A webscraper for beuteltier"; + license = self.stdenv.lib.licenses.publicDomain; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/custom/wombat.nix b/custom/wombat.nix new file mode 100644 index 00000000..baeac700 --- /dev/null +++ b/custom/wombat.nix @@ -0,0 +1,29 @@ +# This file was auto-generated by cabal2nix. Please do NOT edit manually! + +{ cabal, aeson, beuteltier, filepath, lenses, mtl +, optparseApplicative, text, time, transformers +, unorderedContainers, vector +, fetchgit +}: + +cabal.mkDerivation (self: { + pname = "wombat"; + version = "0.4.0"; + src = fetchgit { + url = git://git.yggdrasil.li/wombat; + # nix-shell -p nix-prefetch-scripts --command 'nix-prefetch-git git://git.yggdrasil.li/wombat' 2>&1 | grep -E '(git revision|hash) is ' | sed -r 's/git revision is /rev = "/' | sed -r 's/hash is /sha256 = "/' | sed -r 's/$/";/' + rev = "8f1b1ed05d12a0f5f47a7834d4878d2a3e8014d3"; + sha256 = "f441971623f3f2a35df9feae0ac927b5447d62fede33fd67bb54baeb08468a51"; + }; + isLibrary = false; + isExecutable = true; + buildDepends = [ + aeson beuteltier filepath lenses mtl optparseApplicative text time + transformers unorderedContainers vector + ]; + meta = { + description = "A Beuteltier"; + license = self.stdenv.lib.licenses.publicDomain; + platforms = self.ghc.meta.platforms; + }; +}) -- cgit v1.2.3