From cbf6c6b93ad27f92490e09493620dc4001cecdb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 12 Jul 2020 17:06:59 +0100 Subject: [PATCH] add project-wide shell.nix --- pkgs/sops-install-secrets/default.nix | 2 -- pkgs/ssh-to-pgp/shell.nix | 10 ---------- shell.nix | 12 ++++++++++++ 3 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 pkgs/ssh-to-pgp/shell.nix create mode 100644 shell.nix diff --git a/pkgs/sops-install-secrets/default.nix b/pkgs/sops-install-secrets/default.nix index 8e3e1e3..7b16ccd 100644 --- a/pkgs/sops-install-secrets/default.nix +++ b/pkgs/sops-install-secrets/default.nix @@ -3,8 +3,6 @@ buildGoModule { pname = "sops-install-secrets"; version = "0.0.1"; - hardeningDisable = [ "all" ]; - src = ../..; subPackages = [ "pkgs/sops-install-secrets" ]; diff --git a/pkgs/ssh-to-pgp/shell.nix b/pkgs/ssh-to-pgp/shell.nix deleted file mode 100644 index c88d83f..0000000 --- a/pkgs/ssh-to-pgp/shell.nix +++ /dev/null @@ -1,10 +0,0 @@ -with import {}; -mkShell { - nativeBuildInputs = [ - bashInteractive - go - delve - gnupg - ]; - hardeningDisable = [ "all" ]; -} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..7b695f2 --- /dev/null +++ b/shell.nix @@ -0,0 +1,12 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + bashInteractive + go + delve + gnupg + utillinux + ]; + # delve does not compile with hardening enabled + hardeningDisable = [ "all" ]; +}