diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-03-21 00:13:19 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-03-21 00:13:19 +0100 |
commit | 70ec0655afb84151e2ff28df53e6eec448508df8 (patch) | |
tree | ec5830430943d40ee42c2302cc556af83422424c | |
parent | chore(src/dead-trees/kant_and_free_software): Update (diff) | |
download | b-peetz.de-70ec0655afb84151e2ff28df53e6eec448508df8.zip |
feat(src/dead-trees/kant_and_free_software): Add this file via its flake
-rw-r--r-- | flake.lock | 253 | ||||
-rw-r--r-- | flake.nix | 14 | ||||
-rw-r--r-- | src/dead-trees/kant_and_free_software.pdf | bin | 317260 -> 0 bytes |
3 files changed, 253 insertions, 14 deletions
diff --git a/flake.lock b/flake.lock index f8f74c2..48022b9 100644 --- a/flake.lock +++ b/flake.lock @@ -1,17 +1,121 @@ { "nodes": { + "crane": { + "inputs": { + "nixpkgs": [ + "essay", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1698166613, + "narHash": "sha256-y4rdN4flxRiROqNi1waMYIZj/Fs7L2OrszFk/1ry9vU=", + "owner": "ipetkov", + "repo": "crane", + "rev": "b7db46f0f1751f7b1d1911f6be7daf568ad5bc65", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "repo": "crane", + "type": "github" + } + }, + "crane_2": { + "inputs": { + "flake-compat": [ + "essay", + "lpm", + "flake-compat" + ], + "flake-utils": [ + "essay", + "lpm", + "flake-utils" + ], + "nixpkgs": [ + "essay", + "lpm", + "nixpkgs" + ], + "rust-overlay": [ + "essay", + "lpm", + "rust-overlay" + ] + }, + "locked": { + "lastModified": 1686621798, + "narHash": "sha256-FUwWszmSiDzUdTk8f69xwMoYlhdPaLvDaIYOE/y6VXc=", + "owner": "ipetkov", + "repo": "crane", + "rev": "75f7d715f8088f741be9981405f6444e2d49efdd", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "repo": "crane", + "type": "github" + } + }, + "essay": { + "inputs": { + "crane": "crane", + "flake-compat": "flake-compat", + "flake-utils": "flake-utils", + "flake_version_update": "flake_version_update", + "lpm": "lpm", + "nixpkgs": [ + "nixpkgs" + ], + "rust-overlay": "rust-overlay", + "systems": [ + "systems" + ] + }, + "locked": { + "lastModified": 1710975858, + "narHash": "sha256-l/ZuFe9K4j8T5fq0ZRWEfeg3pH1eGrVIbki6TbgP+ec=", + "ref": "refs/heads/prime", + "rev": "98240f9e13f57d4c9787674eb5a1c551ffd91b35", + "revCount": 12, + "type": "git", + "url": "https://codeberg.org/bpeetz/kant_and_free_software.git" + }, + "original": { + "type": "git", + "url": "https://codeberg.org/bpeetz/kant_and_free_software.git" + } + }, + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": [ + "essay", "systems" ] }, "locked": { - "lastModified": 1705309234, - "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", "owner": "numtide", "repo": "flake-utils", - "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", "type": "github" }, "original": { @@ -20,18 +124,102 @@ "type": "github" } }, + "flake-utils_2": { + "inputs": { + "systems": [ + "systems" + ] + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake_version_update": { + "inputs": { + "flake-utils": [ + "essay", + "flake-utils" + ], + "nixpkgs": [ + "essay", + "nixpkgs" + ], + "systems": [ + "essay", + "systems" + ] + }, + "locked": { + "lastModified": 1685288691, + "narHash": "sha256-oP6h34oJ8rm6KlUpyZrX+ww3hnoWny2ecrEXxkU7F3c=", + "ref": "refs/heads/prime", + "rev": "e9a97e01eca780bd16e1dbdbd8856b59558f4959", + "revCount": 5, + "type": "git", + "url": "https://codeberg.org/soispha/flake_version_update.git" + }, + "original": { + "type": "git", + "url": "https://codeberg.org/soispha/flake_version_update.git" + } + }, + "lpm": { + "inputs": { + "crane": "crane_2", + "flake-compat": [ + "essay", + "flake-compat" + ], + "flake-utils": [ + "essay", + "flake-utils" + ], + "nixpkgs": [ + "essay", + "nixpkgs" + ], + "rust-overlay": [ + "essay", + "rust-overlay" + ], + "systems": "systems" + }, + "locked": { + "lastModified": 1687099429, + "narHash": "sha256-/gGZL+oAEXQnOcvGuwyadCP6/4yobGmNMpylq5bU/7Y=", + "ref": "refs/heads/prime", + "rev": "6bc393444d415d50144b2c213812ce57eae1c01f", + "revCount": 3, + "type": "git", + "url": "https://codeberg.org/Soispha/lpm.git" + }, + "original": { + "type": "git", + "url": "https://codeberg.org/Soispha/lpm.git" + } + }, "nixpkgs": { "locked": { - "lastModified": 1688392541, - "narHash": "sha256-lHrKvEkCPTUO+7tPfjIcb7Trk6k31rz18vkyqmkeJfY=", + "lastModified": 1710806803, + "narHash": "sha256-qrxvLS888pNJFwJdK+hf1wpRCSQcqA6W5+Ox202NDa0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b", + "rev": "b06025f1533a1e07b6db3e75151caa155d1c7eb3", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-22.11-small", + "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } @@ -39,11 +227,11 @@ "revealjs": { "flake": false, "locked": { - "lastModified": 1707209502, - "narHash": "sha256-vVF468xXUpleE0QiRZYDCrbibWppo+2qAKDZakGWaWs=", + "lastModified": 1710835784, + "narHash": "sha256-Ti7DXNZNfGGyhWJsIL1UsXCDB28fYh8OizdVCgcmAA8=", "owner": "hakimel", "repo": "reveal.js", - "rev": "f149d1f7ca97e6054080a889f1dbb0d9dbd8c28c", + "rev": "924bdb63058133298af55e111abe3b9645040ba2", "type": "github" }, "original": { @@ -54,10 +242,36 @@ }, "root": { "inputs": { - "flake-utils": "flake-utils", + "essay": "essay", + "flake-utils": "flake-utils_2", "nixpkgs": "nixpkgs", "revealjs": "revealjs", - "systems": "systems" + "systems": "systems_2" + } + }, + "rust-overlay": { + "inputs": { + "flake-utils": [ + "essay", + "flake-utils" + ], + "nixpkgs": [ + "essay", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1698977568, + "narHash": "sha256-bnbCqPDFdOUcSANJv9Br3q/b1LyK9vyB1I7os5T4jXI=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "321affd863e3e4e669990a1db5fdabef98387b95", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" } }, "systems": { @@ -74,6 +288,21 @@ "repo": "x86_64-linux", "type": "github" } + }, + "systems_2": { + "locked": { + "lastModified": 1680978846, + "narHash": "sha256-Gtqg8b/v49BFDpDetjclCYXm8mAnTrUzR0JnE2nv5aw=", + "owner": "nix-systems", + "repo": "x86_64-linux", + "rev": "2ecfcac5e15790ba6ce360ceccddb15ad16d08a8", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "x86_64-linux", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 6fb467e..d9ccd27 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "NixOS flake for my website"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11-small"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; systems.url = "github:nix-systems/x86_64-linux"; flake-utils = { url = "github:numtide/flake-utils"; @@ -12,11 +12,19 @@ url = "github:hakimel/reveal.js"; flake = false; }; + essay = { + url = "git+https://codeberg.org/bpeetz/kant_and_free_software.git"; + inputs = { + nixpkgs.follows = "nixpkgs"; + systems.follows = "systems"; + }; + }; }; outputs = { nixpkgs, flake-utils, + essay, ... }: flake-utils.lib.eachDefaultSystem ( @@ -35,7 +43,9 @@ allowSubstitutes = false; nativeBuildInputs = []; - buildPhase = ""; + buildPhase = '' + cp ${essay.outputs.packages."${system}".default}/philosophy/kant_and_free_software.pdf ./dead-trees/kant_and_free_software.pdf + ''; installPhase = '' install -d $out/ cp -r . $out/ diff --git a/src/dead-trees/kant_and_free_software.pdf b/src/dead-trees/kant_and_free_software.pdf deleted file mode 100644 index 3eb0185..0000000 --- a/src/dead-trees/kant_and_free_software.pdf +++ /dev/null Binary files differ |