From c9a7f8f8b582874299404ca1379f682c088b62f1 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Wed, 24 Jan 2024 21:50:46 +0100 Subject: [PATCH] initial commit --- .gitignore | 1 + flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 29 +++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 .gitignore create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0716ea3 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1705856552, + "narHash": "sha256-JXfnuEf5Yd6bhMs/uvM67/joxYKoysyE3M2k6T3eWbg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "612f97239e2cc474c13c9dafa0df378058c5ad8d", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..bb0aba8 --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + description = "An advanced text editor for script writers working professionally in film, novel, theatre, radio or writing for comic books."; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = { + self, + nixpkgs, + }: let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + + name = "starc"; + version = "0.6.4"; + in { + packages.${system} = { + default = pkgs.appimageTools.wrapType1 { + inherit name; + + src = pkgs.fetchurl { + url = "https://github.com/story-apps/starc/releases/download/v${version}/starc-setup.AppImage"; + sha256 = "sha256-KLawvuLyqd7aPidH3ghr7mLl9NFQ7nduhnxAq0RpToQ="; + }; + }; + }; + }; +}