diff options
author | tv <tv@krebsco.de> | 2017-12-05 23:25:09 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-12-05 23:30:31 +0100 |
commit | 3600a1bcee3cb97dfe0df1b19d171ed4ea41fc94 (patch) | |
tree | b904977dc308d603bf655ffb877a1d89450588ab /shell.nix | |
parent | 861d4f298a958253452c2d3cb848dc5ba79a2164 (diff) |
stockholm: export HOSTNAME and STOCKHOLM_VERSION
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -2,16 +2,6 @@ let lib = import ./lib; pkgs = import <nixpkgs> { overlays = [(import ./krebs/5pkgs)]; }; - get-version = pkgs.writeDash "get-version" '' - set -efu - version=git.$(${pkgs.git}/bin/git describe --always --dirty) - case $version in (*-dirty) - version=$version@$HOSTNAME - esac - date=$(${pkgs.coreutils}/bin/date +%y.%m) - echo "$date.$version" - ''; - in pkgs.stdenv.mkDerivation { name = "stockholm"; shellHook = /* sh */ '' @@ -39,9 +29,6 @@ in pkgs.stdenv.mkDerivation { : } - export HOSTNAME="$(${pkgs.nettools}/bin/hostname)" - export STOCKHOLM_VERSION="''${STOCKHOLM_VERSION-$(${get-version})}" - PS1='\[\e[38;5;162m\]\w\[\e[0m\] ' ''; } |