Skip to content

Commit be03fa9

Browse files
authored
Merge pull request #41 from serokell/fix-release
Fix release
2 parents 72b0cbd + 771d0ab commit be03fa9

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

release/default.nix

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
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 }:
66
let
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
]

0 commit comments

Comments
 (0)