mirror of
https://codeberg.org/demostf/edit.git
synced 2026-11-30 10:00:50 +01:00
nix package
This commit is contained in:
parent
099905e13c
commit
70edec329d
4 changed files with 91 additions and 87 deletions
3
nix/overlay.nix
Normal file
3
nix/overlay.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
final: prev: {
|
||||
demostf-edit = final.callPackage ./package.nix { };
|
||||
}
|
||||
19
nix/package.nix
Normal file
19
nix/package.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ rustPlatform }:
|
||||
let
|
||||
inherit (builtins) fromTOML readFile;
|
||||
version = (fromTOML (readFile ../wasm/Cargo.toml)).package.version;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "demostf-edit";
|
||||
inherit version;
|
||||
|
||||
cargoBuildFlags = ''
|
||||
--features cli
|
||||
'';
|
||||
|
||||
src = ../wasm;
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ../wasm/Cargo.lock;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue