-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
cabal2nix ./. > default.nix | ||
#cabal2nix cabal://RFC1751 > nix/RFC1751.nix | ||
cabal2nix --rev=cb6b960262ce1a7f598a3d08d00a2c348dfed91e git://github.com/np/RFC1751.git > nix/RFC1751.nix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This file was auto-generated by cabal2nix. Please do NOT edit manually! | ||
|
||
{ cabal, aeson, attoparsec, base16Bytestring, binary, cryptohash | ||
, either, hashable, haskoin, RFC1751, scientific, text | ||
, unorderedContainers | ||
}: | ||
|
||
cabal.mkDerivation (self: { | ||
pname = "hx"; | ||
version = "0.1.0.0"; | ||
src = ./.; | ||
isLibrary = false; | ||
isExecutable = true; | ||
buildDepends = [ | ||
aeson attoparsec base16Bytestring binary cryptohash either hashable | ||
haskoin RFC1751 scientific text unorderedContainers | ||
]; | ||
meta = { | ||
homepage = "https://github.com/np/hx"; | ||
description = "Bitcoin CLI tools: Haskell port of Sx using Haskoin"; | ||
license = self.stdenv.lib.licenses.gpl3; | ||
platforms = self.ghc.meta.platforms; | ||
}; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This file was auto-generated by cabal2nix. Please do NOT edit manually! | ||
|
||
{ cabal, binary, fetchgit, HUnit, QuickCheck, testFramework | ||
, testFrameworkHunit, testFrameworkQuickcheck2 | ||
}: | ||
|
||
cabal.mkDerivation (self: { | ||
pname = "RFC1751"; | ||
version = "0.3.0.0"; | ||
src = fetchgit { | ||
url = "git://github.com/np/RFC1751.git"; | ||
sha256 = "bca0caaa073d1a0d828b08632838f414d3358db90e7f4d43045a028540f25327"; | ||
rev = "cb6b960262ce1a7f598a3d08d00a2c348dfed91e"; | ||
}; | ||
buildDepends = [ binary ]; | ||
testDepends = [ | ||
binary HUnit QuickCheck testFramework testFrameworkHunit | ||
testFrameworkQuickcheck2 | ||
]; | ||
meta = { | ||
homepage = "https://github.com/xenog/RFC1751"; | ||
description = "RFC-1751 library for Haskell"; | ||
license = self.stdenv.lib.licenses.publicDomain; | ||
platforms = self.ghc.meta.platforms; | ||
}; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
let pkgs = (import <nixpkgs> {}); | ||
haskellPackages = pkgs.recurseIntoAttrs (pkgs.haskellPackages.override { | ||
extension = self : super : | ||
let callPackage = self.callPackage; | ||
in { | ||
RFC1751 = callPackage ./nix/RFC1751.nix {}; | ||
thisPackage = haskellPackages.callPackage (import ./default.nix) {}; | ||
};}); | ||
in pkgs.lib.overrideDerivation haskellPackages.thisPackage (old: { | ||
buildInputs = old.buildInputs ++ [ | ||
haskellPackages.cabalInstall | ||
# (2) | ||
];}) |