Skip to content

Commit

Permalink
nix: stdenv.lib => lib
Browse files Browse the repository at this point in the history
+ debug output in release.nix
  • Loading branch information
johannesloetzsch committed Jan 25, 2022
1 parent 838b2d9 commit 07d32f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .circleci/nix/tools/release.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ pkgs }:
(pkgs.writeScriptBin "deploy" ''
#!${pkgs.runtimeShell} -e
export PATH="${pkgs.stdenv.lib.makeBinPath (with pkgs; [github-release])}"
export PATH="${pkgs.lib.makeBinPath (with pkgs; [github-release])}"
## $GITHUB_TOKEN must be a `personal access token` with scope `public_repo`.
## The owner of the token must be projekt owner of the repo.
Expand All @@ -14,10 +14,13 @@
export FILE="$1"
export NAME="$2"
echo "Delete an old release in case it exists…"
if github-release info -t $TAG ; then
github-release delete -t $TAG
fi
echo "Create a new release…"
github-release release -t $TAG
echo "Upload Artifacts"
github-release upload -t $TAG -f "$FILE" -n "$NAME"
'')
2 changes: 1 addition & 1 deletion backend/nix/swlkup-backend.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let

mavenRepository = buildMavenRepositoryFromLockFile { file = ./deps/mvn2nix-lock.json; };

src = stdenv.mkDerivation {
src = mkDerivation {
name = "swlkup-backend-src";
src = lib.cleanSource ./..;
installPhase = ''
Expand Down
2 changes: 1 addition & 1 deletion frontend/nix/swlkup-frontend.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{pkgs ? import <nixpkgs> {},
nodejs ? pkgs.nodejs-12_x,
stdenv ? pkgs.stdenv,
lib ? pkgs.lib,
stdenv ? pkgs.stdenv,
...}:

let
Expand Down

0 comments on commit 07d32f8

Please sign in to comment.