Add missing shell.nix

Signed-off-by: Federico Damián Schonborn <fdschonborn@gmail.com>
main
parent b9507bdeb5
commit 8207a2e4f2
No known key found for this signature in database
GPG Key ID: 193F70F15C9AB0A0

@ -44,7 +44,7 @@ Hello, AbleScript!
}
```
### In a Nix derivation
### Using `fetchTarball`
```nix
{ lib, fetchTarball, ... }:

@ -11,7 +11,7 @@
}:
rustPlatform.buildRustPackage {
pname = "ablescript";
inherit version cargoSha256;
inherit version;
src = fetchFromGitea {
domain = "git.ablecorp.us";
@ -24,6 +24,8 @@ rustPlatform.buildRustPackage {
inherit sha256;
};
inherit cargoSha256;
meta = with lib; {
description = "A programming language designed to be bad";
homepage = "https://git.ablecorp.us/AbleScript/able-script";

@ -0,0 +1,8 @@
(import (let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}) {src = ./.;})
.shellNix
Loading…
Cancel
Save