Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
horizon-platform
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
package-sets
horizon-platform
Commits
ff1b87f6
Commit
ff1b87f6
authored
2 years ago
by
Daniel Firth
Browse files
Options
Downloads
Patches
Plain Diff
cabal2nix: init at b3ae6f9240d07ba103f1eb7ab22f6055e9cdb7dc
parent
b529b22e
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
manifest.dhall
+5
-0
5 additions, 0 deletions
manifest.dhall
overlay.nix
+2
-0
2 additions, 0 deletions
overlay.nix
pkgs/cabal2nix.nix
+46
-0
46 additions, 0 deletions
pkgs/cabal2nix.nix
with
53 additions
and
0 deletions
manifest.dhall
+
5
−
0
View file @
ff1b87f6
...
@@ -89,6 +89,11 @@ in [ callHackage "Cabal" "3.8.1.0"
...
@@ -89,6 +89,11 @@ in [ callHackage "Cabal" "3.8.1.0"
, callHackage "cabal-doctest" "1.0.9"
, callHackage "cabal-doctest" "1.0.9"
, callHackage "cabal-install" "3.8.1.0"
, callHackage "cabal-install" "3.8.1.0"
, callHackage "cabal-install-solver" "3.8.1.0"
, callHackage "cabal-install-solver" "3.8.1.0"
, callCabal2nix
"cabal2nix"
"https://github.com/NixOS/cabal2nix"
(None Text)
(Some "cabal2nix")
, callHackage "cereal" "0.5.8.3"
, callHackage "cereal" "0.5.8.3"
, callHackage "cborg" "0.2.8.0"
, callHackage "cborg" "0.2.8.0"
, callHackage "cborg-json" "0.2.5.0"
, callHackage "cborg-json" "0.2.5.0"
...
...
This diff is collapsed.
Click to expand it.
overlay.nix
+
2
−
0
View file @
ff1b87f6
...
@@ -61,6 +61,8 @@ final: prev: with pkgs.haskell.lib; {
...
@@ -61,6 +61,8 @@ final: prev: with pkgs.haskell.lib; {
cabal-install-solver
=
prev
.
callPackage
(
./pkgs/cabal-install-solver.nix
)
{
};
cabal-install-solver
=
prev
.
callPackage
(
./pkgs/cabal-install-solver.nix
)
{
};
cabal2nix
=
prev
.
callPackage
(
./pkgs/cabal2nix.nix
)
{
};
cborg
=
prev
.
callPackage
(
./pkgs/cborg.nix
)
{
};
cborg
=
prev
.
callPackage
(
./pkgs/cborg.nix
)
{
};
cborg-json
=
prev
.
callPackage
(
./pkgs/cborg-json.nix
)
{
};
cborg-json
=
prev
.
callPackage
(
./pkgs/cborg-json.nix
)
{
};
...
...
This diff is collapsed.
Click to expand it.
pkgs/cabal2nix.nix
0 → 100644
+
46
−
0
View file @
ff1b87f6
{
mkDerivation
,
aeson
,
ansi-wl-pprint
,
base
,
bytestring
,
Cabal
,
containers
,
deepseq
,
directory
,
distribution-nixpkgs
,
fetchgit
,
filepath
,
hackage-db
,
hopenssl
,
hpack
,
language-nix
,
lens
,
lib
,
monad-par
,
monad-par-extras
,
mtl
,
optparse-applicative
,
pretty
,
process
,
split
,
tasty
,
tasty-golden
,
text
,
time
,
transformers
,
yaml
}:
mkDerivation
{
pname
=
"cabal2nix"
;
version
=
"2.19.0"
;
src
=
fetchgit
{
url
=
"https://github.com/NixOS/cabal2nix"
;
sha256
=
"0ym6lyp4br57442b6a9cg9bczbjqz8nz984rxwiacldqzndk8jbr"
;
rev
=
"b3ae6f9240d07ba103f1eb7ab22f6055e9cdb7dc"
;
fetchSubmodules
=
true
;
};
postUnpack
=
"sourceRoot+=/cabal2nix/; echo source root reset to $sourceRoot"
;
isLibrary
=
true
;
isExecutable
=
true
;
libraryHaskellDepends
=
[
aeson
ansi-wl-pprint
base
bytestring
Cabal
containers
deepseq
directory
distribution-nixpkgs
filepath
hackage-db
hopenssl
hpack
language-nix
lens
optparse-applicative
pretty
process
split
text
time
transformers
yaml
];
executableHaskellDepends
=
[
aeson
base
bytestring
Cabal
containers
directory
distribution-nixpkgs
filepath
hopenssl
language-nix
lens
monad-par
monad-par-extras
mtl
optparse-applicative
pretty
];
testHaskellDepends
=
[
base
Cabal
containers
directory
filepath
language-nix
lens
pretty
process
tasty
tasty-golden
];
doHaddock
=
false
;
jailbreak
=
true
;
doCheck
=
false
;
hyperlinkSource
=
false
;
preCheck
=
''
export PATH="$PWD/dist/build/cabal2nix:$PATH"
export HOME="$TMPDIR/home"
''
;
homepage
=
"https://github.com/nixos/cabal2nix#readme"
;
description
=
"Convert Cabal files into Nix build instructions"
;
license
=
lib
.
licenses
.
bsd3
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
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