mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
changelog-d: Move out updateScript
This commit is contained in:
parent
3ce9db808b
commit
25df0e6409
@ -1,10 +1,8 @@
|
||||
{
|
||||
cabal2nix,
|
||||
callPackage,
|
||||
lib,
|
||||
haskell,
|
||||
haskellPackages,
|
||||
writeShellApplication,
|
||||
}:
|
||||
|
||||
let
|
||||
@ -16,16 +14,7 @@ let
|
||||
|
||||
version = oldAttrs.version + "-git-${lib.strings.substring 0 7 oldAttrs.src.rev}";
|
||||
|
||||
passthru.updateScript = lib.getExe (writeShellApplication {
|
||||
name = "update-changelog-d";
|
||||
runtimeInputs = [
|
||||
cabal2nix
|
||||
];
|
||||
text = ''
|
||||
cd pkgs/development/misc/haskell/changelog-d
|
||||
cabal2nix https://codeberg.org/fgaz/changelog-d >changelog-d.nix
|
||||
'';
|
||||
});
|
||||
passthru.updateScript = lib.getExe (callPackage ./updateScript.nix { });
|
||||
passthru.tests = {
|
||||
basic = callPackage ./tests/basic.nix { changelog-d = finalAttrs.finalPackage; };
|
||||
};
|
||||
|
12
pkgs/by-name/ch/changelog-d/updateScript.nix
Normal file
12
pkgs/by-name/ch/changelog-d/updateScript.nix
Normal file
@ -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 >changelog-d.nix
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user