- First version. Released on an unsuspecting world.
Created
May 3, 2021 21:37
-
-
Save prutz1311/22fc52961936fb22031c06e4677a6d75 to your computer and use it in GitHub Desktop.
tarlib-zlib-cabal-example
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
LICENSE |
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
module Main where | |
main :: IO () | |
main = putStrLn "Hello, Haskell!" |
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
let | |
config = { | |
packageOverrides = pkgs: rec { | |
haskellPackages = pkgs.haskellPackages.override { | |
overrides = haskellPackagesNew: haskellPackagesOld: rec { | |
tarlib-zlib-cabal-example = | |
haskellPackagesNew.callPackage ./tarlib-zlib-cabal-example.nix { | |
tar = pkgs.libtar; | |
z = pkgs.zlib; | |
}; | |
}; | |
}; | |
}; | |
}; | |
pkgs = import (fetchTarball https://github.com/NixOS/nixpkgs/archive/20.09.tar.gz) { inherit config; }; | |
in | |
rec { | |
tarlib-zlib-cabal-example = pkgs.haskellPackages.tarlib-zlib-cabal-example; | |
} |
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
import Distribution.Simple | |
main = defaultMain |
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
cabal-version: >=1.10 | |
name: tarlib-zlib-cabal-example | |
version: 0.1.0.0 | |
license-file: LICENSE | |
build-type: Simple | |
extra-source-files: CHANGELOG.md | |
executable tarlib-zlib-cabal-example | |
main-is: Main.hs | |
build-depends: base >=4.13 && <4.14 | |
, tar | |
, zlib | |
default-language: Haskell2010 | |
extra-libraries: tar | |
, z |
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
{ mkDerivation, base, stdenv, tar, zlib }: | |
mkDerivation { | |
pname = "tarlib-zlib-cabal-example"; | |
version = "0.1.0.0"; | |
src = ./.; | |
isLibrary = false; | |
isExecutable = true; | |
executableHaskellDepends = [ base tar zlib ]; | |
license = "unknown"; | |
hydraPlatforms = stdenv.lib.platforms.none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment