aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-12-20 19:26:38 +0530
committerAkshay Nair <phenax5@gmail.com>2020-12-20 19:26:38 +0530
commit912fde1c17ee143d805cc7798801b6952dcf8576 (patch)
tree2ddfa5dd42948b35a4b5a8c63205c165fb78fc2e
parent43586a11fb56e5d3555e92ac67252c8ccd8341f8 (diff)
downloadnixos-config-912fde1c17ee143d805cc7798801b6952dcf8576.tar.gz
nixos-config-912fde1c17ee143d805cc7798801b6952dcf8576.zip
Creates derivation for shotkey
Diffstat (limited to '')
-rw-r--r--.gitmodules3
-rw-r--r--configuration.nix12
-rw-r--r--packages/shotkey/pkg.nix18
-rw-r--r--packages/shotkey/shotkey.tar.gzbin0 -> 59195 bytes
m---------packages/shotkey/source0
5 files changed, 32 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
index 8cd1176..6a86acf 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,6 @@
[submodule "~/nixos/external/nvim/config"]
path = ~/nixos/external/nvim/config
url = https://github.com/phenax/peepeepoopoo-nvim-config.git
+[submodule "packages/shotkey/source"]
+ path = packages/shotkey/source
+ url = https://github.com/phenax/shotkey.git
diff --git a/configuration.nix b/configuration.nix
index d6e9a26..db55358 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -7,6 +7,7 @@
let
apps = (import ./packages/sensible-apps/sensible-apps.nix).apps;
sensible-apps = pkgs.callPackage ./packages/sensible-apps/pkg.nix {};
+ shotkey = pkgs.callPackage ./packages/shotkey/pkg.nix {};
in {
imports = [
./hardware-configuration.nix
@@ -81,7 +82,15 @@ in {
# User
users.users.imsohexy = {
isNormalUser = true;
- extraGroups = [ "wheel" "input" "audio" "video" "storage" "git" "networkmanager" ];
+ extraGroups = [
+ "wheel"
+ "input"
+ "audio"
+ "video"
+ "storage"
+ "git"
+ "networkmanager"
+ ];
shell = pkgs.zsh;
};
@@ -133,6 +142,7 @@ in {
ffmpeg-full
sensible-apps
+ shotkey
pass
alsaUtils
diff --git a/packages/shotkey/pkg.nix b/packages/shotkey/pkg.nix
new file mode 100644
index 0000000..eb21186
--- /dev/null
+++ b/packages/shotkey/pkg.nix
@@ -0,0 +1,18 @@
+{ stdenv, libX11, libXinerama, libXft }:
+with stdenv.lib;
+
+stdenv.mkDerivation rec {
+ name = "local-shotkey-${version}";
+ version = "0.1.0";
+
+ src = ./source;
+
+ buildInputs = [ libX11 ];
+
+
+ unpackPhase = ''cp -r $src/* .'';
+
+ buildPhase = ''make'';
+
+ installPhase = ''make PREFIX=$out DESTDIR="" install'';
+}
diff --git a/packages/shotkey/shotkey.tar.gz b/packages/shotkey/shotkey.tar.gz
new file mode 100644
index 0000000..2e30be2
--- /dev/null
+++ b/packages/shotkey/shotkey.tar.gz
Binary files differ
diff --git a/packages/shotkey/source b/packages/shotkey/source
new file mode 160000
+Subproject 299bd436635cb1a4d7877bac50b482d32fccffe