aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2021-08-22 20:29:10 +0200
committerAdrian Kummerlaender2021-08-22 20:30:04 +0200
commit94e741cbc0b88a0efc681b4422201bbabdabd657 (patch)
treefb45926dbc2cecacbd43c31503eff0378b3adc61
parent7e3246da531228d507734cc6aefa03e9c35c4322 (diff)
downloadblog.kummerlaender.eu-94e741cbc0b88a0efc681b4422201bbabdabd657.tar
blog.kummerlaender.eu-94e741cbc0b88a0efc681b4422201bbabdabd657.tar.gz
blog.kummerlaender.eu-94e741cbc0b88a0efc681b4422201bbabdabd657.tar.bz2
blog.kummerlaender.eu-94e741cbc0b88a0efc681b4422201bbabdabd657.tar.lz
blog.kummerlaender.eu-94e741cbc0b88a0efc681b4422201bbabdabd657.tar.xz
blog.kummerlaender.eu-94e741cbc0b88a0efc681b4422201bbabdabd657.tar.zst
blog.kummerlaender.eu-94e741cbc0b88a0efc681b4422201bbabdabd657.zip
Move dev shell to flake
-rw-r--r--flake.lock62
-rw-r--r--flake.nix25
-rw-r--r--shell.nix16
3 files changed, 87 insertions, 16 deletions
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..3eb910f
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,62 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1629379628,
+ "narHash": "sha256-dI8wpEo7wIVWoTUk2oyWFUnlVHNKLs+ren1TqITN1mI=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "a1007637cea374bd1bafd754cfd5388894c49129",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-21.05",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs_2": {
+ "locked": {
+ "lastModified": 1629271619,
+ "narHash": "sha256-by9D3OkEKk4rOzJIMbC0uP2wP3Bt81auP5xmbmPg2a8=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "7bbca9877caed472c6b5866ea09302cfcdce3dbf",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-21.05",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "pkgs-personal": {
+ "inputs": {
+ "nixpkgs": "nixpkgs_2"
+ },
+ "locked": {
+ "lastModified": 1629652608,
+ "narHash": "sha256-eNcsdqMyK/Q3P0Tj16uDNcQzKIFf4CJkM7qTq3BdtF0=",
+ "ref": "master",
+ "rev": "fb63603b5eec859c84464e1a7f6f14931303f679",
+ "revCount": 52,
+ "type": "git",
+ "url": "https://code.kummerlaender.eu/pkgs"
+ },
+ "original": {
+ "type": "git",
+ "url": "https://code.kummerlaender.eu/pkgs"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs",
+ "pkgs-personal": "pkgs-personal"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..429d61a
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,25 @@
+{
+ description = "static site generator for blog.kummerlaender.eu";
+
+ inputs = {
+ nixpkgs.url = github:NixOS/nixpkgs/nixos-21.05;
+ pkgs-personal.url = git+https://code.kummerlaender.eu/pkgs;
+ };
+
+ outputs = { self, nixpkgs, pkgs-personal, ... }: let
+ pkgs = nixpkgs.legacyPackages.x86_64-linux;
+ in {
+ devShell.x86_64-linux = pkgs.mkShell {
+ buildInputs = [
+ pkgs.pandoc
+ pkgs.highlight
+ pkgs-personal.katex-wrapper
+ pkgs-personal.make-xslt
+ ];
+
+ shellHook = ''
+ export NIX_SHELL_NAME="blog.kummerlaender.eu"
+ '';
+ };
+ };
+}
diff --git a/shell.nix b/shell.nix
deleted file mode 100644
index 6aeef45..0000000
--- a/shell.nix
+++ /dev/null
@@ -1,16 +0,0 @@
-{ pkgs ? import <nixpkgs> { }, mypkgs ? import <mypkgs> { }, ... }:
-
-pkgs.stdenv.mkDerivation rec {
- name = "blog.kummerlaender.eu";
-
- buildInputs = [
- pkgs.pandoc
- pkgs.highlight
- mypkgs.katex-wrapper
- mypkgs.make-xslt
- ];
-
- shellHook = ''
- export NIX_SHELL_NAME="${name}"
- '';
-}