Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hs-flake-utils
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Shae Erisson
hs-flake-utils
Commits
9221812d
Commit
9221812d
authored
1 year ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
add a utility for making a nix release app
parent
49696f70
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
lib.nix
+18
-0
18 additions, 0 deletions
lib.nix
with
19 additions
and
0 deletions
README.md
+
1
−
0
View file @
9221812d
...
@@ -54,6 +54,7 @@ A nix flake for use with Haskell, for Least Authority.
...
@@ -54,6 +54,7 @@ A nix flake for use with Haskell, for Least Authority.
];
];
};
};
packages
=
hslib
.
packages
{};
packages
=
hslib
.
packages
{};
apps
.
release
=
hslib
.
apps
.
release
{
};
});
});
}
}
```
```
This diff is collapsed.
Click to expand it.
lib.nix
+
18
−
0
View file @
9221812d
...
@@ -76,6 +76,24 @@ rec {
...
@@ -76,6 +76,24 @@ rec {
};
};
apps
=
{
apps
=
{
# Upload a candidate or (with `--publish`) publish a release.
release
=
{
}:
{
type
=
"app"
;
program
=
"
${
pkgs
.
writeShellApplication
{
name
=
"release"
;
runtimeInputs
=
with
pkgs
;
[
cabal-install
];
text
=
''
set -x
sdist=$(cabal sdist | tail -n 1)
haddocks=$(cabal haddock --haddock-for-hackage | tail -n 1)
cabal upload "$@" "$sdist"
cabal upload "$@" --documentation "$haddocks"
''
;
}
}
/bin/release"
;
};
# Create a program that runs hlint.
# Create a program that runs hlint.
hlint
=
{
hlint
=
{
# An argv to pass to hlint in addition to any arguments passed on the
# An argv to pass to hlint in addition to any arguments passed on the
...
...
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