Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Http Backend Pass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Akshay Mankar
Terraform Http Backend Pass
Commits
caedf89b
Commit
caedf89b
authored
4 years ago
by
Akshay Mankar
Browse files
Options
Downloads
Patches
Plain Diff
Override servant version in default.nix
Also remove shell.nix
parent
73b0c37d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
default.nix
+13
-19
13 additions, 19 deletions
default.nix
nix/sources.json
+12
-0
12 additions, 0 deletions
nix/sources.json
shell.nix
+0
-37
0 additions, 37 deletions
shell.nix
with
25 additions
and
56 deletions
default.nix
+
13
−
19
View file @
caedf89b
{
mkDerivation
,
aeson
,
base
,
bytestring
,
directory
,
mtl
,
optparse-applicative
,
optparse-generic
,
servant
,
servant-server
,
shelly
,
stdenv
,
text
,
warp
,
zlib
}:
mkDerivation
{
pname
=
"terraform-http-backend-pass"
;
version
=
"0.1.0.0"
;
src
=
./.
;
isLibrary
=
true
;
isExecutable
=
true
;
libraryHaskellDepends
=
[
aeson
base
bytestring
directory
mtl
optparse-applicative
optparse-generic
servant
servant-server
shelly
text
warp
];
librarySystemDepends
=
[
zlib
];
executableHaskellDepends
=
[
base
];
license
=
"unknown"
;
hydraPlatforms
=
stdenv
.
lib
.
platforms
.
none
;
}
let
sources
=
import
./nix/sources.nix
;
in
{
pkgs
?
import
sources
.
nixpkgs
{},
compiler
?
"ghc8103"
}:
let
servantPkgs
=
import
sources
.
servant
{
inherit
pkgs
compiler
;
};
overrides
=
self
:
super
:
{
terraform-http-backend-pass
=
self
.
callCabal2nix
"terraform-http-backend-pass"
./.
{};
servant
=
servantPkgs
.
servant
;
servant-server
=
servantPkgs
.
servant-server
;
};
hPkgs
=
pkgs
.
haskell
.
packages
.
${
compiler
}
.
override
{
inherit
overrides
;
};
in
hPkgs
.
terraform-http-backend-pass
This diff is collapsed.
Click to expand it.
nix/sources.json
+
12
−
0
View file @
caedf89b
...
...
@@ -22,5 +22,17 @@
"type"
:
"tarball"
,
"url"
:
"https://github.com/NixOS/nixpkgs/archive/8542021fe7f9f777294649b1cdc853240806ff21.tar.gz"
,
"url_template"
:
"https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"servant"
:
{
"branch"
:
"master"
,
"description"
:
"Main repository for the servant libraries -- DSL for describing, serving, querying, mocking, documenting web applications and more!"
,
"homepage"
:
"https://docs.servant.dev/"
,
"owner"
:
"haskell-servant"
,
"repo"
:
"servant"
,
"rev"
:
"27173c922311112dd153346cf3cd72b9fb0f3551"
,
"sha256"
:
"08lar7s9fi49qzkgrq55z6nc0khx1z36914d2f086wprx0wyrk0a"
,
"type"
:
"tarball"
,
"url"
:
"https://github.com/haskell-servant/servant/archive/27173c922311112dd153346cf3cd72b9fb0f3551.tar.gz"
,
"url_template"
:
"https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}
This diff is collapsed.
Click to expand it.
shell.nix
deleted
100644 → 0
+
0
−
37
View file @
73b0c37d
{
nixpkgs
?
import
<
nixpkgs
>
{},
compiler
?
"default"
,
doBenchmark
?
false
}:
let
inherit
(
nixpkgs
)
pkgs
;
f
=
{
mkDerivation
,
aeson
,
base
,
bytestring
,
directory
,
mtl
,
optparse-applicative
,
optparse-generic
,
servant
,
servant-server
,
shelly
,
stdenv
,
text
,
warp
,
zlib
}:
mkDerivation
{
pname
=
"terraform-http-backend-pass"
;
version
=
"0.1.0.0"
;
src
=
./.
;
isLibrary
=
true
;
isExecutable
=
true
;
libraryHaskellDepends
=
[
aeson
base
bytestring
directory
mtl
optparse-applicative
optparse-generic
servant
servant-server
shelly
text
warp
];
librarySystemDepends
=
[
zlib
];
executableHaskellDepends
=
[
base
];
license
=
"unknown"
;
hydraPlatforms
=
stdenv
.
lib
.
platforms
.
none
;
};
haskellPackages
=
if
compiler
==
"default"
then
pkgs
.
haskellPackages
else
pkgs
.
haskell
.
packages
.
${
compiler
};
variant
=
if
doBenchmark
then
pkgs
.
haskell
.
lib
.
doBenchmark
else
pkgs
.
lib
.
id
;
drv
=
variant
(
haskellPackages
.
callPackage
f
{});
in
if
pkgs
.
lib
.
inNixShell
then
drv
.
env
else
drv
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment