packages feed

hsinstall 1.1 → 1.2

raw patch · 3 files changed

+20/−7 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

README.md view
@@ -67,17 +67,22 @@ ## Development  For developers who need to build against a local copy of hsinstall-I found this technique useful. Clone a copy of the source code and-install it locally:+I found this technique useful. Get a copy of the source code:        $ darcs clone http://hub.darcs.net/dino/hsinstall-      $ cd hsinstall-      $ stack install +or++      $ stack unpack hsinstall+ In another project (nearby on your system, say), modify `stack.yaml`: -      extra-package-dbs:-      - ../hsinstall/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/pkgdb+      packages:+      - '.'+      - location: /cfs/devA/projects/lib/hsinstall-1.1+        extra-dep: true+      extra-deps:+      - hsinstall-1.1  And then you should be able to build against this copy of hsinstall. Of course, these are just examples, the version numbers
hsinstall.cabal view
@@ -1,5 +1,5 @@ name:                hsinstall-version:             1.1+version:             1.2 synopsis:            Install Haskell software description:         This is a utility to install Haskell programs on a system using stack. Even though stack has an `install` command, I found it to be not enough for my needs. This software tries to install the binaries, the LICENSE file and also the resources directory if it finds one. There is also an optional library component to assist with locating installed data files at runtime. homepage:            @@ -12,6 +12,7 @@ category:            Utility build-type:          Simple cabal-version:       >=1.10+tested-with:         GHC >= 8.0.1 data-files:          resources/foo extra-source-files:  README.md                      resources/foo
util/install.hs view
@@ -72,6 +72,13 @@    installExitCode <- system $ "stack install --local-bin-path=" ++ (binDir dirs)    unless (ok installExitCode) $ die "Can't continue because stack install failed" +   -- Copy additional scripts+   {-+   putStrLn "Copying additional scripts"+   mapM_ (\f -> copyFile ("util" </> f) (binDir dirs </> f))+      [ "script1.sh", "script2.hs" ]+   -}+    -- Copy the license    putStrLn "\nCopying LICENSE"    createDirectoryIfMissing True $ docDir dirs