Compare commits

..

1 Commits

Author SHA1 Message Date
Jan-Bulthuis
c2a73f4de7 feat: release 0.2.0 2026-07-19 21:17:12 +02:00
2 changed files with 24 additions and 22 deletions

22
flake.lock generated
View File

@ -20,9 +20,7 @@
}, },
"helix": { "helix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": "nixpkgs",
"nixpkgs"
],
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
@ -40,6 +38,22 @@
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1775036866,
"narHash": "sha256-ZojAnPuCdy657PbTq5V0Y+AHKhZAIwSIT2cb8UgAz/U=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "6201e203d09599479a3b3450ed24fa81537ebc4e",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1784120854, "lastModified": 1784120854,
"narHash": "sha256-KesHgItiZPgGX740axSiQLcIQ8D24MDqNpkKYWIek8k=", "narHash": "sha256-KesHgItiZPgGX740axSiQLcIQ8D24MDqNpkKYWIek8k=",
@ -59,7 +73,7 @@
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"helix": "helix", "helix": "helix",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs_2"
} }
}, },
"rust-overlay": { "rust-overlay": {

View File

@ -3,7 +3,6 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
helix.url = "github:helix-editor/helix"; helix.url = "github:helix-editor/helix";
helix.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = outputs =
@ -28,27 +27,23 @@
in in
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation {
name = "syntax"; name = "syntax";
nativeBuildInputs = [ pkgs.patchelf ];
phases = [ phases = [
"buildPhase" "buildPhase"
"installPhase" "installPhase"
]; ];
buildPhase = '' buildPhase = ''
mkdir -p build cp -r ${helix}/runtime/queries/* ./
cp -r ${helix}/runtime/queries/* ./build/ chmod u+w ./* -R
chmod u+w ./build -R
for so in ${grammars}/*.so; do for so in ${grammars}/*.so; do
name=$(basename "$so" .so) name=$(basename "$so" .so)
if [ -d "./build/$name" ]; then if [ -d "./$name" ]; then
cp "$so" "./build/$name/$name.so" cp "$so" "./$name/$name.so"
chmod u+w "./build/$name/$name.so"
patchelf --shrink-rpath "./build/$name/$name.so"
fi fi
done done
''; '';
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out
cp -r ./build/* $out/ cp -r ./* $out/
''; '';
}; };
packages.themes = pkgs.stdenv.mkDerivation { packages.themes = pkgs.stdenv.mkDerivation {
@ -62,14 +57,7 @@
packages.karnaugh = pkgs.rustPlatform.buildRustPackage (final: { packages.karnaugh = pkgs.rustPlatform.buildRustPackage (final: {
pname = "karnaugh"; pname = "karnaugh";
version = "0.2.0"; version = "0.2.0";
src = pkgs.lib.fileset.toSource { src = self;
root = ./.;
fileset = pkgs.lib.fileset.unions [
./Cargo.toml
./Cargo.lock
./src
];
};
cargoLock.lockFile = ./Cargo.lock; cargoLock.lockFile = ./Cargo.lock;
}); });
packages.container = pkgs.dockerTools.buildImage { packages.container = pkgs.dockerTools.buildImage {