-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266650 from NixOS/haskell-updates
haskellPackages: update stackage and hackage
- Loading branch information
Showing
33 changed files
with
3,130 additions
and
1,782 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
callPackage, | ||
lib, | ||
haskell, | ||
haskellPackages, | ||
}: | ||
|
||
let | ||
hsPkg = haskellPackages.changelog-d; | ||
|
||
addCompletions = haskellPackages.generateOptparseApplicativeCompletions ["changelog-d"]; | ||
|
||
haskellModifications = | ||
lib.flip lib.pipe [ | ||
addCompletions | ||
haskell.lib.justStaticExecutables | ||
]; | ||
|
||
mkDerivationOverrides = finalAttrs: oldAttrs: { | ||
|
||
version = oldAttrs.version + "-git-${lib.strings.substring 0 7 oldAttrs.src.rev}"; | ||
|
||
# nix-shell ./maintainers/scripts/update.nix --argstr package changelog-d | ||
passthru.updateScript = lib.getExe (callPackage ./updateScript.nix { }); | ||
|
||
# nix-build -A changelog-d.tests | ||
passthru.tests = { | ||
basic = callPackage ./tests/basic.nix { changelog-d = finalAttrs.finalPackage; }; | ||
}; | ||
|
||
meta = oldAttrs.meta // { | ||
homepage = "https://codeberg.org/fgaz/changelog-d"; | ||
maintainers = [ lib.maintainers.roberth ]; | ||
}; | ||
|
||
}; | ||
in | ||
(haskellModifications hsPkg).overrideAttrs mkDerivationOverrides |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ runCommand, changelog-d }: | ||
|
||
runCommand "changelog-d-basic-test" { | ||
nativeBuildInputs = [ changelog-d ]; | ||
} '' | ||
mkdir changelogs | ||
cat > changelogs/config <<EOF | ||
organization: NixOS | ||
repository: boondoggle | ||
EOF | ||
cat > changelogs/a <<EOF | ||
synopsis: Support numbers with incrementing base-10 digits | ||
issues: #1234 | ||
description: { | ||
This didn't work before. | ||
} | ||
EOF | ||
changelog-d changelogs >$out | ||
cat -n $out | ||
echo Checking the generated output | ||
set -x | ||
grep -F 'Support numbers with incrementing base-10 digits' $out >/dev/null | ||
grep -F 'https://github.com/NixOS/boondoggle/issues/1234' $out >/dev/null | ||
set +x | ||
'' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ writeShellApplication, cabal2nix }: | ||
|
||
writeShellApplication { | ||
name = "update-changelog-d"; | ||
runtimeInputs = [ | ||
cabal2nix | ||
]; | ||
text = '' | ||
cd pkgs/development/misc/haskell/changelog-d | ||
cabal2nix https://codeberg.org/fgaz/changelog-d >default.nix | ||
''; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"commit": "49d09494dd24eae895fe1260e2c26157f740e451", | ||
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/49d09494dd24eae895fe1260e2c26157f740e451.tar.gz", | ||
"sha256": "1f0m4wni61v6679ya0mb9mw3vxhak9yvjxjm6wfs7wryayb4i5ba", | ||
"msg": "Update from Hackage at 2023-10-21T19:49:07Z" | ||
"commit": "f4111a737432472002a38495b14b930255705d6a", | ||
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/f4111a737432472002a38495b14b930255705d6a.tar.gz", | ||
"sha256": "0q1nhk821fdwxmidsd9mnd77ml4c05f7rnmd80g4s876s65ldi5q", | ||
"msg": "Update from Hackage at 2023-11-10T11:27:19Z" | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.