File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: MPL-2.0
44
5- { pkgs ? import ( import ../nix/sources.nix ) . nixpkgs { } } :
5+ { pkgs ? import ( import ../nix/sources.nix ) . nixpkgs { } , timestamp } :
66let
7- executable = ( import ../xrefcheck.nix {
8- static = true ;
9- } ) . components . exes . xrefcheck ;
10- joinByBasename = name : paths :
11- pkgs . runCommandNoCC name { } ( ''
12- mkdir $out
13- '' + pkgs . lib . concatMapStrings ( path : ''
14- ln -s ${ path } $out/${ builtins . baseNameOf path }
15- '' ) paths ) ;
16- in joinByBasename "xrefcheck-release" [
17- "${ executable } /bin"
18- ../LICENSES
19- ../README.md
7+ executable =
8+ ( import ../xrefcheck.nix { static = true ; } ) . components . exes . xrefcheck ;
9+
10+ releaseNotes = pkgs . writeText "release-notes.md" ''
11+ Automatic release on ${ timestamp }
12+ '' ;
13+ in pkgs . linkFarm "xrefcheck-release" [
14+ {
15+ name = "release-notes.md" ;
16+ path = releaseNotes ;
17+ }
18+ {
19+ name = "xrefcheck-x86_64-linux" ;
20+ path = "${ executable } /bin/xrefcheck" ;
21+ }
2022]
You can’t perform that action at this time.
0 commit comments