summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorstuebinm2023-03-22 21:36:28 +0100
committerstuebinm2023-03-22 21:36:28 +0100
commit212823586cedd0d5d9fea03941785f37a01a6cfe (patch)
tree7166e413b7ed1d9ca2563dd994cac9f8c028382e /pkgs
parent4f387146f58fee9fd7aafabdb378019ea1786bd8 (diff)
get rid of crane & naersk
the only thing this makes more complicated is typst; most of the other benefits I don't use in any case.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/overlay.nix62
-rw-r--r--pkgs/typst.nix23
2 files changed, 79 insertions, 6 deletions
diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix
index 75e8cfc..bfc0175 100644
--- a/pkgs/overlay.nix
+++ b/pkgs/overlay.nix
@@ -14,7 +14,65 @@ self: super:
});
typst = self.callPackage ./typst.nix {
- craneLib = (inputs.crane.mkLib self).overrideToolchain
- self.rust-bin.stable.latest.default;
+ rust-bin =
+ self.rust-bin;
};
+
+ almanac = self.rustPlatform.buildRustPackage rec {
+ pname = "almanac";
+ version = "git";
+ src = inputs.almanac.outPath;
+ cargoLock.lockFile = "${src}/Cargo.lock";
+ };
+
+ kijetesantakaluotokieni = self.rustPlatform.buildRustPackage rec {
+ pname = "kijetesantakaluotokieni";
+ version = "git";
+ src = self.fetchgit {
+ url = "https://git.2ki.xyz/spiders/kijetesantakaluotokieni";
+ rev = "7d9ea828f42ffd9fb6826ea4cbf7677b08222064";
+ sha256 = "sha256-PEp+K5mRNUR6yWLrpGpiX8qvaPQIibA17NQwXUiC2lk=";
+ };
+ cargoLock.lockFile = "${src}/Cargo.lock";
+ };
+
+ showrt = self.rustPlatform.buildRustPackage rec {
+ pname = "showrt";
+ version = "git";
+ src = inputs.showrt;
+ nativeBuildInputs = [ self.protobuf ];
+ cargoLock.lockFile = "${src}/Cargo.lock";
+ };
+
+ isabelle-utils = self.rustPlatform.buildRustPackage rec {
+ pname = "isabelle-utils";
+ version = "git";
+ src = inputs.isabelle-utils;
+ cargoLock.lockFile = "${src}/Cargo.lock";
+ checkPhase = "
+ echo skipping tests
+ ";
+ };
+
+ isabat = import "${inputs.isabelle-utils}/isabat.nix" {
+ pkgs = self;
+ isabelle-rust-utils = self.isabelle-utils;
+ };
+
+ emacs29 = self.callPackage
+ (import "${inputs.nixpkgs.outPath}/pkgs/applications/editors/emacs/generic.nix" {
+ version = "29";
+ sha256 = "sha256-AI4eNgzRLnM1s4hQa0YWJxZR3WZoIuKy7BYosT06K1c=";
+ }) {
+ inherit (self.darwin.apple_sdk.frameworks) AppKit Carbon Cocoa IOKit OSAKit Quartz
+ QuartzCore WebKit ImageCaptureCore GSS ImageIO;
+ gconf = null;
+ alsa-lib = null;
+ gpm = null;
+ libXaw = self.xorg.libXaw;
+ inherit (self.darwin) sigtool;
+ withPgtk = true;
+ withX = false;
+ };
+
}
diff --git a/pkgs/typst.nix b/pkgs/typst.nix
index 0290899..597a81a 100644
--- a/pkgs/typst.nix
+++ b/pkgs/typst.nix
@@ -1,10 +1,22 @@
-{ craneLib, fetchFromGitHub, lib, git }:
+{ rustPlatform, fetchFromGitHub, lib, git, rust-bin, ... }:
-craneLib.buildPackage rec {
+rustPlatform.buildRustPackage rec {
pname = "typst-cli";
version = "22-03-21-2";
- cargoExtraArgs = "-p typst-cli";
+ cargoBuildFlags = "-p typst-cli";
+ cargoLock = {
+ lockFile = "${src}/Cargo.lock";
+ outputHashes = {
+ "biblatex-0.6.3" = "sha256-TfH2tk7B61HHqpdGY48TdPKelp4+78x+8LRFobAg8QA=";
+ "comemo-0.1.0" = "sha256-zg056kUc8sVLQ8vvT4uOuRJnyrCORsGYUvsjBJEkFPg=";
+ "hayagriva-0.1.1" = "sha256-HGQ+jNAnejxUBQNaqXPw57zfAC3qNXSWUVzDALZTXg0=";
+ "iai-0.1.1" = "sha256-EdNzCPht5chg7uF9O8CtPWR/bzSYyfYIXNdLltqdlR0=";
+ "lipsum-0.8.2" = "sha256-deIbpn4YM7/NeuJ5Co48ivJmxwrcsbLl6c3cP3JZxAQ=";
+ "pixglyph-0.1.0" = "sha256-8veNF3rzV21ayzk9gh2x0mQA8nHGM662ohvh084a0vk=";
+ "unicode-math-class-0.1.0" = "sha256-NkwDzj1SfUe570UcfotmVP6bIEYwiegZd0j8TPEWoOk=";
+ };
+ };
src = fetchFromGitHub {
owner = "typst";
repo = "typst";
@@ -14,5 +26,8 @@ craneLib.buildPackage rec {
};
# the build.rs script wants a version hash from git.
- buildInputs = [ git ];
+ nativeBuildInputs = [
+ git
+ rust-bin.stable.latest.minimal
+ ];
}