adding shell for ags dev
This commit is contained in:
parent
5a985cad9f
commit
88dbdc172a
19
.config/ags/.direnv/bin/nix-direnv-reload
Executable file
19
.config/ags/.direnv/bin/nix-direnv-reload
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
if [[ ! -d "/home/chris/.dotfiles/.config/ags" ]]; then
|
||||
echo "Cannot find source directory; Did you move it?"
|
||||
echo "(Looking for "/home/chris/.dotfiles/.config/ags")"
|
||||
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# rebuild the cache forcefully
|
||||
_nix_direnv_force_reload=1 direnv exec "/home/chris/.dotfiles/.config/ags" true
|
||||
|
||||
# Update the mtime for .envrc.
|
||||
# This will cause direnv to reload again - but without re-building.
|
||||
touch "/home/chris/.dotfiles/.config/ags/.envrc"
|
||||
|
||||
# Also update the timestamp of whatever profile_rc we have.
|
||||
# This makes sure that we know we are up to date.
|
||||
touch -r "/home/chris/.dotfiles/.config/ags/.envrc" "/home/chris/.dotfiles/.config/ags/.direnv"/*.rc
|
1
.config/ags/.envrc
Normal file
1
.config/ags/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
25
.config/ags/flake.nix
Normal file
25
.config/ags/flake.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
{
|
||||
description = "The Flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, ... }:
|
||||
{
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in rec
|
||||
{
|
||||
devShell = import ./shell.nix { inherit pkgs; };
|
||||
defaultPackage = pkgs.libsForQt5.callPackage ./default.nix { };
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
15
.config/ags/shell.nix
Normal file
15
.config/ags/shell.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
with pkgs;
|
||||
mkShell rec {
|
||||
name = "ags-config";
|
||||
|
||||
nativeBuildInputs = [
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
stdenv
|
||||
clojure
|
||||
clojure-lsp
|
||||
clj-kondo
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue